Decompose any signal into pure frequencies. Solve the heat, wave, and Laplace equations with separation of variables.
A violin and a flute can play the same note — the same pitch — yet they sound completely different. Why? Because each instrument produces a different mix of harmonics: pure sine waves at integer multiples of the fundamental frequency. Your ear hears the blend. Fourier analysis is the mathematics of pulling those harmonics apart.
Joseph Fourier made a stunning claim in 1807: any periodic function, no matter how jagged or discontinuous, can be written as a sum of sines and cosines. Mathematicians were skeptical. It took over a century to make his ideas rigorous. But the claim turned out to be essentially correct, and it revolutionized mathematics, physics, and engineering.
This idea connects directly to partial differential equations. The heat equation, wave equation, and Laplace equation all become solvable once we express initial conditions as Fourier series. Separation of variables + Fourier series = a universal PDE-solving machine.
Given a periodic function f(x) with period 2L, its Fourier series is:
The coefficients are found by exploiting orthogonality. Sines and cosines of different frequencies are orthogonal over a full period — their inner product (integral of the product) is zero:
This orthogonality lets us isolate each coefficient by multiplying both sides by the corresponding basis function and integrating:
Example: The square wave f(x) = 1 for 0 < x < π, f(x) = −1 for −π < x < 0, with period 2π. All the an are zero (the function is odd), and bn = 2/(nπ) for odd n, zero for even n. So:
Orange: target function. Teal: Fourier partial sum with N terms. Add more terms and watch the approximation improve. Choose different target functions.
Does the Fourier series actually converge to f(x)? The answer is surprisingly subtle.
Pointwise convergence (Dirichlet conditions): If f(x) is piecewise smooth (finitely many jumps, bounded derivative between jumps), the Fourier series converges to f(x) at every point where f is continuous. At a jump discontinuity, it converges to the average of the left and right limits: [f(x+) + f(x−)]/2.
Mean-square convergence: Even stronger: the partial sums minimize the integrated squared error. Parseval's theorem says the total "energy" is preserved:
This says the energy in the time domain equals the energy in the frequency domain. It is the mathematical foundation of signal processing.
If f(x) is even (f(−x) = f(x)), all the bn vanish and the Fourier series is a pure cosine series:
If f(x) is odd (f(−x) = −f(x)), all the an vanish and we get a pure sine series:
Example: f(x) = x on [0, π]. The sine series is bn = 2(−1)n+1/n, giving x = 2[sin(x) − sin(2x)/2 + sin(3x)/3 − ...]. The cosine series has a0 = π and an = −4/(πn2) for odd n.
Sturm-Liouville problems generalize Fourier series. Instead of sines and cosines, the eigenfunctions of a Sturm-Liouville equation form a complete orthogonal set. Any "nice" function can be expanded in these eigenfunctions, with coefficients found by the same orthogonality trick.
Fourier series handle periodic functions. But what about a single pulse, a transient signal, a function that never repeats? The Fourier transform extends Fourier analysis to non-periodic functions by letting the period go to infinity.
F(ω) is the frequency spectrum of f(t). It tells you the amplitude and phase of each frequency ω present in the signal. The first integral decomposes; the second reconstructs.
Key properties that make the transform powerful:
| Property | Time domain | Frequency domain |
|---|---|---|
| Linearity | af + bg | aF + bG |
| Time shift | f(t − t0) | e−iωt0 F(ω) |
| Freq. shift | eiω0t f(t) | F(ω − ω0) |
| Convolution | f * g | F · G |
| Derivative | f'(t) | iω F(ω) |
The convolution theorem is perhaps the most important: convolution in the time domain becomes multiplication in the frequency domain. This is why filtering, blurring, and signal processing are all done in the frequency domain — multiplication is much faster than convolution.
The Discrete Fourier Transform (DFT) and the Fast Fourier Transform (FFT) are the computational versions, turning N samples into N frequency coefficients in O(N log N) time. The FFT is one of the most important algorithms ever invented.
A metal bar is heated unevenly and then left alone. How does the temperature u(x, t) evolve over time? The governing equation is the heat equation (or diffusion equation):
Here c2 is the thermal diffusivity (how fast heat spreads). The equation says: the rate of temperature change at a point is proportional to the concavity of the temperature profile there. Hot spots surrounded by cooler regions lose heat; cool spots surrounded by warmer regions gain heat.
With boundary conditions u(0, t) = u(L, t) = 0 (ends held at zero):
• The X equation gives eigenfunctions Xn(x) = sin(nπx/L) with eigenvalues λn = (nπ/L)2.
• The T equation gives Tn(t) = e−c2(nπ/L)2t, which decays exponentially.
• The general solution is a sum: u(x, t) = Σ bn sin(nπx/L) e−c2(nπ/L)2t.
• The coefficients bn come from the Fourier sine series of the initial condition u(x, 0).
Temperature u(x, t) on a bar with ends held at zero. Orange = hot, teal = cold. Watch heat diffuse over time. Choose initial conditions.
A guitar string is plucked and released. How does the displacement u(x, t) evolve? The wave equation is:
Here c is the wave speed (determined by tension and density). Unlike the heat equation (first-order in t), the wave equation is second-order in t, so we need both initial displacement u(x, 0) = f(x) and initial velocity ut(x, 0) = g(x).
Separation of variables with u(0, t) = u(L, t) = 0 gives:
Each term is a standing wave: a fixed spatial pattern sin(nπx/L) oscillating in time. The frequency of the n-th mode is ωn = nπc/L. These are the harmonics of the string.
A string fixed at both ends. Orange curve shows displacement u(x, t). Watch the standing wave patterns. Choose initial shapes.
The Laplace equation describes steady-state phenomena — temperature distributions that no longer change, electrostatic potentials, gravitational fields:
There is no time derivative. The solution u(x, y) is determined entirely by boundary conditions. Functions satisfying Laplace's equation are called harmonic functions, and they have remarkable properties.
Mean value property: The value of a harmonic function at any point equals its average over any circle centered at that point. Harmonic functions are the ultimate "smooth averagers."
Solving on a rectangle: On a rectangle 0 ≤ x ≤ a, 0 ≤ y ≤ b with u specified on the boundary, separation of variables gives u(x, y) = Σ cn sin(nπx/a) sinh(nπy/a). The sinh (hyperbolic sine) handles the y-direction since there is no oscillation in steady state — only exponential-like behavior.
Two interactive demonstrations that bring together the ideas of this lesson.
Draw any periodic function and see its Fourier coefficients computed in real time. The bar chart shows the amplitude of each harmonic.
Top: the waveform (orange). Bottom: its Fourier coefficients (teal bars). Choose a waveform or drag to draw your own.
Watch heat spread on a 2D plate. Click to place heat sources. The temperature evolves according to the 2D heat equation.
Click anywhere to place a heat source. Watch the heat diffuse outward in all directions. Orange = hot, dark = cold.
| This lesson | Where it leads |
|---|---|
| Fourier series | Signal processing, audio/image compression (JPEG, MP3) |
| Convergence & Gibbs | Sampling theory (Nyquist), windowing in DSP |
| Fourier transform | Spectral analysis, quantum mechanics (ψ ↔ φ), MRI |
| Heat equation | Diffusion processes, Brownian motion, financial math (Black-Scholes) |
| Wave equation | Acoustics, electromagnetics, seismology |
| Laplace equation | Electrostatics, fluid flow, complex analysis (Ch 7) |
| Separation of variables | Quantum mechanics (Schrödinger eq), Bessel functions, spherical harmonics |
"Fourier's theorem is not only one of the most beautiful results of modern analysis, but it may be said to furnish an indispensable instrument in the treatment of nearly every recondite question in modern physics." — Lord Kelvin