Fourier series with rotating circles

Each circle is one sine term. Its radius is the amplitude A, and it spins at angular speed ω = 2πf. Chain the circles tip to tail, trace the end point over time, and the sum of sines draws a wave. Add more arms and the wave converges toward the target shape.

Rotating arms (epicycles)Trace of the tip over time
N3
ω1.2 rad/s
Spectrum: amplitude of each harmonic
012345678910111200.71.4n (harmonic)|Aₙ|
Series
x(t)=4/π·[sin(ωt) + 1/3 · sin(3ωt) + 1/5 · sin(5ωt)]
Intuition

A square wave needs only the odd harmonics (1, 3, 5, …), each one weaker by 1/n. That is why the smaller circles spin faster and faster: they are adding the sharp corners. The ripple near the edges that never quite disappears is the Gibbs phenomenon.

Try this

Set terms to 1 and you see a plain sine. Step up one at a time. Notice how term 2 is skipped for the square and triangle waves, because even harmonics cancel in symmetric shapes.