Electrical Engineering › Section O · Pulses, nonsinusoidal signals, and system analysis › Topic O.3

Fourier series and nonsinusoidal circuits

Square waves, rectifier outputs and distorted mains currents are not sinusoids, yet every periodic waveform can be built from them. The Fourier series breaks such a waveform into a dc level and harmonics, so the ac methods of earlier sections handle it one frequency at a time.

Any periodic wave is a sum of sinusoids

Clock signals, rectifier outputs and the current drawn by a computer power supply all repeat regularly but are not sinusoidal. In the early 1800s Joseph Fourier showed that a periodic waveform can be written as a constant plus sinusoids at whole-number multiples of its repetition frequency. This matters because every method from Phasors onwards works at one frequency. Split a nonsinusoidal input into sinusoids, analyse a linear circuit for each, and add the results.

The Fourier series

For a waveform of period T and fundamental angular frequency \(\omega = 2\pi/T\),

f(t) = A_0 + \sum_{n=1}^{\infty}\big[a_n\cos n\omega t + b_n\sin n\omega t\big]

The constant \(A_0\) is the dc component, the average value over one period. The \(n = 1\) terms form the fundamental, at the waveform's own frequency; the terms with \(n = 2, 3, \ldots\) are the harmonics, at 2f, 3f and so on. The peak amplitude of the nth harmonic is \(c_n = \sqrt{a_n^2 + b_n^2}\). Books differ in which letter goes with sine and which with cosine, so check the convention. A spectrum analyser displays these amplitudes directly.

Symmetry saves work

Three kinds of symmetry remove whole groups of terms. An even function, with \(f(-t) = f(t)\), is symmetric about the vertical axis and has only cosine terms, plus \(A_0\). An odd function, with \(f(-t) = -f(t)\), has only sine terms, and \(A_0 = 0\). Half-wave symmetry, \(f(t + T/2) = -f(t)\), means each half-cycle is the negative of the one before; such a waveform has no dc and no even harmonics, only odd ones. A square wave that switches between +V and −V has half-wave symmetry, so it contains only the 1st, 3rd, 5th and later odd harmonics. Moving the time origin changes which of sine and cosine appear, but not the harmonic amplitudes.

Worked example: a square wave

A 1 kHz square wave is +10 V for the first half of each period and −10 V for the second, starting at t = 0. Find its first three nonzero harmonics. 1. Symmetry: the wave is odd and has half-wave symmetry, so only odd sine terms appear and \(A_0 = 0\). 2. The standard result is \(b_n = \frac{4V}{n\pi}\) for odd n, with V = 10 V. 3. Fundamental, 1 kHz: \(\frac{40}{\pi} = 12.7\) V peak. 4. Third harmonic, 3 kHz: \(\frac{40}{3\pi} = 4.24\) V peak. Fifth, 5 kHz: \(\frac{40}{5\pi} = 2.55\) V peak. 5. Check: the square wave's rms is 10 V, so its power in 1 Ω is 100 W. The fundamental alone carries \(12.7^2/2 = 81.1\) W, and the three terms together carry 93.3 W, so most of the power is in the lowest harmonics.

Other common waveforms

A half-wave rectified sine of peak \(V_m\) has dc, the fundamental and even harmonics:

v = \frac{V_m}{\pi} + \frac{V_m}{2}\sin\omega t - \frac{2V_m}{\pi}\Big[\frac{\cos 2\omega t}{3} + \frac{\cos 4\omega t}{15} + \cdots\Big]

Its dc term, \(V_m/\pi = 0.318V_m\), is the average value found in Average and rms values. A triangle wave of peak \(V_m\), timed as an odd function, is

v = \frac{8V_m}{\pi^2}\Big[\sin\omega t - \frac{\sin 3\omega t}{9} + \frac{\sin 5\omega t}{25} - \cdots\Big]

Notice the pattern. The square wave's harmonics fall as \(1/n\), the triangle's as \(1/n^2\). Sharp jumps need strong high harmonics; smoother waves need fewer, so they pass through filters and cables with less change of shape.

Circuit response by superposition

To find the response of a linear circuit to a nonsinusoidal source, treat each term of the series as a separate source, as Superposition (ac) does for sources at different frequencies. For the dc term, capacitors are open circuits and inductors are short circuits. For the nth harmonic, use the reactances at that frequency, \(X_L = n\omega L\) and \(X_C = \frac{1}{n\omega C}\), and solve with phasors as usual. Each harmonic sees a different impedance, so the circuit changes the relative sizes and phases of the harmonics, which is why the output waveform has a different shape from the input. Finally, add the responses as functions of time. Phasors of different frequencies must never be added to each other.

Worked example: filtering a square wave

