Watch the magic of rotating circles approximating a square wave
The Fourier series represents periodic functions as a sum of sine and cosine waves. This visualization shows how rotating circles (epicycles) can approximate a square wave.
Each rotating circle corresponds to a term in the series. As more terms are added, the approximation becomes more accurate.