Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Every sound is a chord
A piano note isn’t one pure tone. It’s a mix of a main frequency plus quieter “overtones” at 2×, 3×, 4× that frequency. Your ear and a guitar tuner both break sounds into these pure tones. The amazing fact, discovered by Joseph Fourier while studying heat, is that any repeating pattern can be built by adding up pure sine and cosine waves, even a square wave with sharp corners.
How much of each tone a signal contains is its spectrum. Smooth signals need only a few tones. Sharp jumps need infinitely many.
Vibration engineers find a rocket’s dangerous resonance frequencies from its spectrum. Accelerometers on a robot are filtered by removing high-frequency tones. Image compression (JPEG) keeps only the important frequencies. All of it is Fourier.
- 1. One octave above 440 Hz is…
- 2. A square wave is built from…
- 3. Smooth signals need ___ tones than jumpy ones.
Level 1: Beginner
★★☆☆☆ Basic⏱ 15 minSecondary-school mathematics: arithmetic and elementary algebra.The Fourier series
On , the functions are mutually orthogonal in . So a -periodic expands as
The coefficients are inner products, exactly as in A3.5-5. In complex form, with .
| Wave | Coefficients | Decay |
|---|---|---|
| square | , odd only | |
| sawtooth | ||
| triangle | , for odd | |
| faster than any power |
Odd functions have only sines and even functions only cosines.
- 1. b₁ of the ±1 square wave?
- 2. An even function's Fourier series contains only…
- 3. The period of sin 3x is…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 45 minUndergraduate students and practising engineers.Convergence: in L², pointwise and uniform
- In : for every , the partial sums converge in mean square. That’s because the trigonometric system is a complete orthonormal basis (after normalization). Parseval says .
- Pointwise: at a jump, the series converges to the midpoint of the two one-sided limits (Dirichlet).
- Not uniformly near jumps: the partial sums overshoot by about 9% of the jump, at a point that moves closer to the jump as grows. The peak tends to for a jump from −1 to 1. This is the Gibbs phenomenon (Practice Code 4). It’s A3.5-2’s lesson: convergence doesn’t imply uniform convergence.
Smoothness ↔ decay
Integrating by parts times shows that if has continuous periodic derivatives, then . Specifically:
- a jump gives ;
- a kink gives ;
- an analytic function gives .
Conversely, fast decay means smoothness. That’s why spectral methods converge exponentially for smooth problems, while finite differences only reach .
The basis diagonalizes calculus
- Differentiation: , so multiplies coefficient by . Its eigenvalues are unbounded, which is the unboundedness of A3.5-6.
- Convolution: . Filtering is pointwise multiplication of spectra.
- Heat equation: each mode decays like , independently of the others.
- 1. At a jump, the Fourier series converges to…
- 2. Coefficients of a function with a kink decay like…
- 3. In the Fourier basis, convolution becomes…
Level 3: Advanced
★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.Orthogonality, proved
For integers , . Each cosine of a nonzero integer frequency integrates to 0 over a full period, so . For the same identity gives . The cosine and mixed cases work the same way. ∎
Deriving the square-wave coefficients
The function is odd, so . Then . That’s for odd and 0 for even .
Parseval proves Euler
For : and . Parseval sets them equal, so , the Basel problem (Practice Code 3).
Completeness: why there are no missing tones
Completeness of the trigonometric system means that if all Fourier coefficients of a continuous periodic vanish, then . One proof: Fejér’s theorem shows the averages of the partial sums converge uniformly for continuous . That makes trigonometric polynomials dense in , and hence in (a Stone–Weierstrass relative, A3.5-2). Parseval then follows from the general Hilbert-space theory (A3.5-5).
Exercise 3.1: Why does the triangle wave converge uniformly while the square wave doesn’t?
The triangle’s coefficients satisfy . The Weierstrass M-test (A3.5-2) gives uniform convergence. The square wave’s diverges, and its limit is discontinuous, which a uniform limit of continuous functions can’t be.
- 1. ∫₋π^π sin 2x sin 5x dx = ?
- 2. Parseval applied to f = x proves…
- 3. The triangle wave converges uniformly because…
Level 4: Expert
★★★★★ Expert⏱ 45 minResearchers: original papers and open problems.Spectral methods and the FFT
The fast Fourier transform (Cooley and Tukey, 1965) computes all discrete Fourier coefficients in instead of . That made spectral methods practical, and it’s one of the most consequential algorithms of the 20th century. Spectral differentiation multiplies FFT coefficients by , and for smooth periodic problems the error falls exponentially in (Trefethen, 2000). Global weather and turbulence codes have long used spectral transforms (Orszag, 1970).
Fourier thinking in robotics, aerospace and AI
- Sampling and aliasing. Sampling at can only represent frequencies up to (Nyquist–Shannon; Shannon, 1949). Faster tones fold onto false lower ones: a 70 Hz motor vibration sampled at 100 Hz shows up as 30 Hz (Practice Code 5). IMUs and flight controllers apply anti-aliasing low-pass filters before sampling for this reason.
- Structural dynamics. Modal analysis of launch vehicles and satellites finds resonances from measured frequency-response functions. Pogo oscillations in rockets are a coupled-resonance problem studied in the frequency domain.
- Fourier neural operators (Li et al., 2021) parametrize an operator’s kernel by its Fourier coefficients, truncated to low modes. A convolution becomes a cheap per-mode multiplication, and the model transfers across resolutions (A3.4-4, A3.5-6).
- Positional encodings and spectral bias. Transformers’ sinusoidal position encodings (Vaswani et al., 2017) and NeRF’s Fourier features (Tancik et al., 2020) inject high frequencies, because plain MLPs learn low frequencies first (“spectral bias”; Rahaman et al., 2019). This is the same coefficient-decay story.
- Convolutional networks are translation-equivariant linear operators, which Fourier diagonalizes. That’s the mathematical reason CNNs and FFT convolution match.
References
- J. Fourier (1822). Théorie analytique de la chaleur. Paris.
- E. M. Stein, R. Shakarchi (2003). Fourier Analysis: An Introduction. Princeton.
- J. W. Cooley, J. W. Tukey (1965). “An algorithm for the machine calculation of complex Fourier series.” Mathematics of Computation, 19.
- L. N. Trefethen (2000). Spectral Methods in MATLAB. SIAM.
- S. A. Orszag (1970). “Transform method for the calculation of vector-coupled sums: application to the spectral form of the vorticity equation.” Journal of the Atmospheric Sciences, 27.
- C. E. Shannon (1949). “Communication in the presence of noise.” Proceedings of the IRE, 37(1).
- Z. Li et al. (2021). “Fourier neural operator for parametric partial differential equations.” ICLR.
- M. Tancik et al. (2020). “Fourier features let networks learn high frequency functions in low dimensional domains.” NeurIPS.
- N. Rahaman et al. (2019). “On the spectral bias of neural networks.” ICML.
- A. Vaswani et al. (2017). “Attention is all you need.” NeurIPS.