Fourier series
Each is an independent harmonic whose coefficients set magnitude and phase.
Fourier series · rotating vectors
Each Fourier term is a rotating vector. Connect them head to tail and the final tip traces a curve; add more terms and a wobbly approximation locks onto the target wave.
Physics tutorial
BackgroundUnder broad conditions, a periodic signal can be represented as a sum of sines and cosines at integer multiples of a base frequency. Epicycles show the same decomposition in the complex plane.
Why it mattersA spectrum turns sound, images, vibration, and communication from shape problems into questions about how much of each frequency is present.
Start with the essentials
Each is an independent harmonic whose coefficients set magnitude and phase.
A square wave uses odd harmonics with amplitudes falling as .
Typical misconceptionA sufficiently large N makes convergence smooth everywhere.
Better mental modelGibbs overshoot becomes narrower near a jump, but its relative height does not simply vanish.
Typical misconceptionA faster circle must also be larger.
Better mental modelHarmonic number sets rotation rate; the Fourier coefficient sets radius.
Choose Square and set N to 1.
What to observe: The output is only a smooth sine wave.Increase N slowly.
What to observe: Flat tops and steep edges emerge as small circles add detail.Switch among square, sawtooth, and triangle waves.
What to observe: Smoother waveforms lose high-frequency content faster.