A10 · Lesson 2 · Fourier coefficients
Measuring how much of each sinusoid a signal contains
Lesson 1 took the square wave's recipe on trust: odd harmonics, amplitudes . How would you find the recipe for a signal you've never seen? Multiply it by a test sinusoid and average over one period. If the signal contains that sinusoid, the product leans positive and the average is big; if not, the positive and negative parts cancel to exactly zero. That multiply-and-average step, a correlation, is how every spectrum analyzer and every radio receiver picks out one frequency from many.
Play
- The square wave (period 1 s) is multiplied by a test sinusoid at harmonic ; the shaded area is their product over one period. The readout is the Fourier coefficient: twice the product's average.
- Try . Which harmonics give zero, and how can you see it in the shading?
- Delay the square wave with . Switch the test from sine () to cosine (). Where does the harmonic go?
Predict
The square wave is multiplied by , its second harmonic. What is the average of the product over one period?
Zero. In each half of the square wave, the test sine goes through one full cycle, half positive and half negative, so the product's area cancels exactly. A symmetric square wave has no even harmonics, and this is the reason: they're orthogonal to it.
Name it
Fourier coefficients
Orthogonality. Over one period , the average of the product of two harmonics is zero unless they're the same frequency and the same type:
and the same for cosines, while every sine is orthogonal to every cosine. So when you multiply by and average, every term vanishes except . That gives the coefficients:
The amplitude of the th harmonic is , however the signal is shifted in time. Shifting it just moves the harmonic between its sine and cosine parts, which is what the slider shows.
The square wave. For on the first half period and on the second, : that's for odd and 0 for even , the recipe from lesson 1.
Symmetry shortcuts. If is even (), all the are zero; if it's odd (), all the are zero.
The complex form. Using packs each pair into one complex number:
For a real signal, is the conjugate of , and : each sinusoid splits into two counter-rotating phasors (A3), half the amplitude each.
Power adds up by harmonic (Parseval's theorem). The average power of a signal, its mean square, is . For the ±1 square wave, the mean square is 1, and the fundamental alone carries of it.
Worked example
Find the Fourier coefficients of the sawtooth for , repeating.
Show the solution
- The DC term. The sawtooth's average is 0, so .
- The cosine terms. The repeating sawtooth is odd about (just before 0 it's near , just after, near ), so every is zero too.
- The integral for the sines. The integrates to zero over a period, and
- The sine terms.
- The sizes. Every harmonic is present, falling as : 0.637, 0.318, 0.212 and so on.
Answer and every are zero, and , so the harmonics have sizes 0.637, 0.318, 0.212 and so on.
Worked example
What fraction of the sawtooth's power is in its fundamental?
Show the solution
- The total power. The sawtooth sweeps evenly from to , so its mean square is .
- The fundamental's power.
- The fraction.
- Compare with a square wave. A square wave puts 81% in its fundamental. The sawtooth spreads more into its harmonics because it has even ones too.
Answer 61% of the sawtooth's power is in its fundamental.
Worked example
A half-wave rectifier passes the positive halves of a 10 V sine. What are its DC level, fundamental and 2nd harmonic?
Show the solution
- The DC level. For a half-wave rectified sine of peak V:
- The fundamental. Its amplitude is
- The 2nd harmonic. The even harmonics have amplitudes , so for : The odd harmonics above the first are zero.
- What the supply's filter faces. A power supply's filter has to suppress that 2.12 V component at twice the line frequency, along with the fundamental.
Answer the DC level is 3.18 V, the fundamental 5 V and the 2nd harmonic 2.12 V.
Check
A pulse train is 5 V for a fraction 0.1 of each period and 0 V the rest of the time. What is its DC coefficient ?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
Check
A periodic signal is .
(a)
What is ?
(b)
What is ?
(c)
What is ?
Check
A harmonic has = −6 and = 1. What is its amplitude?
Check
A pulse train of height 4 and duty cycle 0.1 is centered on , so it's even. Its fundamental's cosine coefficient is . What is ?
Check
What percentage of a ±1 square wave's power is in its 3th harmonic?
Check
A half-wave rectifier passes the positive halves of a sine of peak 12 V.
(a)
What is the DC level?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
(b)
What is the 2nd harmonic's amplitude?
Check
Find the average of the sawtooth over .
Step 1
What is ?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What is the average, ?
Explain why
Why does multiplying a signal by and averaging pick out just the th sine coefficient?
Write the signal as its sum of harmonics. Multiplying by multiplies every term, and averaging over a period then kills every product of two different harmonics, and every sine-times-cosine product, because over a full period they're positive and negative by equal amounts. The only term that survives is , which averages to . So twice the average is exactly .
Practice
Keep practicing
9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.