Building a square wave from sines
Add enough smooth, rounded waves and you can make something with perfectly sharp corners.
What the symbols mean
- smooth waves at odd multiples of the base pitch
- each one is weaker by this factor
Why it works — the picture
Start with sin t, a gentle hill. Add one third of sin 3t and the hill squares off a little; add one fifth of sin 5t and the corners sharpen. Each new wave pushes the middle flatter and the edges steeper. In the limit the sum is a wave that flips between +1 and -1. Near each jump the partial sums always overshoot by about 9 percent: the Gibbs ringing.
Try it yourself
- Use the Fourier circles page and look at how many circles you need for a square.
- Predict what the next term would be (sin 9t over 9).
- Why does a flute sound softer than a trumpet if the loudness is similar?
Where it’s used in real life
Sound compression (MP3), JPEG, radio and any signal analysis start with splitting into sine waves.
The story behind it
Joseph Fourier introduced the idea in his heat-flow work around 1807.
Related
- Spinning circles (Fourier series) (interactive)
- Beats: two waves, one slow pulse
- Mix & Hear (waves and sound) (interactive)