A 1 kHz square wave from 0 to 10 V drives an R-C low-pass filter with R = 1 kΩ and C = 1 µF. Find the output's main components. 1. Series: this wave is the earlier square wave halved and raised by 5 V, so \(v_i = 5 + \frac{20}{\pi}\big[\sin\omega t + \frac{1}{3}\sin 3\omega t + \cdots\big]\). 2. Cutoff: \(f_c = \frac{1}{2\pi(1000)(10^{-6})} = 159\) Hz. 3. Dc: C is open, so 5 V passes unchanged. 4. 1 kHz: \(|A_v| = 1/\sqrt{1 + (1000/159)^2} = 0.157\), so 6.37 V peak becomes 1.00 V peak, lagging by 81.0°. 5. 3 kHz: \(|A_v| = 0.053\), so 2.12 V becomes 0.112 V; 5 kHz gives 0.041 V. 6. Result: about 5 V dc plus a ripple led by a 1.00 V peak fundamental. The harmonics now fall as \(1/n^2\), like a triangle wave's, so the ripple is a rounded triangle of about 1.2 V peak: the sharp edges are gone.

Rms value and power

Because sinusoids of different frequencies average to zero when multiplied together over a period, the rms value of a nonsinusoidal waveform combines its parts by squares:

V_{rms} = \sqrt{V_0^2 + V_{1,rms}^2 + V_{2,rms}^2 + \cdots}

where \(V_0\) is the dc term and each harmonic's rms value is its peak divided by \(\sqrt{2}\). Average power adds the same way:

P = V_0 I_0 + \sum V_{n} I_{n} \cos\theta_n

with rms values and \(\theta_n\) the phase angle between the nth voltage and current. For \(v = 20 + 30\sin\omega t + 10\sin 3\omega t\) V across 10 Ω, \(V_{rms} = \sqrt{400 + 450 + 50} = 30\,\text{V}\) and P = 90 W, made up of 40 W, 45 W and 5 W.

Adding nonsinusoidal waveforms

To add or subtract two waveforms written as Fourier series, combine like with like. Dc terms add as numbers. Terms at the same frequency add as phasors, using peak or rms values consistently. Terms at different frequencies cannot combine; they stay as separate terms in the result. For example, take \(v_1 = 10 + 20\sin\omega t\) V and \(v_2 = 5 + 15\sin(\omega t + 90^\circ)\) V. The dc terms give 15 V. The fundamentals, as peak phasors in polar form, give \(20\angle 0^\circ + 15\angle 90^\circ = 25\angle 36.9^\circ\). So \(v_1 + v_2 = 15 + 25\sin(\omega t + 36.9^\circ)\) V. Adding the peaks directly, 35 V, ignores the phase difference.

Common mistakes to avoid

First, adding phasors of different harmonics: each frequency is solved and kept separately, then the time functions are added. Second, using the fundamental's reactance for every harmonic: \(X_L\) grows and \(X_C\) shrinks in proportion to n. Third, finding the rms value by adding the rms values of the parts: add their squares, then take the square root. Fourth, mixing peak and rms values in the power formula. Fifth, expecting even harmonics in a waveform with half-wave symmetry, or a dc term in an odd function: symmetry rules them out.

Key takeaways

Any periodic waveform is A₀ + Σ(aₙ cos nωt + bₙ sin nωt): a dc average, a fundamental at f and harmonics at nf. Even functions have only cosine terms, odd functions only sine terms, and half-wave symmetry gives only odd harmonics with no dc. A square wave of ±V has bₙ = 4V/(nπ) for odd n; harmonics of a triangle fall as 1/n². For a linear circuit, solve dc and each harmonic separately, using X_L = nωL and X_C = 1/(nωC), then add the time responses. V_rms = √(V₀² + ΣVₙ,rms²), and power is the sum of the dc and harmonic powers. Add waveforms term by term, frequency by frequency.

Flashcards

Flashcard

Fourier series

A periodic waveform written as a dc term plus sinusoids at multiples of its frequency

After Joseph Fourier, early 1800s.

Test your understanding

Question 1 of 5

A square wave switches between +6 V and −6 V. What is the peak amplitude of its third harmonic?

Question 2 of 5

A periodic waveform has half-wave symmetry, f(t + T/2) = −f(t). Which components can it contain?

Question 3 of 5

A voltage v = 12 + 16 sin ωt V is applied across a 4 Ω resistor. What average power does the resistor absorb?

Question 4 of 5

A circuit has a 10 mH inductor. The input's fundamental is 1 kHz. What reactance does the inductor present to the 5th harmonic?

Question 5 of 5

Two voltages are v₁ = 8 + 6 sin ωt V and v₂ = 2 + 8 sin(ωt + 90°) V. What is v₁ + v₂?

← Previous topicNext topic →