The Fourier Series
Complex exponentials as eigenfunctions, the synthesis and analysis equations, orthogonality, and the coefficients of square, sawtooth and triangle waves
1872 — a machine that predicts the sea
The tide at a port is not one rhythm but several. The Moon pulls one bulge of water round the Earth every 12.42 hours, the Sun another every 12 hours, and the tilts and ellipses of their orbits add rhythms of about 12.66, 23.93 and 25.82 hours. Each rhythm is a sinusoid with its own amplitude and phase at that port; the tide is their sum. Computing that sum by hand, hour by hour for a year of tide tables, was laborious and full of errors.
In 1872 William Thomson — later Lord Kelvin — conceived a machine to do it. A wire runs over a row of pulleys; each pulley is driven up and down by a crank turning at the rate of one tidal rhythm, with its amplitude and phase set for the port; the end of the wire adds all the motions and a pen draws the predicted tide. The first machine, built in 1872–73, summed ten components; larger ones followed in 1876 and 1879, and Thomson's symbols for the tidal constituents are still in use (Tide-predicting machine).
It was a sum of sinusoids in brass. This lesson is about writing signals that way — and about why linear systems love it.
Unit 2 ended with a question: is there an input that an LTI system passes through unchanged in shape? There is, and Lesson 1-2 introduced it. Feed an LTI system the complex exponential and the output is the same complex exponential, multiplied by a complex number that depends on :
In the language of linear algebra, complex exponentials are the eigenfunctions of LTI systems, and — the frequency response — holds the eigenvalues. The magnitude scales the sinusoid, the angle shifts its phase. No other kind of signal survives every LTI system unchanged in shape.
Derivation
Why exponentials pass through unchanged
Put into the convolution integral, using the commuted form :
The factor does not depend on , so it comes out of the integral:
The integral is just a number for each (it exists when is absolutely integrable — a stable system). The same argument in discrete time gives with .
💡The payoff
If an input can be written as a sum of complex exponentials,
then by linearity the output is
Each term is simply multiplied by the frequency response at its own frequency. Convolution — an integral for every instant — becomes one multiplication per frequency. Lesson 3-3 cashes this in.
Which signals can be written that way? Fourier's claim, made for heat flow in 1807, was: every periodic signal of practical interest. A signal with period can only contain frequencies whose cycles fit a whole number of times into — the harmonics of the fundamental . So a periodic signal is a sum of harmonically related complex exponentials, a Fourier series.
The synthesis equation (left) builds the signal from its Fourier coefficients; the analysis equation (right) finds them. The integral runs over any one period.
Derivation
The analysis equation from orthogonality
Two harmonics are orthogonal over a period: for integers and ,
because for the integrand turns round the unit circle a whole number of times and its integral cancels. Now multiply the synthesis equation by and integrate over one period:
Every term but vanishes. Dividing by gives the analysis equation. Each coefficient measures how much the signal looks like one harmonic — a projection, exactly as a vector's components are found by dot products with orthogonal unit vectors.
📐The square wave
Let for and for . Its average is zero, so . For :
Pairing with turns each pair into a sine:
Only odd harmonics, falling as . A square wave at 1 kHz is a 1 kHz sine of amplitude 1.27, plus 3 kHz at a third of that, 5 kHz at a fifth, and so on.
💡Real signals and the trigonometric form
For a real signal the coefficients come in conjugate pairs, , and the pairs combine into real sinusoids:
is the average (the DC value). is the amplitude of the th harmonic and its phase. Even signals have real coefficients (cosines only), odd signals imaginary ones (sines only) — the square wave above is odd.
📐Smoothness decides how fast the coefficients fall
- The square wave jumps: .
- The sawtooth, which ramps and then jumps, also falls as , but has every harmonic, even and odd.
- The triangle wave has no jumps, only corners: , odd harmonics only — .
- A signal with a continuous first derivative falls as , and so on.
Profound study of nature is the most fertile source of mathematical discoveries.
🕰Heat first, signals later
Fourier presented his memoir on the propagation of heat in solid bodies to the Institut national in Paris on 21 December 1807, and published Théorie analytique de la chaleur in 1822 (Fourier series). The claim that arbitrary functions — even discontinuous ones — could be built from sines was controversial, and making it precise occupied mathematicians for the rest of the century. Engineers took it up because it worked; Lesson 3-2 is about the places where it works only nearly.
⚠Tides are not periodic
The tidal rhythms of 12.42 h and 12 h have no common period — their ratio is not a ratio of small integers, which is Lesson 1-1's condition — so the tide never exactly repeats. It is still a sum of sinusoids, and the tide machine used exactly that. A Fourier series is the special case in which every frequency is a multiple of one fundamental.
💡Where you will use this
Lesson 3-2 asks in what sense the series converges; Lesson 3-3 passes periodic signals through systems harmonic by harmonic. Letting the period grow gives the Fourier transform (Unit 4); sampling the frequency axis gives the DFT (Lesson 6-2). Harmonic content is how power engineers, acousticians and vibration analysts describe periodic signals every day.
📚Further reading
- Oppenheim and Willsky, Signals and Systems, sections 3.1–3.5 — eigenfunctions of LTI systems and the continuous-time Fourier series.
- T. W. Körner, Fourier Analysis (Cambridge University Press, 1988) — the mathematics and the history, including Kelvin's tide machines.
- Tide-predicting machine on Wikipedia.
↓But there is a problem
Ten pulleys predicted the tides because tides are smooth. A square wave is not: its coefficients fall only as , and any finite number of terms leaves something out.
Add more terms and you would expect the error to vanish everywhere. It does not. Near every jump the partial sums overshoot — and the overshoot does not shrink, however many terms you add. In 1898 a machine for summing Fourier series drew it, and it took a famous physicist two letters to Nature to explain it correctly.