Fourier Series
Also known as: Harmonic decomposition · Trigonometric series · Fourier expansion
Any reasonable periodic function is an infinite weighted sum of sines and cosines (or complex exponentials). The coefficients are the amounts of each pure frequency present — the function's recipe in tones.
A square wave (faint) is approximated by a sum of odd-harmonic sines. The N slider adds harmonics; the partial sum (cyan) sharpens toward the square edges while the Gibbs overshoot lingers. The whole pattern scrolls so the motion is unmistakable.
Equivalent forms
Orthogonality of sines and cosines turns a function into a discrete spectrum — and the same trick diagonalizes the heat, wave, and Schrödinger equations.
Unit systems
Where it holds
Dimensional analysis
Studying heat flow, Fourier claimed in 1807 that any function could be written as a sum of sines — a claim so bold that Lagrange resisted it. His 1822 Théorie analytique de la chaleur vindicated the idea and launched harmonic analysis.
A jagged square wave looks nothing like a smooth sine. Yet stack enough sines and the corners appear out of nowhere — every periodic shape is a chord of pure tones.
Add harmonics one by one and watch a sum of sines snap into a square wave, Gibbs overshoot and all.
- Audio synthesis and timbre analysis
- Solving PDEs by separation of variables
- Signal compression (JPEG's cousin, the DCT)
- Vibration and harmonic-distortion analysis in engineering
- Fourier series need the function to be smooth — they handle discontinuous square and sawtooth waves (with Gibbs overshoot).
- More terms always reduce error everywhere — near a jump the overshoot height stays % no matter how many terms.
- The series equals f at the jump — it converges to the midpoint there.
Limiting cases
What if…
The discrete spectrum becomes continuous and the sum becomes an integral — the Fourier transform.
Even f keeps only cosines; odd f keeps only sines — symmetry halves the work.
Square-wave coefficients
- f:
- odd square wave,
- Odd function → only sine terms
- for odd n: + …)
Value at x = π/2 (N = 3)
- N:
- 3
- Keep , 3:
- More terms push the value toward 1 with Gibbs ripple