© 2026 NeckPinch · www.neckpinch.com · All rights reserved.
Course 2Book 2B: Spaces, Functions and ChangeChapter 7
Fourier Series and the First Heat Equation
Fourier’s solution of heat flow on a ring: smoothing, energy decay and the first heat kernel.
Read with Tao, Analysis II, chapter "Fourier series": periodic functions, inner products on periodic functions, trigonometric polynomials, periodic convolutions (where the Fejér kernel appears), and the Fourier and Plancherel theorems. The heat equation is not in Tao; this chapter adds it.
In 1807 Joseph Fourier submitted a memoir to the Paris Academy claiming that the temperature in a solid could be found by writing the initial temperature as a sum of sines and cosines, and letting each one decay at its own rate. The claim that an arbitrary function could be written that way was greeted with scepticism, and making sense of it occupied analysts for a century: it is one of the main reasons the concepts of function, convergence and integral in Books 2A and 2B were made precise at all. Fourier's book, Théorie analytique de la chaleur, appeared in 1822.
This chapter does Fourier's analysis in the setting of periodic functions, and then solves Fourier's problem: heat flow on a ring. Here the heat equation, the equation behind thread H of this guidebook and, eventually, behind Ricci flow, is solved completely and explicitly. Every property of heat flow that later chapters prove with harder tools can be seen here in the formula: high frequencies die fastest, so the solution becomes smooth instantly; an energy decreases; the maximum can only fall; and the solution is an average of the initial data against a kernel. When Hamilton described Ricci flow as a heat equation for the metric (11A.1 The Equation and Its First Solutions), these are the properties he meant.
By the end of this chapter you will be able to:
- compute Fourier coefficients, and use orthonormality of to find best approximations;
- explain why Fourier series of continuous functions need not converge, and prove that their Fejér means do;
- prove Plancherel's identity and use it to sum series such as ;
- solve the heat equation on a ring by Fourier series, and prove instant smoothing, energy decay, the maximum principle and exponential convergence to the mean;
- explain the Gibbs phenomenon, and why positive kernels avoid it.
Seasons underground
Over a year, the temperature at the ground's surface rises and falls roughly like a sine wave. Below the surface, heat moves by conduction, so the temperature at depth obeys the heat equation
where is the soil's thermal diffusivity. If the surface temperature is , with , a solution is
(Exercise 7.11). The temperature wave travels downwards and dies out as it goes. At depth its amplitude is reduced by the factor and it is delayed by the fraction of a year. The damping depth sets the scale.
For a soil diffusivity of m²/s, a typical value for moist soils, m. At a depth of m, the wave is delayed by half a year, so the seasons there are reversed: the warmest time is midwinter. But by then the amplitude is only of the surface swing, so the ground at that depth is close to the annual mean temperature all year round. A cellar a few metres down lags the seasons and swings much less; ground-source heat pumps exploit the same near-constant temperature; and the depth to which permafrost thaws each summer is governed by the same law. For the daily temperature cycle, is times larger and is times smaller, about cm: a day's heat barely gets below the topsoil.
The decisive feature is that each frequency decays at its own rate, faster for higher frequencies: the damping depth is proportional to . On a ring of metal, where heat flows around instead of down, the same principle gives the complete solution of the heat equation. To use it we need to break an arbitrary periodic function into frequencies.
Periodic functions and their coefficients
Work with functions of period : . Equivalently, functions on the circle , the real line with and identified (2A.2 Sets, Functions and Equivalence). Let be the continuous periodic functions with complex values, a complete metric space with the sup metric (2B.5 Uniform Convergence and Arzelà–Ascoli).
For ,
This behaves like the dot product on : it is linear in the first slot, conjugate-symmetric, and unless (by the positivity argument of 2B.1 Metric Spaces). The Cauchy–Schwarz inequality and the triangle inequality for follow exactly as in 2B.1 Metric Spaces. So is a metric, the root-mean-square distance.
The building blocks are the characters , , which go times around the unit circle as runs over .
if and if .
Proof. . For the integrand is . For it has antiderivative , which takes the same value at and .
A trigonometric polynomial is a finite sum . Its coefficients can be recovered by taking inner products: . For a general this suggests a definition.
The Fourier coefficients of are . Its Fourier series is , and the partial sums are .
For real , , and the terms pair up into real cosines and sines: .
The partial sum is the best approximation to by trigonometric polynomials of degree at most , in the root-mean-square sense. This is Pythagoras: is orthogonal to every with , so for any trigonometric polynomial of degree ,
Taking gives Bessel's inequality: for every . In particular as .
Does the Fourier series converge?
The natural hope is that . Write the partial sum as an average:
Expressions of this kind are periodic convolutions, , and . If were an approximate identity in the sense of 2B.5 Uniform Convergence and Arzelà–Ascoli, non-negative with integral and concentrating at , we would have uniformly. It has integral and its peak at grows. But it is not non-negative: it oscillates, with side lobes that decay slowly (Figure 7.1). Its total absolute mass grows like , and that is enough to wreck convergence: there are continuous functions whose Fourier series diverge at a point (du Bois-Reymond, 1873).
The cure is to average the partial sums.
The Fejér mean is , where
The last formula (Exercise 7.10) is the important one: . Averaging has cancelled the oscillation.
For every , uniformly as .
Proof. is an approximate identity. Mass : integrate the middle expression term by term; only survives. Non-negative: the last expression. Concentration: for , , so uniformly there. Now repeat the proof of the Weierstrass theorem (2B.5 Uniform Convergence and Arzelà–Ascoli): with and chosen from the uniform continuity of so that when ,
which is less than for large , for every .
Three consequences follow, and they are what make Fourier series usable.
For :
- Trigonometric polynomials are dense in in the sup metric.
- If for every , then . So is determined by its Fourier coefficients.
- (Plancherel) , and , and more generally .
- If , then uniformly.
Proof. (1) Each is a trigonometric polynomial. (2) Then every , and . (3) Given , pick a trigonometric polynomial of some degree with , so . For , is the best approximation of degree , so . Then . The formula for follows by polarisation. (4) By the M-test the series converges uniformly to some continuous ; its coefficients are those of (integrate term by term, 2B.5 Uniform Convergence and Arzelà–Ascoli), so by (2).
How fast decays measures how smooth is. Integrating by parts (2A.11 The Riemann Integral, with no boundary terms because is periodic), . So if is , then , which is summable, and the Fourier series converges uniformly. Smoothness of is decay of . That sentence, made quantitative, is the theory of Sobolev spaces (4A.9 Sobolev Spaces).
Fourier's solution of the heat equation on a ring
Now Fourier's problem. A thin ring of metal of circumference has temperature at position and time . Choosing units so the diffusivity is ,
Separate the frequencies. Try . Since , the equation decouples into one ordinary differential equation per frequency:
by the uniqueness in 2B.6 Power Series, Exponentials and Bump Functions. So the candidate solution is
In words: each frequency decays exponentially, at a rate proportional to the square of the frequency. The term, the mean temperature, never decays. Frequency decays like ; frequency like .
Let and define by for , and . Then:
- For , the series and all its term-by-term derivatives in and converge uniformly on for each , so is infinitely differentiable for and satisfies .
- uniformly as .
- is the only solution of the problem that is continuous on and smooth for .
Proof. (1) by Bessel. A term differentiated times in and times in is bounded by on , and these bounds are summable over , because the Gaussian factor beats every power. By the M-test and 2B.5 Uniform Convergence and Arzelà–Ascoli, all derivatives may be taken term by term, and each term solves the equation.
(2) Write with the periodic heat kernel
has integral (only survives integration). It is positive: this follows from the identity , which says that the ring's heat kernel is the Gaussian heat kernel of the line wrapped around the circle. (The identity is an instance of the Poisson summation formula, proved in 4A.5 The Fourier Transform; take it on trust here, or see Exercise 7.13 for a proof of positivity that avoids it.) From the Gaussian form, concentrates at as . So is an approximate identity, and the proof of Fejér's theorem gives uniformly.
(3) If is another solution, solves the heat equation with . Its energy satisfies (by the computation in the next subsection) and as , so .
What the formula shows
Each property below is visible in , and each is a theme that later books prove for much harder equations, where no formula is available.
1. Instant smoothing. However rough is (here, merely continuous; in Course 3, merely square-integrable), is infinitely differentiable for every , because crushes the high frequencies. The heat equation cannot be run backwards in general: running it backwards would multiply by , and only very special survive that (Exercise 7.12). Smoothing is the reason Ricci flow is useful at all: it improves a metric, and the improvement is quantified by Shi's derivative estimates (11A.3 Short-Time Existence and Uniqueness), the analogue of the bound in part 1 of the proof.
2. Energy decreases. By Plancherel, , which visibly decreases in . Directly, as in the rehearsal of 2A.11 The Riemann Integral, integrating by parts with no boundary terms,
Likewise the Dirichlet energy decreases. In fact the heat equation is the direction of steepest descent of the Dirichlet energy, the gradient flow of (Exercise 7.15). This is thread V's first appearance: Ricci flow is, after Perelman's modification, the gradient flow of his -functional (12A.2 Ricci Flow as a Gradient Flow).
3. Convergence to equilibrium, at a rate set by the first frequency. Let be the mean. Then
The temperature evens out exponentially fast, at the rate of the lowest non-zero frequency. This spectral gap is equivalent to an inequality of Poincaré type (Exercise 7.14), and it reappears as the first eigenvalue of the Laplacian on a manifold (9B.7 The Heat Equation on a Manifold).
4. The maximum principle. Since with and , each value is an average of values of . So : the heat equation creates no new maxima or minima, and in fact is non-increasing in (apply the same argument starting from any time ). For the heat equation on a ring this follows from the positivity of a kernel; in 6A.4 Maximum Principles it is proved for general heat equations by the second-derivative test (2A.10 Derivatives, 2B.8 Calculus in Several Variables), and in 11A.4 Maximum Principles under Ricci Flow Hamilton extends it to tensors.
The kernel is the first appearance of the heat kernel, the fundamental solution of the heat equation. On the line it is the Gaussian (6A.3 The Heat Equation on ℝⁿ); on a Riemannian manifold it is defined abstractly and estimated geometrically (9B.7 The Heat Equation on a Manifold). As a function of (at ), is a theta function, an object of number theory and complex analysis (Book 5A). And in Perelman's work the conjugate heat equation, run backwards in time, carries a heat-kernel-like density whose behaviour encodes the geometry (12A.2 Ricci Flow as a Gradient Flow, 12A.6 Pseudolocality). The factor there is the same normalisation as the here.
The Gibbs phenomenon
Fourier series of functions with jumps converge badly near the jumps. For the square wave ( on , on ), the partial sums overshoot the jump by a fixed amount that does not shrink as grows; the overshoot just moves closer to the jump (Figure 7.3). In the limit, the partial sums rise to , overshooting the value by about of the jump of size .
The overshoot is caused by the negative lobes of the Dirichlet kernel. The Fejér means, which average against a positive kernel, never overshoot: by the argument of property 4, they stay between and . Positivity of the averaging kernel is what makes both the maximum principle and the absence of overshoot work.
A JPEG image is compressed block by block. Each block of pixels is transformed by the discrete cosine transform, a finite cousin of the Fourier series that writes the block as a combination of cosine patterns of increasing frequency. The coefficients are then rounded, coarsely for the high frequencies and finely for the low ones, and many high-frequency coefficients become zero and cost almost nothing to store. This works because, as the decay of for smooth suggests, most of the content of a typical photograph is in the low frequencies. Where an image has a sharp edge, the discarded high frequencies were needed, and the result is the ringing near edges in a heavily compressed JPEG: a two-dimensional relative of the Gibbs phenomenon.
A sustained musical note is (nearly) periodic, so it is a Fourier series: a fundamental frequency, which sets the pitch, plus harmonics at integer multiples of it. Two instruments playing the same pitch have the same fundamental and differ in the sizes of the coefficients for . That difference is what we hear as timbre. A flute's tone is close to a pure sine wave, with weak harmonics; a bowed violin string, which is dragged and released in a stick–slip motion, produces a waveform close to a sawtooth, whose harmonics decay only like (Exercise 7.8), and it sounds correspondingly brighter. Smoothness of the waveform is decay of the coefficients, heard.
History
Fourier's 1807 memoir was judged by Lagrange, Laplace, Monge and Lacroix; its prize-winning revision (1811) and the 1822 book established the method, and Chapter IV of the book treats the movement of heat in a ring. Peter Gustav Lejeune Dirichlet gave the first rigorous convergence theorem in 1829, for piecewise monotone functions. Paul du Bois-Reymond constructed a continuous function whose Fourier series diverges at a point in 1873. In 1900, aged twenty, Lipót Fejér proved that the Cesàro means of the Fourier series of every continuous function converge uniformly. The overshoot at jumps was described by Henry Wilbraham in 1848 and again by J. Willard Gibbs in 1899, whose name it carries. The questions Fourier raised, what a function is and in what sense a series converges, led to Riemann's integral (1854), to Cantor's set theory (which began with sets of uniqueness for trigonometric series), and to Lebesgue's integral (1902), the subject of Course 3.
Periodic functions have Fourier coefficients with respect to the orthonormal characters . Partial sums are best approximations, but may fail to converge for continuous , because the Dirichlet kernel is not positive. Fejér means average against a positive kernel and converge uniformly, which gives density of trigonometric polynomials, uniqueness and Plancherel's identity. Smoothness of is decay of . The heat equation on a ring is solved by letting each coefficient decay like : the solution is smooth at once, its energy decreases, it converges exponentially to the mean, and it obeys the maximum principle because it is an average against the positive heat kernel. 2B.8 Calculus in Several Variables turns to functions of several variables, where the Laplacian becomes the trace of the Hessian.
Exercises
(a) For the square wave on and on , show that for odd and for even , so "" . (b) For the sawtooth on , show for . (These functions are not continuous, but the integrals defining still make sense.)
Apply Plancherel's identity to the sawtooth of Exercise 7.8 (it holds for piecewise continuous functions too, by approximating them in by continuous ones), and deduce .
Solution
, and . Equate: .
With , show that , and that . Deduce .
(a) Verify that solves when . (Write .) (b) With m²/s, compute for the annual and the daily cycle. (c) At what depth is the annual swing reduced to of its surface value, and how far behind the surface is it there?
Solution
(a) With : and , so exactly when . Take real parts. (b) Annual: , m. Daily: m. (c) at m, with a lag of of a year, about months.
Suppose solves the heat equation on the ring for , continuously, with . Show that for some . Deduce that if is merely continuous (for example, ), no such backward solution exists.
Solution
The coefficients of satisfy , so , and . A function with () is continuous by the M-test, but is not .
Let be continuous and periodic, and . Show that for all , by considering : at a point where the minimum is attained, (2A.10 Derivatives), so can't be decreasing there; make this rigorous with (or ) as in Hamilton's trick (2A.10 Derivatives). Deduce by taking to be a narrow bump.
Hint
Suppose first becomes at a time and point . There and , but . For the last step, , and if a bump concentrated near makes this negative at .
(a) For periodic with mean , prove Wirtinger's inequality , using Plancherel and . When is it an equality? (b) Use it to prove the decay estimate of property 3 without Fourier series: if for a solution of the heat equation, show , and conclude (compare 2A.10 Derivatives's comparison argument). This route, "an energy identity plus a functional inequality gives exponential decay", is the one that survives on manifolds and for nonlinear equations, where Fourier series don't exist. Perelman's entropy arguments use a log-Sobolev inequality in exactly this role (6A.10 Entropy, Information and Diffusion, 12A.3 The 𝓦-Entropy).
Solution
(a) . Equality iff for : . (b) The mean is constant (2A.11 The Riemann Integral), so . Then .
For smooth periodic and , let . Show that . So, measuring changes by the inner product , the direction in which decreases fastest is (normalised), and the heat equation moves in that direction. This is the first instance of the variational thread V; it is developed in 6A.9 Calculus of Variations and Gradient Flows and reaches Ricci flow in 12A.2 Ricci Flow as a Gradient Flow.
© 2026 NeckPinch (www.neckpinch.com). All content in the guidebook (text, mathematics, figures and exercises) is protected by copyright. All rights reserved. No part may be copied, republished or redistributed without written permission.