What is it about?
A -periodic function can be written as a Fourier series . Writing each term as gives the amplitude spectrum and the phase spectrum . The square wave is .
- Phasors: each term is a phasor of length turning times as fast as the fundamental; chained together, the height of the tip draws .
- Symmetry: odd functions have sine terms only, even functions cosine terms only; if , all even vanish.
- Jumps vs. kinks: with jumps the amplitudes fall like , with kinks like .
- Gibbs phenomenon: at a jump the partial sums overshoot by about of the jump (square wave: ), however large is. Fejér factors remove the overshoot.
- Parseval: . The fundamental of the square wave carries of the power.
Try it
- Square wave: press “Add a harmonic” several times, then “Play the build-up”.
- Phasors draw a square wave and stacked harmonics.
- Gibbs phenomenon versus Fejér smoothing.
- Clarinet versus flute – compare spectra and listen.
- LED dimmer: change the duty cycle .
Tasks
Task 1: Symmetry
Why does the square wave series contain only sines and the triangle series only cosines? What happens if the square wave is shifted by ?
Show solution
The square wave is odd (), the triangle is even (). Shifted by the square wave becomes even: cosine terms only, same amplitudes. Show
Task 2: Parseval
What share of the power of the square wave is contained in and in ? From which on is it at least ? Load task
Show solution
: ; : ; : ; : – so from on. Show
Task 3: LED dimmer
A pulse train (height , duty cycle ) drives an LED. Find the DC part and the first four amplitudes. Which one is missing?
Show solution
DC part ; : , , and (every fourth harmonic vanishes). Show
Task 4: Full-wave rectifier
Mains at gives after the rectifier. Find the mean and the second harmonic (first overtone, ). At which frequency does the power supply hum?
Show solution
Mean ; only even : at . Show
Ideas for the classroom
- Start with “Play the build-up”, then add the values by hand in the stacked view; with “Values in the picture” off (
info=0) the pictures work as exercises. - Link to acoustics (timbre of clarinet, violin, flute) and electronics (rectifier, pulse-width modulation).
- Common stumbling blocks: the constant term is ; expecting the Gibbs overshoot to vanish; a shift changes only the phases, not the amplitudes.