Deep Dive / /6 min
Every Wave Is a Sum of Circles
Contents
Pin a pen to the rim of a spinning wheel, then mount the axle of that wheel on the rim of a second, larger, slower wheel. Mount that one on a third. As the whole machine turns, the pen traces a curve. With the right radii and speeds, a clockwork of nested wheels — epicycles — can draw a square, a portrait, the silhouette of a treble clef. The astonishing claim of Fourier analysis is that this is not a parlor trick but a theorem: every reasonable periodic signal is the trace of such a machine, and there is an exact recipe for the radius and starting angle of each wheel.
This essay unpacks that claim. The companion Plate VII — Fourier Series animates the wheels directly — watch the rotating vectors stack tip-to-tail and sweep out a square wave — and what follows is the mathematics of why it works.
A periodic function as a tower of wheels
Fix a period and a base (or fundamental) angular frequency . A single wheel of radius spinning at frequency , started at angle , contributes a sinusoid to whatever the pen is doing along one axis. Allowing — a stationary offset wheel, the fundamental, then harmonics spinning at integer multiples — the Fourier claim is that a periodic can be written
Each term is one wheel resolved into its horizontal and vertical parts.In complex form the bookkeeping collapses: , where is literally a vector of length rotating in the plane. The epicycle picture is the complex series read out loud. The only freedoms are the radii. So the entire content of the theorem is a procedure for reading off and from .
The coefficients are projections
The recipe is an inner product, and the reason it works is orthogonality. Think of functions on one period as vectors, with the inner product
The miracle is that the sinusoids are mutually orthogonal under this product: integrate over a full period and you get zero unless , in which case you get . The cross terms between a sine and a cosine vanish too. They form an orthogonal basis, the function-space analogue of perpendicular coordinate axes.
Once you have an orthogonal basis, extracting a component is the same operation as in ordinary geometry: to find how much of points along , project onto it. This is exactly the move behind the dot product and behind every eigen-decomposition — express a vector in a basis and read off coordinates one at a time. Concretely,
Each integral asks a single question: how much does resonate with this particular pure tone? Multiply by the test sinusoid and average. If they rise and fall together, the integral is large; if they are out of step, the contributions cancel and the integral is small. The coefficient is the strength of that resonance — the radius of that wheel.
Building a square wave from odd harmonics
Take the canonical hard case: a square wave that sits at for half the period and for the other half. It is odd, so every cosine coefficient vanishes by symmetry; only sines survive. Computing the integral for , the even harmonics cancel and the odd ones come out as . The series is
Read this as a stack of wheels. The fundamental, radius , does most of the work. The third harmonic, spinning three times as fast at a third the radius, sharpens the corners. The fifth sharpens them further. Each odd harmonic flattens the plateaus and steepens the edges a little more, and the decay means the corrections shrink — but only slowly. A flat top with vertical sides, built entirely out of round, smooth sines.
Gibbs: the overshoot that never goes away
Truncate the square-wave series at a finite number of terms and something stubborn appears at each jump: a little spike that overshoots the true value, followed by a ringing that decays into the flat region. Add more terms and the spike gets narrower — it crowds closer to the discontinuity — but it does not get shorter. The overshoot stabilizes at about 9% of the jump height and stays there no matter how many harmonics you keep.
This is the Gibbs phenomenon, and it is not a numerical accident. A finite sum of continuous sinusoids can squeeze the transition region as tight as you like but cannot reproduce a true vertical jump; the best it can do near a discontinuity leaves a fixed-height ear.The series still converges to in the mean-square (energy) sense, and at the jump it converges to the midpoint of the two one-sided values — convergence in energy coexisting with a pointwise spike that refuses to die. It is the price of demanding sharp edges from smooth building blocks, and it has practical teeth: ringing artifacts near sharp transitions in audio, in JPEG blocks, in any system that band-limits a signal with hard edges.
Why split a signal into circles at all
The deep payoff is a change of address. A signal can be described in the time domain — its value at each instant — or in the frequency domain — the list of coefficients . These hold the same information, but operations that are awkward in one are trivial in the other. Convolution, the smearing operation at the heart of filtering and of the convolutional networks in modern vision, becomes plain multiplication in the frequency domain. To remove hiss from a recording, transform to frequencies, zero out the offending band, transform back. Differentiation becomes multiplication by . Solving certain differential equations turns into algebra.
This is why the frequency view runs through nearly all of signal processing: compression keeps the large coefficients and discards the small ones (MP3, JPEG), communications assign different users different frequency bands, and physics reads spectral lines straight off the coefficients of light. The one engine that made all of this computationally routine is the Fast Fourier Transform: a way to compute the discrete coefficients of samples in operations instead of the naive , by recursively reusing the symmetries of the rotating roots of unity. A square wave is a sum of circles; the FFT is what lets a computer find those circles fast enough to matter.
Further reading
- The Library — annotated primary sources across the atlas.
- Notation — conventions for inner products, transforms, and indices used here.
- E. M. Stein and R. Shakarchi, Fourier Analysis: An Introduction (Princeton, 2003) — a rigorous, readable development of series, convergence, and the Gibbs phenomenon.