Set 33 — Fourier Series
Sets 31 and 32 built a complete method for arbitrary inputs, but left one case unresolved. A periodic waveform transforms to \(F_1(s)/(1-e^{-sT_p})\), and that transcendental denominator has no finite partial-fraction expansion — the transform establishes where the poles are without offering any route to the response. The way out is to abandon the closed form. A periodic waveform is a sum of sinusoids, each of which a linear circuit handles by the phasor method of Set 20 — now properly justified by Set 31, Problem 16. Superposition then reassembles the answer. Along the way the harmonic picture explains a great deal that the time-domain view obscures: why a square wave has 48% distortion, why the third harmonic overloads a neutral conductor, and why the textbook power-factor formula gives the wrong answer whenever the supply voltage is itself distorted.
The trigonometric series for a waveform of period \(T\) and \(\omega_0 = 2\pi/T\):
\[ f(t) = \frac{a_0}{2}+\sum_{n=1}^{\infty}\left[a_n\cos n\omega_0t+b_n\sin n\omega_0t\right] \]\[ a_n = \frac{2}{T}\int_0^Tf(t)\cos n\omega_0t\,dt, \qquad b_n = \frac{2}{T}\int_0^Tf(t)\sin n\omega_0t\,dt \]The exponential form, more compact and the one that generalises:
\[ f(t) = \sum_{n=-\infty}^{\infty}c_ne^{jn\omega_0t}, \qquad c_n = \frac{1}{T}\int_0^Tf(t)e^{-jn\omega_0t}\,dt \]Symmetry shortcuts:
Symmetry Condition Consequence Even \(f(-t) = f(t)\) All \(b_n = 0\) Odd \(f(-t) = -f(t)\) All \(a_n = 0\) Half-wave \(f(t\pm T/2) = -f(t)\) All even harmonics vanish Response to a periodic input: treat each harmonic separately at \(s = jn\omega_0\), then superpose:
\[ \mathbf{I}_n = \frac{\mathbf{V}_n}{\mathbf{Z}(jn\omega_0)} \]RMS and power (Parseval):
\[ F_{\text{rms}} = \sqrt{F_0^2+\sum_{n=1}^{\infty}F_{n,\text{rms}}^2}, \qquad P = \sum_{n=0}^{\infty}V_{n}I_{n}\cos\phi_n \]Harmonics of different order contribute no average power.
Convention: \(V_n\) and \(I_n\) are RMS values of the \(n\)-th harmonic unless stated otherwise; \(\phi_n\) is the phase of \(\mathbf{V}_n\) relative to \(\mathbf{I}_n\).
Explain precisely what problem the Laplace transform failed to solve for periodic inputs, and why decomposing into harmonics succeeds where a closed form does not.
The obstacle. Set 31, Problem 17 gave the transform of any periodic waveform:
and driving a circuit \(H(s)\) gives
This is not a rational function. The factor \(1-e^{-sT_p}\) has infinitely many zeros, so there is no finite partial-fraction expansion and no finite sum of exponentials to invert to. The transform is correct and entirely useless for computation.
Where the difficulty really lies. Those infinitely many zeros are at
All on the imaginary axis, evenly spaced at multiples of the fundamental. That is the harmonic structure, already present in the transform — the problem is not that the information is missing but that it is packed into a form no inversion technique can unpack.
The change of strategy. Rather than seeking one closed-form answer, decompose and superpose:
| Step | Tool | Established in |
|---|---|---|
| Write the input as a sum of sinusoids | Fourier series | This set |
| Find the response to each | Phasors, \(\mathbf{Z}(jn\omega_0)\) | Set 20 |
| Add the responses | Superposition | Set 11 |
Every ingredient already exists. The only new thing is the first step, and even that was implicit in Set 28, Problem 1's claim that \(H(j\omega)\) determines the response to any input.
What is given up, and what is gained:
| Given up | Gained |
|---|---|
| A closed-form answer | A numerically usable one |
| The transient | Direct physical meaning — each term is a measurable frequency |
| Exactness in finitely many terms | Controllable accuracy — truncate where you like |
The loss of the transient is deliberate, not accidental. Fourier series describes the steady state only — the condition after the circuit has settled into repeating its input's period. Set 31, Problem 16 established exactly when that is legitimate: the circuit must be stable.
Why this is the right trade in practice. Periodic excitation in power and electronics is almost always a steady-state question:
| Situation | What is wanted |
|---|---|
| Rectifier ripple | Steady-state harmonic content |
| Inverter output quality | Distortion of the settled waveform |
| Neutral conductor sizing | RMS current in normal operation |
| Transformer heating | Long-run losses per harmonic |
None of these asks what happened in the first few cycles. The transient that Fourier discards is the part nobody was asking about.
Prove the orthogonality relations for sines and cosines, and use them to derive the coefficient formulas.
The claim. Over one period \(T = 2\pi/\omega_0\):
The last is the strongest: a sine and a cosine are orthogonal even at the same frequency.
Proof of the first, by the product-to-sum identity:
Both terms are cosines at integer multiples of \(\omega_0\), and the integral of any such cosine over a whole period is zero — an integer number of complete cycles. The only exception is \(m = n\), where \(\cos(m-n)\omega_0t = \cos 0 = 1\) contributes \(T/2\).
Extracting a coefficient. Multiply the series by \(\cos m\omega_0t\) and integrate over a period:
Orthogonality annihilates every term but one. All the sine products vanish; all the cosine products with \(n \ne m\) vanish; the \(a_0\) term vanishes. What survives is \(a_m(T/2)\):
and identically for \(b_m\) with a sine.
Why \(a_0/2\) rather than \(a_0\). Setting \(m = 0\) in the same formula:
so the DC term in the series is \(a_0/2 = \) the mean. The awkward factor of two exists purely so that one formula covers every \(n\) including zero — a convention worth remembering rather than deriving each time.
The geometric picture. Orthogonality makes the harmonics behave like perpendicular axes:
| Vector space | Function space |
|---|---|
| Basis vectors \(\hat{e}_i\) | \(\cos n\omega_0t\), \(\sin n\omega_0t\) |
| Dot product \(\mathbf{a}\cdot\mathbf{b}\) | \(\int_0^Tfg\,dt\) |
| Perpendicular: \(\hat{e}_i\cdot\hat{e}_j = 0\) | Orthogonal harmonics |
| Component \(\mathbf{a}\cdot\hat{e}_i\) | Coefficient \(a_n\) |
Finding a Fourier coefficient is projecting onto an axis — which is why each is computed independently of all the others, and why truncating the series is a genuine best approximation rather than a crude one.
The physical consequence, which Problem 13 develops: since different harmonics are orthogonal, a voltage harmonic of one order and a current harmonic of another produce no average power. Only matched pairs contribute — orthogonality is the reason power adds harmonic by harmonic.
Find the Fourier series of a square wave of amplitude \(A\), odd about the origin, and interpret the result.
The waveform: \(f(t) = +A\) for \(0 < t < T/2\) and \(-A\) for \(T/2 < t < T\).
| Observation | Consequence |
|---|---|
| Mean value is zero | \(a_0 = 0\) |
| Odd: \(f(-t) = -f(t)\) | All \(a_n = 0\) — only sines |
| Half-wave: \(f(t+T/2) = -f(t)\) | All even harmonics vanish |
Two symmetry arguments have eliminated three quarters of the work before any integration. Problem 4 justifies them.
Compute \(b_n\). Using the odd symmetry, integrate over the half period and double:
With \(\omega_0T/2 = \pi\):
Evaluate the bracket:
| \(n\) | \(1-(-1)^n\) | \(b_n\) |
|---|---|---|
| Even | 0 | 0 |
| Odd | 2 | \(4A/n\pi\) |
confirming the half-wave symmetry prediction independently.
The harmonic amplitudes, for the running example \(A = 100\) V at 50 Hz:
| \(n\) | Frequency | Peak (V) | RMS (V) | Relative |
|---|---|---|---|---|
| 1 | 50 Hz | 127.32 | 90.03 | 1.000 |
| 3 | 150 Hz | 42.44 | 30.01 | 0.333 |
| 5 | 250 Hz | 25.46 | 18.01 | 0.200 |
| 7 | 350 Hz | 18.19 | 12.86 | 0.143 |
| 9 | 450 Hz | 14.15 | 10.00 | 0.111 |
Note the fundamental exceeds the square wave's own amplitude — 127.3 V peak against 100 V. The higher harmonics subtract near the middle of each half-cycle to flatten the top, so the fundamental must overshoot for their sum to come out flat.
Check by evaluating the series at \(t = T/4\), where \(f = A\). There \(\sin(n\pi/2)\) alternates \(+1, -1, +1,\dots\) for \(n = 1,3,5,\dots\):
The Leibniz series for \(\pi\), obtained as a by-product. This is a genuine check: had the coefficient been wrong by any factor, the identity would fail.
The \(1/n\) decay is the slowest of any common waveform, and it is the direct consequence of the discontinuity:
Problem 10 makes the connection between smoothness and decay rate general, and Problem 9 shows the discontinuity never disappears no matter how many terms are kept.
Prove the three symmetry rules and show how much labour each saves.
aEven symmetry, \(f(-t) = f(t)\). The integrand of \(b_n\) is
and an odd function integrates to zero over a symmetric interval. Hence \(b_n = 0\) for all \(n\) — the series contains only cosines and a constant.
bOdd symmetry, \(f(-t) = -f(t)\). By the same argument with the roles exchanged:
including \(a_0\) — an odd function has zero mean automatically.
cHalf-wave symmetry, \(f(t+T/2) = -f(t)\). Split the coefficient integral at the half period:
Substituting \(t = \tau+T/2\) in the second integral, and using \(\cos n\omega_0(\tau+T/2) = (-1)^n\cos n\omega_0\tau\):
The bracket vanishes for even \(n\). So half-wave symmetry kills every even harmonic — including the DC term — and the same argument applies to \(b_n\).
What each saves:
| Symmetry | Eliminates | Labour saved |
|---|---|---|
| Even | All \(b_n\) | Half |
| Odd | All \(a_n\) (and \(a_0\)) | Half |
| Half-wave | All even harmonics | Half |
| Odd + half-wave | All \(a_n\) and all even \(b_n\) | Three quarters |
The square wave of Problem 3 has both, which is why only \(b_n\) for odd \(n\) needed computing — one integral instead of four families.
An important caution: symmetry depends on the time origin. Shifting the square wave by \(T/4\) makes it even instead of odd:
| Origin choice | Series contains |
|---|---|
| Odd about \(t=0\) | Sines only |
| Even about \(t=0\) | Cosines only |
| Neither | Both |
Choose the origin to create symmetry before integrating. Problem 18 shows the physical content is unaffected — only the split between sine and cosine terms changes, never the harmonic magnitudes.
Half-wave symmetry is different in kind. Unlike the other two it cannot be created or destroyed by shifting the origin:
and it has real physical significance. Any waveform whose positive and negative half-cycles are identical in shape contains no even harmonics — which is why a symmetric inverter output or a balanced magnetic circuit produces only odd harmonics, and why the appearance of even harmonics signals an asymmetry such as DC offset or half-cycle saturation.
Derive the exponential Fourier series, relate its coefficients to \(a_n\) and \(b_n\), and explain why negative frequencies appear.
Substitute Euler's formulas into the trigonometric series:
Collecting terms in \(e^{jn\omega_0t}\) and \(e^{-jn\omega_0t}\) gives
The relationships:
| Quantity | In terms of \(a_n, b_n\) |
|---|---|
| \(c_0\) | \(a_0/2\) — the mean |
| \(c_n\) (\(n>0\)) | \(\tfrac12\left(a_n-jb_n\right)\) |
| \(c_{-n}\) | \(\tfrac12\left(a_n+jb_n\right) = c_n^*\) |
| \(\left|c_n\right|\) | \(\tfrac12\sqrt{a_n^2+b_n^2}\) |
For a real \(f(t)\), \(c_{-n} = c_n^*\) always. This conjugate symmetry is not a coincidence — it is exactly the condition that the sum comes out real.
Why negative frequencies. They are a bookkeeping device, not a physical claim:
The pair combines into one real sinusoid. Each rotating phasor is complex; only their sum is physical. This is precisely the "take the real part" convention of Set 20, made symmetric — and the reward is that the algebra involves only exponentials, which multiply and differentiate trivially.
The square wave in exponential form. From Problem 3, \(a_n = 0\) and \(b_n = 4A/n\pi\) for odd \(n\):
| \(n\) | \(c_n\) for \(A = 100\) | \(|c_n|\) |
|---|---|---|
| 1 | \(-j63.66\) | 63.66 |
| −1 | \(+j63.66\) | 63.66 |
| 3 | \(-j21.22\) | 21.22 |
| −3 | \(+j21.22\) | 21.22 |
Each is half the trigonometric amplitude, the other half sitting at the mirror frequency. Adding the pair recovers the 127.3 V peak of Problem 3.
Why this form is preferred for everything beyond hand computation:
| Advantage | Detail |
|---|---|
| One formula, not two | \(c_n\) replaces \(a_n\) and \(b_n\) |
| Magnitude and phase directly | \(|c_n|\) and \(\angle c_n\) — Problem 8's spectrum |
| Time shifts are trivial | Multiply by \(e^{-jn\omega_0t_0}\) — Problem 18 |
| Generalises to the transform | Problem 19 — let \(T \to \infty\) |
The last is decisive. The Fourier transform of Set 34 is the exponential series with the sum replaced by an integral, and that passage is invisible in the trigonometric form.
Find the Fourier series of a sawtooth and a triangular wave, and account for the difference in their decay rates.
aThe sawtooth, rising linearly from \(-A\) to \(+A\) over one period and dropping instantly. It is odd, so only \(b_n\) survives:
Integrating by parts:
All harmonics present, both odd and even, with alternating signs. There is no half-wave symmetry — the waveform's two half-cycles are not mirror images, since one contains the discontinuity.
bThe triangular wave, which rises and falls linearly with no jump. Odd and half-wave symmetric:
Compare the three waveforms met so far, normalised to unit fundamental:
| \(n\) | Square (\(1/n\)) | Sawtooth (\(1/n\)) | Triangle (\(1/n^2\)) |
|---|---|---|---|
| 1 | 1.000 | 1.000 | 1.000 |
| 2 | 0 | 0.500 | 0 |
| 3 | 0.333 | 0.333 | 0.111 |
| 5 | 0.200 | 0.200 | 0.040 |
| 7 | 0.143 | 0.143 | 0.020 |
The triangle's harmonics collapse far faster. Its seventh harmonic is 2% of the fundamental where the square wave's is 14% — a sevenfold difference, growing with \(n\).
The reason is the discontinuity. Square and sawtooth both jump; the triangle does not:
| Waveform | Continuity | Decay |
|---|---|---|
| Square | Jumps in \(f\) | \(1/n\) |
| Sawtooth | Jumps in \(f\) | \(1/n\) |
| Triangle | \(f\) continuous, \(f'\) jumps | \(1/n^2\) |
Problem 10 generalises this into a rule. The bandwidth a waveform demands is set by its sharpest feature, not its amplitude.
A useful relationship. The triangle is the integral of the square wave, and integrating divides each coefficient by \(jn\omega_0\):
Integration in time is division by \(n\) in the spectrum — Set 31, Problem 6's theorem applied harmonic by harmonic. Differentiating a triangle gives a square wave, and correspondingly multiplies each coefficient by \(n\).
Why the sawtooth has even harmonics but the square wave does not. Both are discontinuous, so both decay as \(1/n\) — the difference is symmetry, not smoothness:
Decay rate is governed by smoothness; which harmonics appear at all is governed by symmetry. The two questions are independent, and confusing them is a common error.
Find the Fourier series of half-wave and full-wave rectified sines, and explain what the spectra say about smoothing requirements.
aHalf-wave rectified sine — \(A\sin\omega_0t\) for the positive half-cycle, zero otherwise.
The DC term:
The fundamental survives at half amplitude:
The even harmonics:
Odd harmonics above the first are entirely absent — an unusual spectrum, and one that follows from the waveform being a sine multiplied by a square wave of the same period.
bFull-wave rectified sine — \(A|\sin\omega_0t|\). The period halves, so the "fundamental" of the rectified wave is at \(2\omega_0\):
No fundamental at all, and twice the DC output. Both facts make full-wave rectification the better choice.
Compare the two, as fractions of the DC output:
| Component | Half-wave | Full-wave |
|---|---|---|
| DC | \(0.318A\) | \(0.637A\) |
| Lowest ripple frequency | \(\omega_0\) (50 Hz) | \(2\omega_0\) (100 Hz) |
| Largest ripple / DC | \(0.5A/0.318A = 1.571\) | \(0.424A/0.637A = 0.667\) |
| RMS | \(A/2\) | \(A/\sqrt2\) |
Full-wave wins three times over: double the DC, less relative ripple, and the ripple that remains is at twice the frequency.
Why the ripple frequency matters most. A smoothing capacitor's attenuation goes as \(1/\omega\), so doubling the ripple frequency halves the required capacitance for the same ripple:
| Rectifier | Ripple to filter | Relative \(C\) needed |
|---|---|---|
| Half-wave | 1.571 × DC at 50 Hz | 1.00 |
| Full-wave | 0.667 × DC at 100 Hz | 0.21 |
Combining both effects, a full-wave rectifier needs roughly a fifth of the smoothing capacitance — which is why half-wave rectification survives only in the least demanding applications.
The \(1/n^2\) decay is worth noticing. Both rectified waves have coefficients falling as \(1/n^2\) rather than \(1/n\):
because neither waveform is discontinuous — the full-wave output has a corner at each zero crossing but no jump. By Problem 10's rule that gives \(1/n^2\), and it means the high harmonics are easily filtered.
Explain what a line spectrum shows, plot the square wave's, and set out what can be read from magnitude and phase spectra.
Definition. A line spectrum plots \(|c_n|\) against frequency \(n\omega_0\) — a set of discrete lines, one per harmonic:
| Feature | Meaning |
|---|---|
| Line positions | Multiples of \(\omega_0\) — set by the period alone |
| Line heights | \(|c_n|\) — set by the waveform's shape |
| Spacing | \(\omega_0 = 2\pi/T\) |
| Gaps between lines | Genuinely empty — no energy at non-harmonic frequencies |
The last point is what makes a periodic signal special. A periodic waveform occupies discrete frequencies only, which is why a spectrum analyser shows a comb rather than a continuum.
The square wave's magnitude spectrum (\(A = 100\) V, 50 Hz):
| Frequency | \(|c_n|\) (V) | Relative | dB below fundamental |
|---|---|---|---|
| 50 Hz | 63.66 | 1.000 | 0.0 |
| 100 Hz | 0 | — | — |
| 150 Hz | 21.22 | 0.333 | −9.5 |
| 250 Hz | 12.73 | 0.200 | −14.0 |
| 350 Hz | 9.09 | 0.143 | −16.9 |
| 450 Hz | 7.07 | 0.111 | −19.1 |
A \(1/n\) envelope with every even line missing. On a log–log plot the envelope is a straight line of slope \(-20\) dB/decade — the same slope as a single pole, and for the same reason.
The phase spectrum plots \(\angle c_n\). For the odd square wave every \(c_n\) is purely imaginary:
Constant phase. Shifting the time origin would change this entirely while leaving the magnitude spectrum untouched — Problem 18.
What each spectrum tells you:
| Question | Read from |
|---|---|
| How much distortion? | Magnitude — Problem 14 |
| What bandwidth is needed? | Magnitude envelope |
| Is there DC offset? | The \(n=0\) line |
| Are there even harmonics? | Magnitude — signals asymmetry |
| What does the waveform look like? | Both — magnitude alone is not enough |
The last is important and often forgotten. Two waveforms with identical magnitude spectra can look completely different, because rearranging the phases redistributes where the harmonics reinforce. A square wave and a narrow pulse train can share an envelope and share nothing else.
The bandwidth question, made concrete. To reproduce a 50 Hz square wave with harmonics down to 1% of the fundamental:
A 50 Hz square wave needs 5 kHz of bandwidth — a hundred times its own repetition rate. For the triangle wave of Problem 6, \(1/n^2 < 0.01\) gives \(n > 10\), so 500 Hz suffices. The edges, not the period, set the bandwidth.
Investigate what happens near a discontinuity as more harmonics are added, quantify the overshoot, and explain why it does not contradict convergence.
The experiment. Sum \(N\) harmonics of a \(\pm1\) square wave and record the peak value near the jump:
| Harmonics | Peak | Overshoot above 1 |
|---|---|---|
| 5 | 1.1884 | 18.84% |
| 11 | 1.1813 | 18.13% |
| 25 | 1.1795 | 17.95% |
| 101 | 1.1790 | 17.90% |
| 1001 | 1.1790 | 17.90% |
The overshoot does not shrink. It converges to a fixed 17.90% and stays there however many terms are added — which is the phenomenon.
The exact value. The limit is
involving the sine integral \(\text{Si}\). Quoted as a fraction of the total jump — here \(2\), from \(-1\) to \(+1\) — this is
The 8.949% figure is the standard one, and the two numbers are frequently confused: 8.949% of the jump, which for a \(\pm A\) square wave reads as 17.9% of \(A\).
Why this does not contradict convergence. The series does converge — but not uniformly:
| Quantity | As \(N\to\infty\) |
|---|---|
| Overshoot height | Constant at 8.949% of the jump |
| Overshoot width | \(\to 0\) as \(1/N\) |
| Overshoot area | \(\to 0\) |
| Error at any fixed point | \(\to 0\) |
The ripple gets narrower but never shorter, and slides ever closer to the discontinuity. Pick any point away from the jump and the series converges there perfectly well; the overshoot simply moves out of the way rather than diminishing.
At the discontinuity itself the series converges to the midpoint:
For the \(\pm A\) square wave, the series gives exactly zero at the jump. It splits the difference — a general property, not a special case.
Practical consequences, which are real rather than academic:
| Situation | Effect |
|---|---|
| Band-limiting a pulse | 9% overshoot at every edge |
| Digital signal through a filter | Ringing that can cause false triggering |
| Voltage rating of components | Must allow for the overshoot |
| Anti-aliasing before sampling | Gibbs ringing on transitions |
A sharp-cut filter applied to a square wave produces 9% overshoot regardless of how good the filter is — the overshoot comes from the truncation, not from any defect in the design.
The cure is to truncate gently. Instead of cutting the series off abruptly, taper the coefficients with a window:
| Truncation | Overshoot | Cost |
|---|---|---|
| Abrupt (rectangular) | 8.9% | None |
| Tapered (Hamming, Fejér, etc.) | Nearly zero | Slower transition |
This is exactly the trade of Set 30: sharpness against ringing. A Bessel filter's gentle roll-off is a taper in disguise, which is why it shows almost no overshoot on a step.
Establish the general relationship between a waveform's smoothness and its coefficient decay rate, and use it to predict bandwidth requirements.
The rule:
| First discontinuous derivative | Decay | Example |
|---|---|---|
| \(f\) itself (\(k=0\)) | \(1/n\) | Square, sawtooth |
| \(f'\) (\(k=1\)) | \(1/n^2\) | Triangle, rectified sine |
| \(f''\) (\(k=2\)) | \(1/n^3\) | Raised cosine |
| None — infinitely smooth | Faster than any power | Gaussian pulse |
Why it holds. Integration by parts, applied to the coefficient integral, transfers a derivative onto \(f\) and produces a factor \(1/jn\omega_0\):
Each integration by parts gains one power of \(n\) in the denominator — but only if the boundary term vanishes, which requires continuity. A jump makes the boundary term survive and stops the process, fixing the decay rate at that point.
Bandwidth for 1% accuracy, the practical consequence:
| Waveform | Decay | Harmonics to 1% | Bandwidth at 50 Hz |
|---|---|---|---|
| Square | \(1/n\) | 100 | 5 kHz |
| Triangle | \(1/n^2\) | 10 | 500 Hz |
| Raised cosine | \(1/n^3\) | 5 | 250 Hz |
A twentyfold difference in bandwidth for waveforms of the same period and amplitude. This is why data transmission shapes its pulses — the raised-cosine pulse is used precisely because its \(1/n^3\) decay minimises the spectrum it occupies.
The reverse reading is equally useful. Given a spectrum, the decay rate identifies the sharpest feature:
| Observed envelope | Diagnosis |
|---|---|
| −20 dB/dec | A discontinuity somewhere in the waveform |
| −40 dB/dec | Continuous but with corners |
| Falling faster | Smooth |
| Not falling at all | Impulses present |
The last row is the limiting case: an impulse train has coefficients that never decay, since \(\mathcal{L}\{\delta\} = 1\) is flat (Set 31, Problem 13). Infinite bandwidth is the price of an infinitely sharp feature.
The connection to filter roll-off. The envelope slopes are exactly those of Set 28:
and the reason is the same in both cases — repeated integration. A waveform's spectrum falls off for the same mathematical reason a filter's response does, which is why filtering a waveform and smoothing it are the same operation.
A 100 V, 50 Hz square wave drives a series circuit with \(R = 10\ \Omega\) and \(L = 31.83\) mH. Find the steady-state current harmonic by harmonic.
1Note the circuit at the fundamental:
A convenient choice: the circuit is at 45° at the fundamental, and becomes progressively more inductive at higher harmonics.
2The impedance at the \(n\)-th harmonic. Only the reactance scales:
This is the entire method — evaluate \(\mathbf{Z}(s)\) at \(s = jn\omega_0\), which is legitimate by Set 31, Problem 16 because the circuit is stable.
3Divide each voltage harmonic by its own impedance:
| \(n\) | \(V_n\) (V rms) | \(\left|\mathbf{Z}_n\right|\) (Ω) | \(I_n\) (A rms) | Phase |
|---|---|---|---|---|
| 1 | 90.03 | 14.14 | 6.3662 | −45.00° |
| 3 | 30.01 | 31.62 | 0.9490 | −71.57° |
| 5 | 18.01 | 50.99 | 0.3531 | −78.69° |
| 7 | 12.86 | 70.71 | 0.1819 | −81.87° |
| 9 | 10.00 | 90.55 | 0.1105 | −83.66° |
| 11 | 8.19 | 110.45 | 0.0741 | −84.81° |
Each harmonic is treated as a completely separate problem — a different source, a different impedance, a different phase. Nothing couples them, because the circuit is linear.
4Assemble the answer:
in peak values (RMS \(\times\sqrt2\)). Convergence is rapid — the eleventh harmonic contributes barely 1% of the fundamental.
The two attenuation mechanisms compound, which is why convergence is so much faster than the input's:
| \(n\) | \(V_n/V_1\) | \(I_n/I_1\) | Extra attenuation |
|---|---|---|---|
| 1 | 1.000 | 1.000 | 1.00× |
| 3 | 0.333 | 0.149 | 2.24× |
| 5 | 0.200 | 0.055 | 3.61× |
| 7 | 0.143 | 0.029 | 5.00× |
| 11 | 0.091 | 0.012 | 7.81× |
The source falls as \(1/n\); the impedance rises roughly as \(n\); the current therefore falls as \(1/n^2\). The inductor has smoothed the current without any deliberate filtering.
Why the transient is missing, and when that matters. The method finds only the steady state:
so the circuit settles within about one cycle and the steady state is reached almost immediately. For a circuit with \(\tau \gg T\) the steady state might take hundreds of cycles to establish, and Fourier says nothing about what happens meanwhile — that is Laplace's territory.
State Parseval's theorem for Fourier series and use it to find the RMS values in the running example.
The theorem. The mean square of a waveform is the sum of the mean squares of its harmonics:
Squares add, not amplitudes. This follows directly from orthogonality (Problem 2): squaring the series produces cross-terms, and every one of them integrates to zero.
Verify on the square wave, whose RMS is obviously \(A\) since \(|f| = A\) always:
Using the known sum \(\sum_{n \text{ odd}}1/n^2 = \pi^2/8\):
Exact. And read backwards, this is a derivation of the series \(1+\frac19+\frac1{25}+\cdots = \pi^2/8\) — a second number-theoretic by-product, after Problem 3's Leibniz series.
Convergence in practice. Truncating the sum:
| Harmonics kept | \(V_{\text{rms}}\) (V) | Error |
|---|---|---|
| 1 only | 90.03 | −10.0% |
| 1, 3 | 94.90 | −5.1% |
| to 9 | 98.20 | −1.8% |
| to 99 | 99.84 | −0.16% |
| to 1999 | 99.99 | −0.01% |
The fundamental alone accounts for 90% of the RMS despite the waveform's severe distortion — because the harmonics enter as squares, and \(0.333^2 = 0.111\) is already small.
The current in the running example:
| Quantity | Value |
|---|---|
| Fundamental alone | 6.3662 A |
| True RMS | 6.4508 A |
| Harmonic contribution | 1.3% |
The harmonics add only 1.3% to the RMS current, even though they add 48% to the RMS voltage — because the inductor has removed most of them (Problem 11).
Why this matters for measurement. Two instruments give different readings on a distorted waveform:
| Instrument | Reads | On the square wave |
|---|---|---|
| True-RMS meter | The Parseval sum | 100.0 V ✓ |
| Average-responding, RMS-calibrated | Mean of \(|f|\) × 1.11 | 111.1 V ✗ |
The second type is calibrated assuming a sine wave, where the form factor is 1.111. On a square wave it over-reads by 11%; on a peaky rectifier current it can under-read by 40%. Only a true-RMS instrument is trustworthy on a distorted waveform.
Show that harmonics of different orders contribute no average power, and compute the power in the running example two ways.
The average power is the mean of \(vi\) over a period. Substituting both series and multiplying out gives terms of the form
By orthogonality (Problem 2) this vanishes unless \(m = n\). A 150 Hz voltage and a 250 Hz current transfer no net energy, however large both may be.
Hence power adds harmonic by harmonic:
with \(V_n, I_n\) RMS and \(\phi_n\) the phase angle at that harmonic. Each harmonic behaves as an independent single-frequency circuit — Set 21's power theory applied term by term.
Compute for the running example, method 1 — sum \(V_nI_n\cos\phi_n\):
| \(n\) | \(V_n\) | \(I_n\) | \(\cos\phi_n\) | \(P_n\) (W) |
|---|---|---|---|---|
| 1 | 90.03 | 6.3662 | 0.7071 | 405.29 |
| 3 | 30.01 | 0.9490 | 0.3162 | 9.00 |
| 5 | 18.01 | 0.3531 | 0.1961 | 1.25 |
| 7 | 12.86 | 0.1819 | 0.1414 | 0.33 |
| 9+ | — | — | — | 0.26 |
| Total | 416.12 | |||
Method 2 — all the power is dissipated in the resistor, so
Agreeing exactly. The second method is far quicker when the circuit has a single resistor, and it also confirms Parseval — the two are the same statement.
Where the power actually goes:
| Source | Power | Share |
|---|---|---|
| Fundamental | 405.29 W | 97.40% |
| All harmonics | 10.83 W | 2.60% |
The harmonics carry only 2.6% of the power despite the input being 48% distorted — because the inductor limits their current, and power goes as current squared.
The inductor consumes no average power at any harmonic, as expected:
so it exchanges reactive power at every harmonic while dissipating none — Set 21's result, holding independently at each frequency.
A caution about reactive power. Unlike \(P\), the definition of \(Q\) with harmonics is not settled:
| Quantity | Status with harmonics |
|---|---|
| \(P\) | Unambiguous — mean of \(vi\) |
| \(S = V_{\text{rms}}I_{\text{rms}}\) | Unambiguous |
| \(Q\) | Several competing definitions |
| \(S^2 = P^2+Q^2\) | Fails — a third term is needed |
The shortfall is called distortion power \(D\), with \(S^2 = P^2+Q^2+D^2\). The familiar power triangle of Set 21 is a two-dimensional picture of what is really a three-dimensional situation, and it applies only to sinusoidal operation.
Define THD, compute it for the square wave exactly, and compare the input and output distortion in the running example.
The definition — harmonic content relative to the fundamental:
using RMS values. A pure sinusoid has THD = 0, and the measure grows without bound as distortion increases.
Exact THD of a square wave. Since \(V_{\text{rms}} = A\) and \(V_1 = 4A/(\pi\sqrt2)\):
A closed form, using the same \(\pi^2/8\) that appeared in Parseval. The relation \(\text{THD} = \sqrt{(F_{\text{rms}}/F_1)^2-1}\) is the quickest route whenever the true RMS is known.
Typical values, for calibration:
| Waveform or source | THD |
|---|---|
| Pure sine | 0% |
| Utility supply (good) | < 3% |
| Utility supply (limit, IEEE 519) | 5% |
| Triangle wave | 12.1% |
| Full-wave rectified sine — ripple factor | 48.3% |
| Full-wave rectified sine (about its 2\(\omega_0\) fundamental) | 22.7% |
| Square wave | 48.3% |
| Uncorrected rectifier input current | Often > 100% |
Note the two rectifier entries measure different things. The ripple factor compares all AC content with the DC output and comes to \(\sqrt{\pi^2/8-1} = 48.3\%\) — numerically identical to the square wave's THD, since both reduce to the same expression. The THD proper compares the harmonics with the \(2\omega_0\) fundamental and is 22.7%.
THD can exceed 100% — it is referenced to the fundamental, not the total, so a waveform with more harmonic content than fundamental is entirely possible. A capacitor-input rectifier draws exactly such a current.
The running example, input against output:
| Quantity | Fundamental | True RMS | THD |
|---|---|---|---|
| Voltage | 90.03 V | 100.00 V | 48.34% |
| Current | 6.3662 A | 6.4508 A | 16.35% |
The inductor has cut the distortion by a factor of three without any deliberate filter design — simply because \(|\mathbf{Z}_n|\) rises with \(n\). Problem 16 pursues this.
An alternative definition exists and is used in power engineering:
| Definition | Square wave | Range |
|---|---|---|
| \(\text{THD}_F\) (fundamental) | 48.34% | 0 to ∞ |
| \(\text{THD}_R\) (total RMS) | 43.51% | 0 to 100% |
Always state which is meant. \(\text{THD}_F\) is the usual convention and is assumed throughout here; \(\text{THD}_R\) is sometimes preferred because it is bounded.
What THD does not tell you. It is a single number summarising a whole spectrum:
| Question | Answered by THD? |
|---|---|
| How much harmonic content? | Yes |
| Which harmonics? | No |
| Will it overload the neutral? | No — needs the triplen content (Problem 17) |
| Will it excite a resonance? | No — needs individual orders |
Two waveforms with equal THD can have entirely different effects. Standards therefore specify individual harmonic limits as well as a total, precisely because the total hides the distribution.
Compute the power factor in the running example, then test the standard formula \(\text{PF} = \cos\phi_1/\sqrt{1+\text{THD}_I^2}\) against it and explain the discrepancy.
Power factor is always defined the same way, harmonics or not:
This definition never fails. It is the shortcuts that fail.
Compute directly from Problems 12 and 13:
Now the standard formula. It splits PF into displacement and distortion factors:
0.6978 against a true value of 0.6451 — an error of 8%. The formula is not approximately right here; it is wrong.
Why it fails. The derivation assumes the voltage is a pure sinusoid:
— all harmonic currents meet zero voltage and carry no power. Here the voltage is the square wave, so every harmonic has both voltage and current and every one contributes:
| Assumption | This case |
|---|---|
| Voltage sinusoidal | False — THDV = 48.3% |
| Only the fundamental carries power | False — harmonics carry 2.6% |
| Formula valid | No |
The contrast makes it clear. Take the identical circuit with a pure 100 V rms sinusoid:
| Quantity | Square-wave supply | Sinusoidal supply |
|---|---|---|
| \(V_{\text{rms}}\) | 100.00 V | 100.00 V |
| \(I_{\text{rms}}\) | 6.4508 A | 7.0711 A |
| \(P\) | 416.12 W | 500.00 W |
| \(\text{PF}\) | 0.6451 | 0.7071 |
| Formula valid? | No | Yes |
The same RMS voltage delivers 17% less power when it is a square wave, because the harmonic voltage meets a high impedance and achieves little.
When each approach is safe:
| Situation | Use |
|---|---|
| Sinusoidal voltage, distorted current | The standard formula — the usual utility case |
| Distorted voltage | \(P/S\) from first principles |
| Both distorted | \(P/S\), computed harmonic by harmonic |
The first row covers most real installations — the supply is reasonably sinusoidal and the load draws distorted current — which is exactly why the formula became standard, and why it is applied outside its range so often.
Quantify how the \(RL\) circuit of the running example filters the square wave, and connect the result to Set 30's filter design.
The mechanism. The transfer function from source voltage to current is
a first-order low-pass with corner at \(\omega = R/L\). Here \(R/L = 314.2\) rad/s \(= \omega_0\) exactly — the corner sits at the fundamental, which is why the fundamental is at 45°.
Harmonic by harmonic:
| \(n\) | Input \(V_n/V_1\) | Output \(I_n/I_1\) | Attenuation |
|---|---|---|---|
| 1 | 1.000 | 1.000 | 1.00× |
| 3 | 0.333 | 0.1491 | 2.24× |
| 5 | 0.200 | 0.0555 | 3.61× |
| 7 | 0.143 | 0.0286 | 5.00× |
| 9 | 0.111 | 0.0174 | 6.40× |
| 11 | 0.091 | 0.0116 | 7.81× |
The attenuation factor is \(|\mathbf{Z}_n|/|\mathbf{Z}_1|\), growing roughly linearly with \(n\). Combined with the source's own \(1/n\) fall, the current harmonics decay as \(1/n^2\).
The overall effect on distortion:
A reduction by a factor of 2.96. A single inductor has done most of the work, which is why series line reactors are the standard first remedy for harmonic problems in industrial installations.
Improving it. To cut distortion further, move the corner frequency down:
| \(\omega_c/\omega_0\) | Effect on THDI | Cost |
|---|---|---|
| 1 (present) | 16.35% | — |
| 0.1 | Roughly 10× smaller | Ten times the inductance |
| 0.01 | Roughly 100× smaller | Fundamental also attenuated |
The difficulty is that a first-order filter cannot separate the fundamental from the third harmonic sharply. They are only a factor of three apart, and 20 dB/decade gives just 9.5 dB over that span.
This is precisely Set 30's problem. The specification would be:
| Requirement | Value |
|---|---|
| Pass | 50 Hz, minimal loss |
| Reject | 150 Hz onward, heavily |
| Transition ratio | \(\omega_s/\omega_p = 3\) |
A transition ratio of 3 is generous by Set 30's standards — Challenge C1 there faced 1.2 — so a modest order suffices. For 40 dB of rejection at the third harmonic with 1 dB of passband loss, Set 30's formula gives \(n \ge 4.8\), hence a 5th-order Butterworth.
The alternative used in practice: tuned traps. Rather than a low-pass, place a series \(LC\) resonant at the offending harmonic (Set 29):
| Approach | Suits |
|---|---|
| Low-pass reactor | Broad-spectrum distortion |
| Tuned trap | One or two dominant harmonics |
| Active filter | Varying or unpredictable spectra |
A trap tuned to 150 Hz shunts the third harmonic to earth while barely loading the 50 Hz fundamental. It is far more economical than a high-order low-pass when the spectrum is known and stable — and Set 29, Problem 20 gave the detuning-reactor design that keeps it from resonating with the supply.
Determine the phase sequence of each harmonic in a balanced three-phase system, and explain why the third harmonic overloads the neutral.
Set up the phases. In a balanced system phase \(b\) lags \(a\) by 120° and \(c\) by 240°. At the \(n\)-th harmonic that delay becomes
because a fixed time delay corresponds to \(n\) times the phase angle at the \(n\)-th harmonic — Problem 18's time-shift result.
Work through the harmonics:
| \(n\) | \(120n \bmod 360\) | Sequence |
|---|---|---|
| 1 | 120° | Positive |
| 2 | 240° | Negative |
| 3 | 0° | ZERO |
| 4 | 120° | Positive |
| 5 | 240° | Negative |
| 6 | 0° | ZERO |
| 7 | 120° | Positive |
| 9 | 0° | ZERO |
The pattern repeats with period 3. Harmonics divisible by 3 — the triplens — have zero phase shift, meaning they are identical in all three lines at every instant.
The consequence at the neutral. The neutral carries the sum of the three line currents:
| Harmonic type | Three phasors | Sum |
|---|---|---|
| Positive sequence | 120° apart | Zero |
| Negative sequence | 120° apart | Zero |
| Zero sequence (triplen) | All in phase | \(3\times\) one phase |
Triplens do not cancel — they add arithmetically. Everything else cancels perfectly in a balanced system.
The practical hazard. Consider a balanced load drawing 100 A of fundamental plus 30 A of third harmonic per phase:
| Conductor | Current |
|---|---|
| Each line | \(\sqrt{100^2+30^2} = 104.4\) A |
| Neutral | \(3 \times 30 = \mathbf{90}\) A |
A neutral sized on the assumption that a balanced load needs none is now carrying 86% of the line current. This is a genuine and frequent cause of overheating — and it is invisible to a clamp meter reading only the fundamental.
Where the third harmonic comes from. Almost every non-linear single-phase load produces it:
| Source | Mechanism |
|---|---|
| Switch-mode power supplies | Capacitor-input rectifier draws peaky current |
| LED and fluorescent drivers | Same |
| Transformer magnetising current | Saturation of the \(B\)–\(H\) curve |
| Phase-controlled dimmers | Chopped waveform |
Note the common feature: all are half-wave symmetric, so they produce odd harmonics only — and the third is the largest of them. An office full of computers is a large, well-balanced, heavily triplen-producing load.
The remedies, all standard practice:
| Remedy | How it works |
|---|---|
| Oversized neutral | Rated for up to 173% of line current |
| Delta winding | Zero-sequence currents circulate and are trapped |
| Zig-zag transformer | Provides a low-impedance path to earth |
| Active filter | Injects cancelling harmonics |
The delta winding is why Dy is the standard distribution connection — Set 27 noted this as "harmonic trapping" without explaining it. The delta provides a closed loop in which the in-phase triplen currents can circulate, keeping them off the supply side entirely.
Determine how a time shift affects the Fourier coefficients, and explain why symmetry is origin-dependent but the spectrum is not.
Derive the rule. For \(g(t) = f(t-t_0)\):
Substituting \(\tau = t-t_0\) and using periodicity:
Magnitude unchanged, phase rotated by \(-n\omega_0t_0\) — linear in \(n\), which is Set 31, Problem 7's delay theorem restricted to harmonic frequencies.
The key consequence:
| Quantity | Affected by a shift? |
|---|---|
| Magnitude spectrum | No |
| Phase spectrum | Yes — rotated linearly in \(n\) |
| RMS value | No (Parseval uses magnitudes) |
| THD | No |
| Split between \(a_n\) and \(b_n\) | Yes |
| Apparent even/odd symmetry | Yes |
This resolves Problem 4's puzzle. Whether a waveform looks even or odd depends on where the clock started, and shifting merely redistributes each harmonic between its sine and cosine parts — the magnitude \(\sqrt{a_n^2+b_n^2}\) is invariant.
Demonstrate on the square wave. Shifting by a quarter period, \(t_0 = T/4\):
| \(n\) | Extra phase | Original \(\angle c_n\) | New \(\angle c_n\) |
|---|---|---|---|
| 1 | −90° | −90° | −180° |
| 3 | −270° | −90° | 0° |
| 5 | −450° ≡ −90° | −90° | −180° |
| 7 | −630° ≡ −270° | −90° | 0° |
All phases are now 0° or 180°, meaning every coefficient is real — the shifted wave is even, and its series contains only cosines. Same waveform, same spectrum, entirely different-looking series.
Why linear phase is a delay. The shift adds phase proportional to \(n\):
This is Set 28, Problem 17's constant group delay, and Set 30, Problem 9's Bessel criterion, seen from the series side. If a filter shifted every harmonic by the same angle instead of the same time, the waveform would be distorted — which is exactly what a non-linear-phase filter does.
The practical moral for computation:
| Step | Action |
|---|---|
| 1 | Choose the origin to make the waveform even or odd |
| 2 | Compute the simpler series |
| 3 | Shift back if the original timing matters |
If only magnitudes are wanted — for RMS, THD or heating — step 3 can be skipped entirely. Most power-quality calculations need nothing more.
Show how the Fourier series becomes the Fourier transform as the period grows without bound, and identify what must change.
The limitation to remove. Everything so far has required strict periodicity — but a single pulse, a decaying transient or a speech waveform is not periodic. The trick is to treat such a signal as periodic with \(T \to \infty\).
What happens to the spectrum. Line spacing is \(\omega_0 = 2\pi/T\):
| \(T\) | Line spacing |
|---|---|
| 0.02 s | 50 Hz |
| 0.1 s | 10 Hz |
| 1 s | 1 Hz |
| 10 s | 0.1 Hz |
| \(\to\infty\) | \(\to 0\) |
The lines crowd together until they merge into a continuum. A discrete spectrum becomes a continuous one — which is the essential difference between series and transform.
What happens to the coefficients. Each is
and the \(1/T\) drives every coefficient to zero. The individual lines vanish — which is why the transform cannot simply be the limit of the coefficients.
The fix: rescale before taking the limit. Define
Multiplying by \(T\) exactly cancels the shrinking factor. The Fourier transform of Set 34 — and the reconstruction becomes an integral:
The correspondence, item by item:
| Series (periodic) | Transform (aperiodic) |
|---|---|
| Discrete lines at \(n\omega_0\) | Continuous \(F(\omega)\) |
| \(\sum_n\) | \(\frac{1}{2\pi}\int d\omega\) |
| \(c_n\) has units of \(f\) | \(F(\omega)\) is a density, per unit frequency |
| Finite power | Finite energy |
| Parseval: \(\sum|c_n|^2\) | Parseval: \(\frac{1}{2\pi}\int|F|^2d\omega\) |
The units change is the conceptual step. \(F(\omega)\) is not "the amount at \(\omega\)" — no single frequency carries finite energy in a continuous spectrum — but a density that must be integrated over a band.
A worked illustration. Take a rectangular pulse of width \(\tau\) repeating with period \(T\). Its coefficients are
| As \(T\) grows | Envelope | Lines |
|---|---|---|
| Fixed \(\tau\) | Unchanged — same sinc shape | Closer together, shorter |
| \(T\to\infty\) | Same sinc | Merge into it |
The envelope was the transform all along. The series samples it at multiples of \(\omega_0\); removing the periodicity simply fills in between the samples.
What Set 34 gains from the change:
| New capability | Why the series could not |
|---|---|
| Aperiodic signals | Series requires periodicity |
| Energy spectral density | Series has discrete power lines |
| Bandwidth–duration reciprocity | Needs a continuum to state |
| Sampling theory | Needs both descriptions together |
The third is the one Set 28, Problem 19 has been owing since \(t_rf_c = 0.35\) was first observed.
Draw together what the harmonic picture has explained, and identify what remains for Sets 34 and 35.
The method, complete:
| Step | Tool | Problem |
|---|---|---|
| 1 | Exploit symmetry before integrating | 4 |
| 2 | Compute \(c_n\) or \(a_n, b_n\) | 2, 3 |
| 3 | Evaluate \(\mathbf{Z}(jn\omega_0)\) at each harmonic | 11 |
| 4 | Superpose the responses | 11 |
| 5 | Combine by Parseval for RMS and power | 12, 13 |
What the harmonic view explained that the time-domain view could not:
| Phenomenon | Harmonic explanation |
|---|---|
| Full-wave rectifiers need less smoothing | Ripple at \(2\omega_0\), no fundamental — Problem 7 |
| Neutral conductors overheat | Triplens are zero sequence — Problem 17 |
| Dy is the standard connection | Delta traps zero-sequence currents — Problem 17 |
| Average-responding meters mislead | Calibrated for a sine's form factor — Problem 12 |
| Band-limited pulses overshoot 9% | Gibbs — Problem 9 |
| Even harmonics signal a fault | Half-wave symmetry broken — Problem 4 |
Each is invisible in the time domain and obvious in the frequency domain.
The recurring warnings, all of one kind — a shortcut applied outside its range:
| Shortcut | Fails when | Problem |
|---|---|---|
| \(\text{PF} = \cos\phi_1/\sqrt{1+\text{THD}^2}\) | The voltage is distorted | 15 |
| \(S^2 = P^2+Q^2\) | Any harmonics present | 13 |
| Average-responding meter | The waveform is not sinusoidal | 12 |
| THD as a summary | The distribution matters | 14 |
| Neutral carries no current | Triplens present | 17 |
Every one is a sinusoidal-operation result quietly assumed to hold generally. Problem 15's 8% power-factor error is the sharpest instance.
What the method cannot do:
| Limitation | Consequence |
|---|---|
| Requires periodicity | No single pulses, no transients |
| Steady state only | Says nothing about the first cycles |
| Discrete spectrum | Cannot express bandwidth–duration relations |
| Assumes stability | Set 31, Problem 16's condition |
The first two are the price paid in Problem 1 for computability, and they were worth paying. The third is a genuine gap — the reciprocity between rise time and bandwidth needs a continuum to state at all.
The remaining programme:
| Set | Topic | Closes |
|---|---|---|
| 34 | The Fourier transform | Aperiodic signals; bandwidth–duration reciprocity |
| 35 | Two-port networks | Cascades with loading — Set 32, Challenge C1 |
Set 34 follows directly from Problem 19: stretch the period to infinity and rescale. Set 35 addresses the one structural gap that has survived every method so far — that a two-stage circuit's transfer function is not the product of its stages'.
Practice Problems
Work each on paper before opening the answer. The answer is given so you can check yourself; the method is deliberately not.
P1. A waveform is even. Which coefficients vanish?
Show answer
All \(b_n\) — the series contains only cosines and a constant — Problem 4.P2. A waveform satisfies \(f(t+T/2) = -f(t)\). What does its spectrum lack?
Show answer
All even harmonics, including DC — Problem 4.P3. Give the third-harmonic amplitude of a 200 V square wave.
Show answer
\(4(200)/(3\pi) = 84.88\) V peak, i.e. 60.02 V rms — Problem 3.P4. Why does a triangle wave converge faster than a square wave?
Show answer
It is continuous, so \(|c_n| \sim 1/n^2\) rather than \(1/n\) — Problem 10.P5. What is the DC value of a full-wave rectified sine of amplitude \(A\)?
Show answer
\(2A/\pi = 0.637A\) — twice the half-wave value — Problem 7.P6. A signal has \(V_1 = 100\) V, \(V_3 = 30\) V, \(V_5 = 20\) V rms. Find \(V_{\text{rms}}\).
Show answer
\(\sqrt{100^2+30^2+20^2} = 106.3\) V — Problem 12.P7. Find the THD of that signal.
Show answer
\(\sqrt{30^2+20^2}/100 = 36.06\%\) — Problem 14.P8. A 60 Hz fundamental drives a 0.1 H inductor. What is its impedance at the fifth harmonic?
Show answer
\(j5(2\pi)(60)(0.1) = j188.5\ \Omega\) — five times the fundamental value — Problem 11.P9. Does a 150 Hz voltage and a 250 Hz current transfer average power?
Show answer
No — different harmonics are orthogonal — Problems 2 and 13.P10. Which harmonics are zero sequence in a three-phase system?
Show answer
The triplens: 3, 6, 9, 12, … — Problem 17.P11. Each phase of a balanced load carries 40 A of third harmonic. What does the neutral carry?
Show answer
120 A — three times, since they are in phase — Problem 17.P12. A waveform is delayed by \(t_0\). What happens to \(|c_n|\)?
Show answer
Nothing — only the phases rotate, by \(-n\omega_0t_0\) — Problem 18.
Challenge Problems
Each needs an idea rather than a formula. Decide what the governing principle is before opening the answer.
C1. A capacitor-input rectifier draws current only near the supply peak. Model it as a rectangular pulse of adjustable conduction angle and show how THD and crest factor depend on that angle. Explain why power-factor correction capacitors do not help.
Show answer
The model. The capacitor holds the DC bus near the peak voltage, so the diodes conduct only while the supply exceeds it — a narrow pulse at each peak, alternating in sign. Idealise it as a rectangle of half-width \(\delta\) centred on each peak.
Computed results, for unit pulse height:THD passes 100% below about 45° of conduction — the harmonic content then exceeds the fundamental, which is possible precisely because THD is referenced to the fundamental rather than the total (Problem 14).Conduction angle \(I_1\) \(I_{\text{rms}}\) THD Crest factor 60° 0.637 0.577 80.0% 1.73 40° 0.436 0.472 115.3% 2.12 30° 0.329 0.408 143.3% 2.45 20° 0.222 0.334 186.8% 2.99
Why the current is so distorted. A narrow pulse is the extreme of Problem 10's rule: the sharper the feature, the slower the spectral decay. A rectangular pulse of width \(\tau\) has a sinc spectrum whose first null is at \(1/\tau\) — the narrower the conduction, the more harmonics carry significant energy.
Now the power factor. Take the 30° case with a sinusoidal supply, so Problem 15's formula is valid:This is the crucial point. The displacement factor is already unity — the current is in phase with the voltage. The poor power factor is entirely distortion.Factor Value Displacement, \(\cos\phi_1\) ≈ 1.00 — the pulse is centred on the peak Distortion, \(I_1/I_{\text{rms}}\) \(0.329/0.408 = 0.807\) Total PF 0.807
Why capacitors cannot fix it. A power-factor capacitor supplies reactive current at the fundamental, correcting displacement:Adding capacitance here makes matters worse, for two reasons. It introduces leading reactive current where none was needed, degrading the displacement factor from unity. And, more seriously, it forms a resonant circuit with the supply inductance — Challenge C2.Problem Capacitor helps? Lagging motor load (\(\cos\phi_1 = 0.8\)) Yes — that is what it is for Rectifier distortion (\(\cos\phi_1 = 1\)) No — nothing to correct
The real remedies:All three widen or reshape the conduction, rather than adding reactive compensation — because the deficit is in waveform shape, not in phase.Remedy Effect Series line reactor Widens the conduction angle — Problem 16 Active PFC stage Forces sinusoidal input current; PF > 0.99 Multi-pulse rectifier Cancels the low-order harmonics C2. An 11 kV system with 100 MVA short-circuit level has a power-factor capacitor bank installed. Determine which bank sizes are dangerous, and how a detuning reactor fixes the problem.
Show answer
The mechanism. The supply is inductive; the capacitor bank is capacitive. Together they form a parallel resonant circuit as seen from the harmonic-producing load, and Set 29, Problem 9 showed a parallel resonance presents very high impedance at its resonant frequency.
The resonant harmonic order. The system reactance is \(X_s = V^2/S_{sc}\) and the capacitor reactance \(X_c = V^2/Q_c\). Resonance requires \(hX_s = X_c/h\):Testing bank sizes:\[ \boxed{\;h = \sqrt{\frac{S_{sc}}{Q_c}}\;} \]The 5th and 7th are exactly the dominant harmonics of a six-pulse converter drive, which is the commonest industrial harmonic source. A 4 Mvar bank on this system would be a serious mistake.\(Q_c\) (Mvar) \(h\) Verdict 1.00 10.00 Between the 7th and 11th — acceptable 2.00 7.07 DANGEROUS — 7th harmonic 4.00 5.00 DANGEROUS — 5th harmonic 6.25 4.00 Safe — no significant 4th harmonic 10.00 3.16 Close to the 3rd — risky
What goes wrong. At \(h = 5\) the parallel combination presents an impedance of \(Q\) times the individual branch reactances (Set 29, Problem 9). A modest 5th-harmonic injection then produces:The counter-intuitive point: the capacitor was installed to improve power quality and instead degrades it, because nobody checked \(\sqrt{S_{sc}/Q_c}\).Consequence Detail Large harmonic voltage Distorts the whole busbar Capacitor overcurrent Fuses blow; dielectric overheats Amplification, not filtering The bank makes distortion worse
The detuning reactor. Add a small series inductance so the branch is series resonant below the lowest troublesome harmonic. With reactor reactance \(p\) as a fraction of the capacitor's:\[ h_{\text{tuned}} = \frac{1}{\sqrt{p}} \]Why this works. Above \(h_{\text{tuned}}\) the branch is net inductive, so it can no longer resonate with the inductive supply — parallel resonance between two inductances is impossible. The bank still supplies fundamental reactive power (it is capacitive at \(h=1\)) while behaving as an inductor at every harmonic of concern.\(p\) \(h_{\text{tuned}}\) Protects against 5% 4.47 5th and above 6% 4.08 5th and above — the usual choice 7% 3.78 5th and above, more margin 14% 2.67 3rd and above
The design rule: tune below the lowest harmonic present, never at it. Tuning exactly at the 5th would make an excellent filter and a fragile one — component drift or a change in \(S_{sc}\) would move the resonance onto the harmonic, and Set 30, Challenge C3's tolerance argument applies directly.C3. The 100 V, 50 Hz square wave drives a series \(RLC\) circuit with \(R = 5\ \Omega\), \(L = 50\) mH and \(C = 22.52\) µF. Find the current and explain the result.
Show answer
First identify the resonance:Exactly the third harmonic. The quality factor is\[ f_0 = \frac{1}{2\pi\sqrt{LC}} = \frac{1}{2\pi\sqrt{(0.05)(22.52\times10^{-6})}} = 150.0\ \text{Hz} \]Harmonic by harmonic:\[ Q = \frac{1}{R}\sqrt{\frac{L}{C}} = \frac{1}{5}\sqrt{\frac{0.05}{22.52\times10^{-6}}} = 9.43 \]The third harmonic dominates completely. At resonance \(\mathbf{Z}_3 = R = 5\ \Omega\) — the reactances cancel exactly — while every other harmonic sees a large impedance.\(n\) \(V_n\) (V) \(|\mathbf{Z}_n|\) (Ω) \(I_n\) (A) 1 90.03 125.76 0.7159 3 30.01 5.00 6.0021 5 18.01 50.51 0.3565 7 12.86 89.90 0.1431 9 10.00 125.76 0.0795 A source harmonic three times smaller produces a current eight times larger — a swing of a factor of 25.\[ \frac{I_3}{I_1} = \frac{6.002}{0.716} = \mathbf{8.38} \qquad\text{although}\qquad \frac{V_3}{V_1} = 0.333 \]
The consequences:The current is very nearly a pure 150 Hz sinusoid — the circuit has extracted one harmonic from a square wave and discarded the rest. This is a selective filter in the sense of Set 29, and the third harmonic is now the fundamental of the current waveform.Quantity Value Third-harmonic share \(I_{\text{rms}}\) 6.058 A 98.2% \(P\) 183.5 W 98.2% (180.1 W)
The hazard. Compute the capacitor voltage at the third harmonic:\[ V_{C3} = \frac{I_3}{3\omega_0C} = \frac{6.002}{2\pi(150)(22.52\times10^{-6})} = 282.8\ \text{V} \]283 V appears across the capacitor from a 30 V source harmonic — Set 29's voltage magnification, driven by a harmonic nobody intended to apply. The inductor carries an equal and opposite 283 V.\[ \frac{282.8}{30.01} = 9.42 = Q\;\checkmark \]
Why this matters in practice. A designer sizing that capacitor from the source's fundamental would rate it for perhaps 150 V and watch it fail. The scenario is not contrived:The lesson: a small harmonic meeting a resonance is more dangerous than a large one meeting a high impedance. Checking the spectrum against the resonant frequencies is a design step, not an afterthought — and Set 29's \(Q\) tells you exactly how large the magnification will be.Real situation Mechanism PF capacitor resonating with supply Challenge C2 Cable capacitance with transformer leakage Unintended series resonance Filter tuned exactly on a harmonic Works, but stresses its own components
Multiple-Choice Questions
Twelve questions in GATE/ESE style. Commit to an answer before opening the explanation.
Q1. An odd function's Fourier series contains
(a) cosines only (b) sines only (c) both (d) a DC term only
Show answer
(b) — all \(a_n\), including \(a_0\), vanish — Problem 4.Q2. Half-wave symmetry \(f(t+T/2) = -f(t)\) eliminates
(a) odd harmonics (b) even harmonics (c) the fundamental (d) nothing
Show answer
(b), including DC — and unlike even/odd symmetry it cannot be created by shifting the origin — Problem 4.Q3. The \(n\)-th harmonic amplitude of a square wave of amplitude \(A\) is
(a) \(A/n\) (b) \(2A/n\pi\) (c) \(4A/n\pi\) for odd \(n\) (d) \(4A/n^2\pi\)
Show answer
(c), and zero for even \(n\) — Problem 3.Q4. A waveform continuous but with corners has coefficients decaying as
(a) \(1/n\) (b) \(1/n^2\) (c) \(1/n^3\) (d) exponentially
Show answer
(b) — the first discontinuous derivative is \(f'\) — Problem 10.Q5. The Gibbs overshoot at a discontinuity is about
(a) 2% of the jump (b) 9% of the jump (c) 18% of the jump (d) it vanishes as \(N\to\infty\)
Show answer
(b) — 8.949% of the total jump, which for a \(\pm A\) square wave reads as 17.9% of \(A\). It never vanishes; it narrows — Problem 9.Q6. A full-wave rectified sine of amplitude \(A\) has DC value
(a) \(A/\pi\) (b) \(2A/\pi\) (c) \(A/2\) (d) \(A/\sqrt2\)
Show answer
(b) \(= 0.637A\) — twice the half-wave value — Problem 7.Q7. The RMS of a waveform with harmonics is
(a) the sum of the harmonic RMS values (b) the square root of the sum of their squares (c) the largest harmonic (d) the fundamental
Show answer
(b) — Parseval, following from orthogonality — Problem 12.Q8. Average power is produced by
(a) all voltage–current harmonic pairs (b) only pairs of the same order (c) only the fundamental (d) only the DC term
Show answer
(b) — cross-order terms integrate to zero — Problem 13.Q9. The THD of a square wave is
(a) 12.1% (b) 33.3% (c) 48.3% (d) 100%
Show answer
(c) — exactly \(\sqrt{\pi^2/8-1}\) — Problem 14.Q10. The formula \(\text{PF} = \cos\phi_1/\sqrt{1+\text{THD}_I^2}\) requires
(a) nothing (b) sinusoidal voltage (c) sinusoidal current (d) a resistive load
Show answer
(b). With distorted voltage it gave 0.698 against a true 0.645 — Problem 15.Q11. Triplen harmonics in a balanced three-phase system are
(a) positive sequence (b) negative sequence (c) zero sequence (d) absent
Show answer
(c) — in phase in all three lines, so \(I_N = 3I_{\text{triplen}}\) — Problem 17.Q12. Delaying a periodic waveform by \(t_0\)
(a) changes \(|c_n|\) (b) changes only the phases (c) changes the THD (d) changes the RMS
Show answer
(b), by \(-n\omega_0t_0\) — every magnitude-based quantity is unchanged — Problem 18.
Key Formulas
| Quantity | Relation | Notes |
|---|---|---|
| Trigonometric series | \(f = \dfrac{a_0}{2}+\sum\left[a_n\cos n\omega_0t+b_n\sin n\omega_0t\right]\) | \(\omega_0 = 2\pi/T\) |
| Coefficients | \(a_n = \dfrac{2}{T}\displaystyle\int_0^Tf\cos n\omega_0t\,dt\) | Similarly \(b_n\) with sine |
| Exponential series | \(f = \sum c_ne^{jn\omega_0t}\), \(c_n = \dfrac1T\displaystyle\int_0^Tfe^{-jn\omega_0t}dt\) | \(c_{-n} = c_n^*\) for real \(f\) |
| Conversion | \(c_n = \tfrac12\left(a_n-jb_n\right)\) | \(|c_n| = \tfrac12\sqrt{a_n^2+b_n^2}\) |
| Square wave | \(b_n = \dfrac{4A}{n\pi}\), odd \(n\) | THD 48.34% |
| Sawtooth | \(b_n = \dfrac{2A}{n\pi}(-1)^{n+1}\) | All harmonics |
| Triangle | \(b_n = \dfrac{8A}{n^2\pi^2}\), odd \(n\) | THD 12.1% |
| Half-wave rectified | DC \(= A/\pi\); \(b_1 = A/2\); \(a_n = \dfrac{-2A}{\pi(n^2-1)}\) | Even harmonics |
| Full-wave rectified | DC \(= 2A/\pi\); \(a_n = \dfrac{-4A}{\pi(4n^2-1)}\) | Ripple at \(2\omega_0\) |
| Coefficient decay | \(|c_n| \sim 1/n^{k+1}\) | \(k\) = order of first discontinuous derivative |
| Gibbs overshoot | \(\tfrac{2}{\pi}\text{Si}(\pi)-1\) | 8.949% of the jump |
| Harmonic response | \(\mathbf{I}_n = \mathbf{V}_n/\mathbf{Z}(jn\omega_0)\) | Then superpose |
| Parseval | \(F_{\text{rms}} = \sqrt{F_0^2+\sum F_{n,\text{rms}}^2}\) | Squares add, not amplitudes |
| Power | \(P = V_0I_0+\sum V_nI_n\cos\phi_n\) | Only matched orders contribute |
| THD | \(\text{THD} = \dfrac{\sqrt{\sum_{n\ge2}F_n^2}}{F_1} = \sqrt{\left(\dfrac{F_{\text{rms}}}{F_1}\right)^2-1}\) | Can exceed 100% |
| Power factor | \(\text{PF} = P/\left(V_{\text{rms}}I_{\text{rms}}\right)\) | Always valid |
| PF factorised | \(\text{PF} = \dfrac{\cos\phi_1}{\sqrt{1+\text{THD}_I^2}}\) | Only for sinusoidal voltage |
| Apparent power | \(S^2 = P^2+Q^2+D^2\) | \(D\) = distortion power |
| Sequence of harmonic \(n\) | \(120n \bmod 360\) | Triplens are zero sequence |
| Neutral current | \(I_N = 3I_{\text{triplen}}\) | Others cancel |
| Time shift | \(c_n \to c_ne^{-jn\omega_0t_0}\) | Magnitudes unchanged |
| Harmonic resonance | \(h = \sqrt{S_{sc}/Q_c}\) | Detune to \(1/\sqrt{p}\) |
Common Mistakes
Adding harmonic amplitudes instead of their squares. RMS values combine by Parseval, never by simple addition — Problem 12.
Using \(\text{PF} = \cos\phi_1/\sqrt{1+\text{THD}^2}\) with a distorted supply. It gave 0.698 where the true value was 0.645 — Problem 15.
Assuming \(S^2 = P^2+Q^2\). Distortion power makes it a three-term relation — Problem 13.
Expecting a balanced load to need no neutral. Triplens add rather than cancel — Problem 17.
Trusting an average-responding meter on a distorted waveform. It over-reads a square wave by 11% — Problem 12.
Believing more harmonics will remove the Gibbs overshoot. It narrows but never shrinks — Problem 9.
Confusing decay rate with symmetry. Smoothness sets the envelope; symmetry decides which lines exist — Problem 6.
Forgetting that \(a_0/2\), not \(a_0\), is the mean — Problem 2.
Applying the series to a non-periodic signal. That requires the transform of Set 34 — Problem 19.
Sizing a capacitor from the fundamental alone. A resonance can put \(Q\) times a small harmonic across it — Challenge C3.
Set 31 left one case genuinely unsolved: a periodic input transforms to \(F_1(s)/(1-e^{-sT_p})\), whose transcendental denominator has infinitely many zeros and no finite partial-fraction expansion. This set escaped by giving up the closed form. Those zeros sit at \(jk\omega_0\) — the harmonic frequencies — so decomposing the input into exactly those sinusoids, solving each with the phasor method of Set 20, and superposing gives a computable answer. The price is the transient, and for periodic operation in power systems that is a price worth paying.
The harmonic picture then explained a great deal that no time-domain analysis makes visible. A full-wave rectifier needs a fifth of the smoothing capacitance because its ripple sits at \(2\omega_0\) with no fundamental at all. Triplen harmonics are zero sequence, so three currents that ought to cancel instead add — which is why a balanced load can drive 90 A down a neutral and why the delta winding of a Dy transformer traps them. And an inductor that was never intended as a filter cut the distortion from 48.3% to 16.4%, simply because \(|\mathbf{Z}_n|\) rises with \(n\).
The recurring warning concerned shortcuts inherited from sinusoidal operation. The displacement–distortion factorisation of power factor gave 0.698 against a true 0.645 — an 8% error, because it assumes sinusoidal voltage so that only the fundamental carries power. The power triangle \(S^2 = P^2+Q^2\) fails outright and needs a distortion term. And Challenge C3 showed a source harmonic three times smaller than the fundamental producing a current eight times larger, with 283 V across a capacitor fed by a 30 V harmonic — because the circuit happened to resonate at 150 Hz.
Next: Set 34 — The Fourier Transform. Problem 19 has already shown the route: stretch the period to infinity, watch the line spacing \(2\pi/T\) collapse to zero, and rescale the vanishing coefficients by \(T\) to keep them finite. The discrete spectrum becomes a continuous density, and with it comes the result Set 28 has owed since \(t_rf_c = 0.35\) first appeared — the reciprocity between bandwidth and duration, which needs a continuum even to state.