Book 2B

© 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.

70 min read · Updated Nov 16, 2026

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 this chapter · 7 sections
  1. 7.1Seasons underground
  2. 7.2Periodic functions and their coefficients
  3. 7.2.1Two pictures of the same thing
  4. 7.3Does the Fourier series converge?
  5. 7.3.1Convolution becomes multiplication
  6. 7.4Fourier's solution of the heat equation on a ring
  7. 7.4.1A rod instead of a ring
  8. 7.4.2What the formula shows
  9. 7.4.3Heat against waves
  10. 7.4.4Hearing a shape
  11. 7.4.5The isoperimetric inequality, by Fourier series
  12. 7.5The Gibbs phenomenon
  13. 7.6History
  14. 7.7Exercises
  15. ↗Free resources

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, in complex and in sine–cosine form, and use orthonormality of e2πikxe^{2\pi ikx} 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 ∑1/k2\sum 1/k^2;
  • 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

In the world Model Why a cellar is cool in summer

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 u(z,t)u(z, t) at depth zz obeys the heat equation

∂u∂t=κ ∂2u∂z2,\frac{\partial u}{\partial t} = \kappa\,\frac{\partial^2 u}{\partial z^2},

where κ\kappa is the soil's thermal diffusivity. If the surface temperature is T0+Acos⁡(ωt)T_0 + A\cos(\omega t), with ω=2π/(1 year)\omega = 2\pi/(1 \text{ year}), a solution is

u(z,t)=T0+A e−z/dcos⁡ ⁣(ωt−zd),d=2κωu(z, t) = T_0 + A\,e^{-z/d}\cos\!\Big(\omega t - \frac zd\Big), \qquad d = \sqrt{\frac{2\kappa}{\omega}}

(Exercise 7.15). The temperature wave travels downwards and dies out as it goes. At depth zz its amplitude is reduced by the factor e−z/de^{-z/d} and it is delayed by the fraction z2πd\frac{z}{2\pi d} of a year. The damping depth dd sets the scale.

For a soil diffusivity of κ=5×10−7\kappa = 5 \times 10^{-7} m²/s, a typical value for moist soils, d≈2.2d \approx 2.2 m. At a depth of πd≈7\pi d \approx 7 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 e−π≈4%e^{-\pi} \approx 4\% 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, ω\omega is 365365 times larger and dd is 365≈19\sqrt{365} \approx 19 times smaller, about 1212 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 1/ω1/\sqrt\omega. 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 11: f(x+1)=f(x)f(x + 1) = f(x). Equivalently, functions on the circle R/Z\mathbb{R}/\mathbb{Z}, the real line with xx and x+1x + 1 identified (2A.2 Sets, Functions and Equivalence). Let C(R/Z)C(\mathbb{R}/\mathbb{Z}) be the continuous periodic functions with complex values, a complete metric space with the sup metric (2B.5 Uniform Convergence and Arzelà–Ascoli).

Definition 7.1 Inner product and L2L^2 norm

For f,g∈C(R/Z)f, g \in C(\mathbb{R}/\mathbb{Z}),

⟨f,g⟩=∫01f(x) g(x)‾ dx,∥f∥2=⟨f,f⟩1/2=(∫01∣f∣2)1/2.\langle f, g\rangle = \int_0^1 f(x)\,\overline{g(x)}\,dx, \qquad \|f\|_2 = \langle f, f\rangle^{1/2} = \Big(\int_0^1|f|^2\Big)^{1/2}.

This behaves like the dot product on Cn\mathbb{C}^n: it is linear in the first slot, conjugate-symmetric, and ⟨f,f⟩>0\langle f, f\rangle > 0 unless f=0f = 0 (by the positivity argument of 2B.1 Metric Spaces). The Cauchy–Schwarz inequality ∣⟨f,g⟩∣≤∥f∥2∥g∥2|\langle f, g\rangle| \leq \|f\|_2\|g\|_2 and the triangle inequality for ∥⋅∥2\|\cdot\|_2 follow exactly as in 2B.1 Metric Spaces. So d2(f,g)=∥f−g∥2d_2(f, g) = \|f - g\|_2 is a metric, the root-mean-square distance.

The building blocks are the characters ek(x)=e2πikxe_k(x) = e^{2\pi ikx}, k∈Zk \in \mathbb{Z}, which go ∣k∣|k| times around the unit circle as xx runs over [0,1][0, 1].

Proposition 7.2 Orthonormality

⟨ek,el⟩=1\langle e_k, e_l\rangle = 1 if k=lk = l and 00 if k≠lk \neq l.

Proof. ⟨ek,el⟩=∫01e2πi(k−l)x dx\langle e_k, e_l\rangle = \int_0^1 e^{2\pi i(k - l)x}\,dx. For k=lk = l the integrand is 11. For m=k−l≠0m = k - l \neq 0 it has antiderivative e2πimx2πim\frac{e^{2\pi imx}}{2\pi im}, which takes the same value at 00 and 11.

A trigonometric polynomial is a finite sum ∑∣k∣≤Nckek\sum_{|k| \leq N} c_ke_k. Its coefficients can be recovered by taking inner products: ck=⟨P,ek⟩c_k = \langle P, e_k\rangle. For a general ff this suggests a definition.

Definition 7.3 Fourier coefficients and partial sums

The Fourier coefficients of f∈C(R/Z)f \in C(\mathbb{R}/\mathbb{Z}) are f^(k)=⟨f,ek⟩=∫01f(x)e−2πikx dx\hat f(k) = \langle f, e_k\rangle = \int_0^1 f(x)e^{-2\pi ikx}\,dx. Its Fourier series is ∑k∈Zf^(k)e2πikx\sum_{k \in \mathbb{Z}}\hat f(k)e^{2\pi ikx}, and the partial sums are SNf=∑∣k∣≤Nf^(k)ekS_Nf = \sum_{|k| \leq N}\hat f(k)e_k.

For real ff, f^(−k)=f^(k)‾\hat f(-k) = \overline{\hat f(k)}, and the terms pair up into real cosines and sines: f^(k)ek+f^(−k)e−k=2Re⁡(f^(k)e2πikx)\hat f(k)e_k + \hat f(-k)e_{-k} = 2\operatorname{Re}\big(\hat f(k)e^{2\pi ikx}\big).

In terms of real functions: writing f^(k)=12(ak−ibk)\hat f(k) = \frac12(a_k - ib_k) for k≥1k \geq 1, the Fourier series of a real ff becomes

a02+∑k≥1(akcos⁡2πkx+bksin⁡2πkx),ak=2∫01f(x)cos⁡2πkx dx,bk=2∫01f(x)sin⁡2πkx dx,\frac{a_0}{2} + \sum_{k \geq 1}\big(a_k\cos 2\pi kx + b_k\sin 2\pi kx\big), \qquad a_k = 2\int_0^1 f(x)\cos 2\pi kx\,dx, \quad b_k = 2\int_0^1 f(x)\sin 2\pi kx\,dx,

with a0=2f^(0)a_0 = 2\hat f(0). Books on physics and engineering usually use this form; the complex form is shorter to compute with, and the two carry the same information.

The partial sum SNfS_Nf is the best approximation to ff by trigonometric polynomials of degree at most NN, in the root-mean-square sense. The reason is Pythagoras' theorem, which holds for any inner product.

Lemma 7.4 Pythagoras and best approximation

If ⟨g,h⟩=0\langle g, h\rangle = 0, then ∥g+h∥22=∥g∥22+∥h∥22\|g + h\|_2^2 = \|g\|_2^2 + \|h\|_2^2. Consequently, for every trigonometric polynomial PP of degree at most NN,

∥f−P∥22=∥f−SNf∥22+∥SNf−P∥22≥∥f−SNf∥22,\|f - P\|_2^2 = \|f - S_Nf\|_2^2 + \|S_Nf - P\|_2^2 \geq \|f - S_Nf\|_2^2,

with equality only for P=SNfP = S_Nf.

Proof. Expand: ∥g+h∥2=⟨g+h,g+h⟩=∥g∥2+⟨g,h⟩+⟨h,g⟩+∥h∥2\|g + h\|^2 = \langle g + h, g + h\rangle = \|g\|^2 + \langle g, h\rangle + \langle h, g\rangle + \|h\|^2, and the middle terms are 00 and its conjugate. For the second statement, first, f−SNff - S_Nf is orthogonal to each eke_k with ∣k∣≤N|k| \leq N:

⟨f−SNf,ek⟩=f^(k)−∑∣l∣≤Nf^(l)⟨el,ek⟩=f^(k)−f^(k)=0,\langle f - S_Nf, e_k\rangle = \hat f(k) - \sum_{|l| \leq N}\hat f(l)\langle e_l, e_k\rangle = \hat f(k) - \hat f(k) = 0,

by orthonormality. So it is orthogonal to every linear combination of them, in particular to SNf−PS_Nf - P. Apply the first statement with g=f−SNfg = f - S_Nf and h=SNf−Ph = S_Nf - P, whose sum is f−Pf - P.

Taking P=0P = 0, and computing ∥SNf∥22=∑∣k∣≤N∣f^(k)∣2\|S_Nf\|_2^2 = \sum_{|k| \leq N}|\hat f(k)|^2 by the same orthonormality, gives Bessel's inequality: ∑∣k∣≤N∣f^(k)∣2≤∥f∥22\sum_{|k|\leq N}|\hat f(k)|^2 \leq \|f\|_2^2 for every NN. In particular f^(k)→0\hat f(k) \to 0 as ∣k∣→∞|k| \to \infty (the terms of a convergent series tend to 00).

Two pictures of the same thing

It helps to hold two pictures of what has just happened, because each explains things the other hides.

The geometric picture. Continuous periodic functions form a vector space, and the inner product gives it lengths and angles, exactly like Rn\mathbb{R}^n but with infinitely many dimensions. The characters eke_k are an orthonormal family, like the standard basis vectors. The Fourier coefficient f^(k)=⟨f,ek⟩\hat f(k) = \langle f, e_k\rangle is the component of ff along eke_k, computed by a dot product, and SNfS_Nf is the orthogonal projection of ff onto the span of e−N,…,eNe_{-N}, \dots, e_N. Lemma 7.4 is the statement that the projection is the closest point of a subspace, which in the plane is the fact that the perpendicular is the shortest way to a line. Bessel's inequality says that a vector is at least as long as any of its projections. And the question "does the Fourier series converge to ff?" becomes "are the eke_k enough to reach every vector?", that is, is the orthonormal family complete? Plancherel's identity (Corollary 7.7) will say yes: ∥f∥22=∑∣f^(k)∣2\|f\|_2^2 = \sum|\hat f(k)|^2 is Pythagoras with infinitely many perpendicular sides.

The frequency picture. f^(k)\hat f(k) is the amount of oscillation at frequency kk in ff: how much of the function goes around kk times per period. A function is a chord, and its coefficients list how loudly each pure tone sounds. In this picture differentiation is simple, multiplying the kk-th coefficient by 2πik2\pi ik (shown below), so it amplifies high frequencies; integration divides by 2πik2\pi ik, so it damps them. Smooth functions are the ones whose high frequencies are quiet. Every linear operation that commutes with rotating the circle acts on the coefficients one at a time, by multiplication, and that is why the heat equation will decouple into separate equations, one per frequency.

The geometric picture explains best approximation and Plancherel; the frequency picture explains smoothing, smoothness and the heat equation. Fourier analysis is the passage between them.

Does the Fourier series converge?

The natural hope is that SNf→fS_Nf \to f. Write the partial sum as an average:

SNf(x)=∑∣k∣≤N∫01f(y)e2πik(x−y) dy=∫01f(y) DN(x−y) dy,DN(x)=∑∣k∣≤Ne2πikx=sin⁡((2N+1)πx)sin⁡(πx).S_Nf(x) = \sum_{|k|\leq N}\int_0^1 f(y)e^{2\pi ik(x - y)}\,dy = \int_0^1 f(y)\,D_N(x - y)\,dy, \qquad D_N(x) = \sum_{|k|\leq N}e^{2\pi ikx} = \frac{\sin\big((2N+1)\pi x\big)}{\sin(\pi x)}.

Expressions of this kind are periodic convolutions, (f∗g)(x)=∫01f(y)g(x−y) dy(f * g)(x) = \int_0^1 f(y)g(x - y)\,dy, and SNf=f∗DNS_Nf = f * D_N. If DND_N were an approximate identity in the sense of 2B.5 Uniform Convergence and Arzelà–Ascoli, non-negative with integral 11 and concentrating at 00, we would have SNf→fS_Nf \to f uniformly. It has integral 11 and its peak at 00 grows. But it is not non-negative: it oscillates, with side lobes that decay slowly (Figure 7.1). Its total absolute mass ∫01∣DN∣\int_0^1|D_N| grows like log⁡N\log N, and that is enough to wreck convergence: there are continuous functions whose Fourier series diverge at a point (du Bois-Reymond, 1873).

Why a sharp cut in frequency rings. The partial sum keeps the frequencies ∣k∣≤N|k| \leq N at full strength and discards the rest: it multiplies f^(k)\hat f(k) by the indicator of {∣k∣≤N}\{|k| \leq N\}, a sharp step in frequency. The price of that sharp step is a kernel DND_N that decays slowly in space, like 1π∣x∣\frac{1}{\pi|x|} away from 00 (its denominator sin⁡πx\sin\pi x is of size π∣x∣\pi|x| while the numerator keeps oscillating with height 11), so that its absolute mass ∫01∣DN∣\int_0^1|D_N|, the Lebesgue constant, grows without bound, like 4π2log⁡N\frac{4}{\pi^2}\log N. A smoother taper in frequency produces a kernel that decays faster in space. This trade-off between abruptness in one picture and spread in the other is a form of the uncertainty principle (4A.6 The Fourier Transform), and it is the reason signal processing tapers its filters rather than cutting them off.

The cure is to average the partial sums.

Definition 7.5 Fejér means and the Fejér kernel

The Fejér mean is σNf=1N(S0f+S1f+⋯+SN−1f)=f∗FN\sigma_Nf = \frac{1}{N}\big(S_0f + S_1f + \cdots + S_{N-1}f\big) = f * F_N, where

FN(x)=1N∑n=0N−1Dn(x)=∑∣k∣<N(1−∣k∣N)e2πikx=1N(sin⁡(Nπx)sin⁡(πx))2.F_N(x) = \frac1N\sum_{n=0}^{N-1}D_n(x) = \sum_{|k| < N}\Big(1 - \frac{|k|}{N}\Big)e^{2\pi ikx} = \frac{1}{N}\left(\frac{\sin(N\pi x)}{\sin(\pi x)}\right)^2.

The last formula (Exercise 7.14) is the important one: FN≥0F_N \geq 0. Averaging has cancelled the oscillation.

Figure 7.1. The Dirichlet kernel D8D_8 (oscillating, with negative lobes) and the Fejér kernel F8F_8 (never negative). Both have integral 11. Only FNF_N is an approximate identity, which is why Fejér means converge where partial sums can fail.
Theorem 7.6 Fejér's theorem

For every f∈C(R/Z)f \in C(\mathbb{R}/\mathbb{Z}), σNf→f\sigma_Nf \to f uniformly as N→∞N \to \infty.

Proof. FNF_N is an approximate identity. Mass 11: integrate the middle expression term by term; only k=0k = 0 survives. Non-negative: the last expression. Concentration: for δ≤∣x∣≤12\delta \leq |x| \leq \tfrac12, sin⁡2(πx)≥sin⁡2(πδ)\sin^2(\pi x) \geq \sin^2(\pi\delta), so FN(x)≤1Nsin⁡2(πδ)→0F_N(x) \leq \frac{1}{N\sin^2(\pi\delta)} \to 0 uniformly there. Now repeat the proof of the Weierstrass theorem (2B.5 Uniform Convergence and Arzelà–Ascoli): with M=sup⁡∣f∣M = \sup|f| and δ\delta chosen from the uniform continuity of ff so that ∣f(x−y)−f(x)∣≤ε/2|f(x - y) - f(x)| \leq \varepsilon/2 when ∣y∣<δ|y| < \delta,

∣σNf(x)−f(x)∣≤∫−1/21/2∣f(x−y)−f(x)∣ FN(y) dy≤ε2+2M⋅1Nsin⁡2(πδ),|\sigma_Nf(x) - f(x)| \leq \int_{-1/2}^{1/2}|f(x - y) - f(x)|\,F_N(y)\,dy \leq \frac\varepsilon2 + 2M\cdot\frac{1}{N\sin^2(\pi\delta)},

which is less than ε\varepsilon for large NN, for every xx.

Three consequences follow, and they are what make Fourier series usable.

Corollary 7.7 Density, uniqueness and Plancherel

For f,g∈C(R/Z)f, g \in C(\mathbb{R}/\mathbb{Z}):

  1. Trigonometric polynomials are dense in C(R/Z)C(\mathbb{R}/\mathbb{Z}) in the sup metric.
  2. If f^(k)=0\hat f(k) = 0 for every kk, then f=0f = 0. So ff is determined by its Fourier coefficients.
  3. (Plancherel) ∥f−SNf∥2→0\|f - S_Nf\|_2 \to 0, and ∥f∥22=∑k∈Z∣f^(k)∣2\displaystyle \|f\|_2^2 = \sum_{k\in\mathbb{Z}}|\hat f(k)|^2, and more generally ⟨f,g⟩=∑kf^(k)g^(k)‾\langle f, g\rangle = \sum_k \hat f(k)\overline{\hat g(k)}.
  4. If ∑k∣f^(k)∣<∞\sum_k|\hat f(k)| < \infty, then SNf→fS_Nf \to f uniformly.

Proof. (1) Each σNf\sigma_Nf is a trigonometric polynomial. (2) Then every σNf=0\sigma_Nf = 0, and σNf→f\sigma_Nf \to f. (3) Given ε\varepsilon, pick a trigonometric polynomial PP of some degree MM with sup⁡∣f−P∣≤ε\sup|f - P| \leq \varepsilon, so ∥f−P∥2≤ε\|f - P\|_2 \leq \varepsilon. For N≥MN \geq M, SNfS_Nf is the best approximation of degree NN, so ∥f−SNf∥2≤∥f−P∥2≤ε\|f - S_Nf\|_2 \leq \|f - P\|_2 \leq \varepsilon. Then ∥SNf∥22=∑∣k∣≤N∣f^(k)∣2→∥f∥22\|S_Nf\|_2^2 = \sum_{|k|\leq N}|\hat f(k)|^2 \to \|f\|_2^2, by Pythagoras: ∥f∥22=∥f−SNf∥22+∥SNf∥22\|f\|_2^2 = \|f - S_Nf\|_2^2 + \|S_Nf\|_2^2. The formula for ⟨f,g⟩\langle f, g\rangle follows by polarisation: for complex inner products, 4⟨f,g⟩=∑m=03im∥f+img∥224\langle f, g\rangle = \sum_{m=0}^{3} i^m\|f + i^mg\|_2^2 (expand the four norms), and the same identity holds for the sums of coefficients, so the identity for norms, applied to f+imgf + i^mg, gives the identity for inner products. (4) By the M-test the series converges uniformly to some continuous hh; its coefficients are those of ff (integrate term by term, 2B.5 Uniform Convergence and Arzelà–Ascoli), so h=fh = f by (2).

How fast f^(k)\hat f(k) decays measures how smooth ff is. Integrating by parts (2A.11 The Riemann Integral), for C1C^1 periodic ff,

f′^(k)=∫01f′(x)e−2πikx dx=[f(x)e−2πikx]01+2πik∫01f(x)e−2πikx dx=2πik f^(k),\widehat{f'}(k) = \int_0^1 f'(x)e^{-2\pi ikx}\,dx = \Big[f(x)e^{-2\pi ikx}\Big]_0^1 + 2\pi ik\int_0^1 f(x)e^{-2\pi ikx}\,dx = 2\pi ik\,\hat f(k),

the boundary term vanishing because ff and e−2πikxe^{-2\pi ikx} take the same values at 00 and 11. So if ff is C2C^2, then ∣f^(k)∣=∣f′′^(k)∣4π2k2≤sup⁡∣f′′∣4π2k2|\hat f(k)| = \frac{|\widehat{f''}(k)|}{4\pi^2k^2} \leq \frac{\sup|f''|}{4\pi^2k^2}, which is summable, and the Fourier series converges uniformly. Smoothness of ff is decay of f^\hat f. That sentence, made quantitative, is the theory of Sobolev spaces (4A.10 Sobolev Spaces).

Convolution becomes multiplication

Partial sums, Fejér means and, below, the solution of the heat equation are all convolutions f∗gf * g. The frequency picture explains why that is natural.

Proposition 7.8 Convolution and Fourier coefficients

For f,g∈C(R/Z)f, g \in C(\mathbb{R}/\mathbb{Z}), the convolution (f∗g)(x)=∫01f(y)g(x−y) dy(f * g)(x) = \int_0^1 f(y)g(x - y)\,dy is continuous and periodic, f∗g=g∗ff * g = g * f, and

f∗g^(k)=f^(k) g^(k)for every k.\widehat{f * g}(k) = \hat f(k)\,\hat g(k) \qquad \text{for every } k.

Proof. Periodicity is clear. Continuity: gg is uniformly continuous (2B.3 Compactness), so if ∣x−x′∣|x - x'| is small then ∣g(x−y)−g(x′−y)∣|g(x - y) - g(x' - y)| is small uniformly in yy, and so is ∣(f∗g)(x)−(f∗g)(x′)∣≤sup⁡∣f∣⋅sup⁡y∣g(x−y)−g(x′−y)∣|(f * g)(x) - (f * g)(x')| \leq \sup|f|\cdot\sup_y|g(x - y) - g(x' - y)|. Commutativity: substitute y′=x−yy' = x - y, and use periodicity to move the interval of integration back to [0,1][0, 1]. For the coefficients, exchange the order of the two integrals, which is allowed for a continuous integrand on a square (3A.5 Product Measures and Change of Variables proves the general case):

f∗g^(k)=∫01 ⁣ ⁣∫01f(y)g(x−y)e−2πikx dy dx,\widehat{f * g}(k) = \int_0^1\!\!\int_0^1 f(y)g(x - y)e^{-2\pi ikx}\,dy\,dx,

and writing e−2πikx=e−2πikye−2πik(x−y)e^{-2\pi ikx} = e^{-2\pi iky}e^{-2\pi ik(x - y)} and integrating in xx first,

f∗g^(k)=∫01f(y)e−2πiky(∫01g(x−y)e−2πik(x−y) dx)dy.\widehat{f * g}(k) = \int_0^1 f(y)e^{-2\pi iky}\Big(\int_0^1 g(x - y)e^{-2\pi ik(x - y)}\,dx\Big)dy.

The inner integral is g^(k)\hat g(k) for every yy, by periodicity, and what remains is f^(k)g^(k)\hat f(k)\hat g(k).

So each of the averaging processes of this chapter is a filter: it multiplies the kk-th frequency of ff by a fixed number m(k)m(k), the coefficients of its kernel.

Process Kernel Multiplier m(k)m(k)
Partial sum SNfS_Nf Dirichlet DND_N 11 for ∣k∣≤N\lvert k\rvert \leq N, 00 otherwise
Fejér mean σNf\sigma_Nf Fejér FNF_N 1−∣k∣N1 - \frac{\lvert k\rvert}{N} for ∣k∣<N\lvert k\rvert < N, 00 otherwise
Heat flow for time tt heat kernel HtH_t e−4π2k2te^{-4\pi^2k^2t}

All three keep low frequencies nearly intact and suppress high ones, and all three multipliers equal 11 at k=0k = 0, which is the statement that the kernel has integral 11. The difference is in the shape: a cliff for Dirichlet, a ramp for Fejér, a smooth bell for heat. The smoother the multiplier, the better behaved the kernel, and the two good ones have positive kernels. This table is the frequency picture of the whole chapter, and it extends without change to the Fourier transform on the line (4A.6 The Fourier Transform) and to the heat semigroup of a manifold, where the frequencies are replaced by the eigenvalues of the Laplacian (9B.7 The Heat Equation on a Manifold).

The proposition also explains why convolution smooths. If gg is continuously differentiable, then f∗gf * g is too, with (f∗g)′=f∗g′(f * g)' = f * g': on the coefficient side, multiplying by 2πik2\pi ik can be done to g^(k)\hat g(k) instead of f^(k)\hat f(k). A convolution is as smooth as the smoother of its two factors, which is the principle behind mollifiers (3A.8 Convolution and Mollifiers).

Example 7.9 A Fourier series computed in full

Let f(x)=x(1−x)f(x) = x(1 - x) on [0,1][0, 1], extended to be periodic: a continuous function made of parabolic arches, with corners at the integers. Then f^(0)=∫01x(1−x) dx=16\hat f(0) = \int_0^1 x(1 - x)\,dx = \frac16. For k≠0k \neq 0, integrate by parts twice. The first time, u=x(1−x)u = x(1 - x) and v′=e−2πikxv' = e^{-2\pi ikx}, v=e−2πikx−2πikv = \frac{e^{-2\pi ikx}}{-2\pi ik}; the boundary term vanishes because u(0)=u(1)=0u(0) = u(1) = 0:

f^(k)=12πik∫01(1−2x)e−2πikx dx.\hat f(k) = \frac{1}{2\pi ik}\int_0^1 (1 - 2x)e^{-2\pi ikx}\,dx.

The second time, with u=1−2xu = 1 - 2x, the boundary term is 1−2πik[(1−2x)e−2πikx]01=−1−1−2πik=1πik\frac{1}{-2\pi ik}\big[(1 - 2x)e^{-2\pi ikx}\big]_0^1 = \frac{-1 - 1}{-2\pi ik} = \frac{1}{\pi ik}, and the remaining integral is ∫01(−2)e−2πikx−2πikdx=0\int_0^1 (-2)\frac{e^{-2\pi ikx}}{-2\pi ik}dx = 0. So

f^(k)=12πik⋅1πik=−12π2k2(k≠0).\hat f(k) = \frac{1}{2\pi ik}\cdot\frac{1}{\pi ik} = -\frac{1}{2\pi^2k^2} \qquad (k \neq 0).

Since ∑∣f^(k)∣<∞\sum|\hat f(k)| < \infty, part 4 of Corollary 7.7 says the series converges uniformly to ff:

x(1−x)=16−∑k≥1cos⁡2πkxπ2k2,0≤x≤1.x(1 - x) = \frac16 - \sum_{k \geq 1}\frac{\cos 2\pi kx}{\pi^2k^2}, \qquad 0 \leq x \leq 1.

Two famous sums drop out. At x=0x = 0: 0=16−1π2∑1k20 = \frac16 - \frac{1}{\pi^2}\sum\frac1{k^2}, so ∑k≥11k2=π26\sum_{k\geq1}\frac{1}{k^2} = \frac{\pi^2}{6}. And Plancherel, with ∥f∥22=∫01x2(1−x)2 dx=130\|f\|_2^2 = \int_0^1 x^2(1 - x)^2\,dx = \frac{1}{30}, gives 130=136+2∑k≥114π4k4\frac1{30} = \frac{1}{36} + 2\sum_{k\geq 1}\frac{1}{4\pi^4k^4}, so ∑k≥11k4=π490\sum_{k \geq 1}\frac{1}{k^4} = \frac{\pi^4}{90}.

The coefficients decay like 1/k21/k^2, not faster, because f′f' jumps at the integers (from −1-1 to 11): ff is continuous but not C1C^1 as a periodic function. Compare the square wave of Exercise 7.12, which jumps itself and whose coefficients decay only like 1/k1/k.

Fourier's solution of the heat equation on a ring

Now Fourier's problem. A thin ring of metal of circumference 11 has temperature u(x,t)u(x, t) at position x∈R/Zx \in \mathbb{R}/\mathbb{Z} and time tt. Choosing units so the diffusivity is 11,

∂tu=∂x2u,u(x,0)=f(x).\partial_t u = \partial_x^2 u, \qquad u(x, 0) = f(x).

Separate the frequencies. Try u(x,t)=∑kak(t)e2πikxu(x, t) = \sum_k a_k(t)e^{2\pi ikx}. Since ∂x2ek=−4π2k2ek\partial_x^2e_k = -4\pi^2k^2e_k, the equation decouples into one ordinary differential equation per frequency:

ak′(t)=−4π2k2 ak(t),ak(0)=f^(k)⟹ak(t)=f^(k) e−4π2k2t,a_k'(t) = -4\pi^2k^2\,a_k(t), \quad a_k(0) = \hat f(k) \qquad\Longrightarrow\qquad a_k(t) = \hat f(k)\,e^{-4\pi^2k^2t},

by the uniqueness in 2B.6 Power Series, Exponentials and Bump Functions. So the candidate solution is

u(x,t)=∑k∈Zf^(k) e−4π2k2t e2πikx.(∗)u(x, t) = \sum_{k\in\mathbb{Z}}\hat f(k)\,e^{-4\pi^2k^2t}\,e^{2\pi ikx}. \tag{$*$}

In words: each frequency decays exponentially, at a rate proportional to the square of the frequency. The k=0k = 0 term, the mean temperature, never decays. Frequency 11 decays like e−39.5te^{-39.5t}; frequency 1010 like e−3948te^{-3948t}.

Theorem 7.10 Heat equation on a ring

Let f∈C(R/Z)f \in C(\mathbb{R}/\mathbb{Z}) and define uu by (∗)(*) for t>0t > 0, and u(⋅,0)=fu(\cdot, 0) = f. Then:

  1. For t>0t > 0, the series and all its term-by-term derivatives in xx and tt converge uniformly on {t≥t0}\{t \geq t_0\} for each t0>0t_0 > 0, so uu is infinitely differentiable for t>0t > 0 and satisfies ∂tu=∂x2u\partial_tu = \partial_x^2u.
  2. u(⋅,t)→fu(\cdot, t) \to f uniformly as t→0t \to 0.
  3. uu is the only solution of the problem that is continuous on R/Z×[0,∞)\mathbb{R}/\mathbb{Z} \times [0, \infty) and smooth for t>0t > 0.

Proof. (1) ∣f^(k)∣≤∥f∥2≤sup⁡∣f∣|\hat f(k)| \leq \|f\|_2 \leq \sup|f| by Bessel. A term differentiated pp times in xx and qq times in tt is bounded by sup⁡∣f∣ (2π∣k∣)p+2qe−4π2k2t0\sup|f|\,(2\pi|k|)^{p+2q}e^{-4\pi^2k^2t_0} on t≥t0t \geq t_0, and these bounds are summable over kk, 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 u(⋅,t)=f∗Htu(\cdot, t) = f * H_t with the periodic heat kernel

Ht(x)=∑k∈Ze−4π2k2te2πikx.H_t(x) = \sum_{k\in\mathbb{Z}}e^{-4\pi^2k^2t}e^{2\pi ikx}.

HtH_t has integral 11 (only k=0k = 0 survives integration). It is positive: this follows from the identity Ht(x)=∑n∈Z14πte−(x−n)2/4tH_t(x) = \sum_{n\in\mathbb{Z}}\frac{1}{\sqrt{4\pi t}}e^{-(x - n)^2/4t}, 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.6 The Fourier Transform; take it on trust here, or see Exercise 7.17 for a proof of positivity that avoids it.) From the Gaussian form, HtH_t concentrates at 00 as t→0t \to 0. So HtH_t is an approximate identity, and the proof of Fejér's theorem gives f∗Ht→ff * H_t \to f uniformly.

(3) If vv is another solution, w=u−vw = u - v solves the heat equation with w(⋅,0)=0w(\cdot, 0) = 0. Its energy E(t)=∫01∣w∣2E(t) = \int_0^1|w|^2 satisfies E′≤0E' \leq 0 (by the computation in the next subsection) and E(t)→0E(t) \to 0 as t→0t \to 0, so E≡0E \equiv 0.

Figure 7.2. Heat on a ring, computed from (∗)(*), starting from a square wave (+1+1 on half the ring, −1-1 on the other half). At t=0.001t = 0.001 the corners are already smooth; by t=0.01t = 0.01 the higher frequencies are gone and the profile is nearly a single sine wave; by t=0.05t = 0.05 its amplitude has fallen to about 0.180.18. The mean, 00, never changes.
Example 7.11 An explicit solution

Start from the parabolic arches f(x)=x(1−x)f(x) = x(1 - x) of Example 7.9. By (∗)(*),

u(x,t)=16−∑k≥1e−4π2k2tπ2k2cos⁡2πkx.u(x, t) = \frac16 - \sum_{k\geq1}\frac{e^{-4\pi^2k^2t}}{\pi^2k^2}\cos 2\pi kx.

At the hottest point, x=12x = \frac12, the temperature falls from 0.250.25 to about 0.2300.230 at t=0.01t = 0.01 and 0.1810.181 at t=0.05t = 0.05; at the coldest, x=0x = 0, it rises from 00 to about 0.0930.093 and 0.1530.153. Both approach the mean 16≈0.167\frac16 \approx 0.167, the hottest point from above and the coldest from below, as the maximum principle requires. By t=0.05t = 0.05 the k=1k = 1 term carries almost all of the remaining deviation, since the k=2k = 2 term has been damped by the extra factor e−12π2⋅0.05≈0.003e^{-12\pi^2 \cdot 0.05} \approx 0.003 relative to it, as property 3 below predicts.

A rod instead of a ring

A ring has no ends. A real rod does, and what happens at the ends changes the frequencies but not the method. There are two standard conditions, and each reduces to the ring by a reflection.

Ends held at temperature 00. For a rod [0,L][0, L] whose ends are kept in ice, extend the initial temperature to [−L,L][-L, L] as an odd function and then periodically with period 2L2L. The heat flow on this ring of circumference 2L2L keeps the extension odd, so it stays 00 at x=0x = 0 and x=Lx = L, and on [0,L][0, L] it is the solution for the rod. Odd periodic functions are sums of sines, so

u(x,t)=∑n≥1bn e−κ(nπ/L)2tsin⁡nπxL,u(x, t) = \sum_{n \geq 1}b_n\,e^{-\kappa(n\pi/L)^2t}\sin\frac{n\pi x}{L},
bn=2L∫0Lf(x)sin⁡nπxL dx,b_n = \frac2L\int_0^L f(x)\sin\frac{n\pi x}{L}\,dx,

with κ\kappa the diffusivity. Insulated ends, through which no heat flows, correspond to an even extension and give cosines instead, including a constant term: the mean temperature, which an insulated rod keeps for ever.

The formula answers a practical question at once: how long does a rod take to cool? Every term decays, and the slowest is n=1n = 1, with rate κπ2/L2\kappa\pi^2/L^2. For a copper rod, κ≈1.1×10−4\kappa \approx 1.1 \times 10^{-4} m²/s, so a rod 11 m long with iced ends has its temperature fall by a factor of ee about every 910910 seconds, a quarter of an hour, once the higher modes have died. A rod 1010 cm long does the same in about 99 seconds: a hundred times faster, not ten.

Read the scaling: the time constant is L2κπ2\frac{L^2}{\kappa\pi^2}, proportional to the square of the length. This is diffusive scaling, and it is the deepest structural fact about the heat equation. Heat spreads a distance ℓ\ell in a time of order ℓ2/κ\ell^2/\kappa, so doubling a distance quadruples the time; the damping depth d=2κ/ωd = \sqrt{2\kappa/\omega} of the opening example is the same law read the other way. Under the change of variables x↦λxx \mapsto \lambda x, t↦λ2tt \mapsto \lambda^2t, solutions of the heat equation go to solutions. This parabolic scaling (6A.1 What a PDE Is) is how Ricci flows are rescaled near a singularity: lengths by λ\lambda, times by λ2\lambda^2 (11B.3 Compactness of Ricci Flows).

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 ff is (here, merely continuous; in Course 3, merely square-integrable), u(⋅,t)u(\cdot, t) is infinitely differentiable for every t>0t > 0, because e−4π2k2te^{-4\pi^2k^2t} crushes the high frequencies. The heat equation cannot be run backwards in general: running it backwards would multiply f^(k)\hat f(k) by e+4π2k2te^{+4\pi^2k^2t}, and only very special ff survive that (Exercise 7.16). 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.5 Shi's Derivative Estimates), the analogue of the bound in part 1 of the proof.

2. Energy decreases. By Plancherel, ∫01∣u(x,t)∣2dx=∑k∣f^(k)∣2e−8π2k2t\int_0^1|u(x, t)|^2dx = \sum_k|\hat f(k)|^2e^{-8\pi^2k^2t}, which visibly decreases in tt. Directly, as in the rehearsal of 2A.11 The Riemann Integral, integrating by parts with no boundary terms,

ddt∫01u2 dx=2∫01u ∂x2u dx=−2∫01(∂xu)2 dx≤0.\frac{d}{dt}\int_0^1 u^2\,dx = 2\int_0^1 u\,\partial_x^2u\,dx = -2\int_0^1(\partial_xu)^2\,dx \leq 0.

Likewise the Dirichlet energy ∫(∂xu)2=∑4π2k2∣f^(k)∣2e−8π2k2t\int(\partial_xu)^2 = \sum 4\pi^2k^2|\hat f(k)|^2e^{-8\pi^2k^2t} decreases. In fact the heat equation is the direction of steepest descent of the Dirichlet energy, the gradient flow of 12∫∣∂xu∣2\tfrac12\int|\partial_xu|^2 (Exercise 7.19). This is thread V's first appearance: Ricci flow is, after Perelman's modification, the gradient flow of his F\mathcal{F}-functional (12A.2 Ricci Flow as a Gradient Flow).

Read the identity ddt∫u2=−2∫(∂xu)2\frac{d}{dt}\int u^2 = -2\int(\partial_xu)^2 term by term. The rate at which the energy falls is the Dirichlet energy, the total squared steepness. A temperature profile with steep gradients loses energy fast; a nearly flat one barely changes. The flow spends its effort where the profile is roughest, which is why corners vanish instantly while gentle variations linger.

3. Convergence to equilibrium, at a rate set by the first frequency. Let fˉ=f^(0)\bar f = \hat f(0) be the mean. Then

∥u(⋅,t)−fˉ∥22=∑k≠0∣f^(k)∣2e−8π2k2t≤e−8π2t ∥f−fˉ∥22.\|u(\cdot, t) - \bar f\|_2^2 = \sum_{k \neq 0}|\hat f(k)|^2e^{-8\pi^2k^2t} \leq e^{-8\pi^2t}\,\|f - \bar f\|_2^2.

The temperature evens out exponentially fast, at the rate 4π24\pi^2 of the lowest non-zero frequency. This spectral gap is equivalent to an inequality of Poincaré type (Exercise 7.18), and it reappears as the first eigenvalue of the Laplacian on a manifold (9B.7 The Heat Equation on a Manifold).

The gap between the first two frequencies decides how quickly the profile becomes a single sine wave. In the square-wave example of Figure 7.2, the coefficients of frequencies 11 and 33 start in the ratio 3:13 : 1, and the ratio is multiplied by e4π2(9−1)t=e32π2te^{4\pi^2(9 - 1)t} = e^{32\pi^2t}. At t=0.01t = 0.01 the third harmonic has fallen to about 1.4%1.4\% of the first, which is why the profile there already looks like a sine curve, of amplitude 4πe−4π2⋅0.01≈0.86\frac4\pi e^{-4\pi^2 \cdot 0.01} \approx 0.86. Late in any heat flow, the solution looks like its slowest non-constant mode, and the shape of that mode, not the initial data, decides what is seen.

4. The maximum principle. Since u(⋅,t)=f∗Htu(\cdot, t) = f * H_t with Ht≥0H_t \geq 0 and ∫Ht=1\int H_t = 1, each value u(x,t)u(x, t) is an average of values of ff. So min⁡f≤u(x,t)≤max⁡f\min f \leq u(x, t) \leq \max f: the heat equation creates no new maxima or minima, and in fact max⁡xu(x,t)\max_x u(x, t) is non-increasing in tt (apply the same argument starting from any time ss). For the heat equation on a ring this follows from the positivity of a kernel; in 6A.5 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.7 Maximum Principles under Ricci Flow Hamilton extends it to tensors.

Where this goes The first heat kernel

The kernel HtH_t is the first appearance of the heat kernel, the fundamental solution of the heat equation. On the line it is the Gaussian 14πte−x2/4t\frac{1}{\sqrt{4\pi t}}e^{-x^2/4t} (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 tt (at x=0x = 0), Ht(0)=∑ke−4π2k2tH_t(0) = \sum_k e^{-4\pi^2k^2t} 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 (4πτ)−n/2e−f(4\pi\tau)^{-n/2}e^{-f} whose behaviour encodes the geometry (12A.2 Ricci Flow as a Gradient Flow, 12A.9 Pseudolocality). The factor (4πτ)−n/2(4\pi\tau)^{-n/2} there is the same normalisation as the 14πt\frac{1}{\sqrt{4\pi t}} here.

Heat against waves

The heat equation has a first derivative in time. Its cousin, the wave equation ∂t2u=∂x2u\partial_t^2u = \partial_x^2u, which governs a vibrating string, has a second. Solving it on the ring by the same separation of frequencies shows exactly what the single time derivative is responsible for. Each coefficient now satisfies

ak′′(t)=−4π2k2ak(t),a_k''(t) = -4\pi^2k^2a_k(t),

whose solutions are ak(t)=αkcos⁡(2πkt)+βksin⁡(2πkt)a_k(t) = \alpha_k\cos(2\pi kt) + \beta_k\sin(2\pi kt): oscillations, not decays. Nothing is damped, so nothing is smoothed. A corner in the initial shape of a string travels along it for ever without rounding off, and the energy ∫((∂tu)2+(∂xu)2)\int\big((\partial_tu)^2 + (\partial_xu)^2\big) is conserved rather than dissipated. The equation can be run backwards as easily as forwards, since replacing tt by −t-t leaves it unchanged. There is no maximum principle and no convergence to equilibrium.

Every good property of the heat equation, then, comes from the exponent −4π2k2t-4\pi^2k^2t being real and negative, which comes from the single time derivative. Equations of the first kind are called parabolic, those of the second kind hyperbolic (6A.1 What a PDE Is). Ricci flow, ∂tg=−2Rc⁡\partial_tg = -2\operatorname{Rc}, has one time derivative and, after DeTurck's trick, behaves like a heat equation; this is why it smooths metrics, as this chapter's formula smooths temperatures. Einstein's equations of general relativity involve the same Ricci tensor but are hyperbolic, and they propagate waves instead.

Hearing a shape

The characters eke_k are the eigenfunctions of ∂x2\partial_x^2 on the circle, with eigenvalues −4π2k2-4\pi^2k^2, and every statement about the heat equation in this chapter was really a statement about these eigenvalues. On a drumhead, or any bounded region of the plane with its edge held fixed, or a closed Riemannian manifold, the circle's characters are replaced by the eigenfunctions of the Laplacian, and the frequencies by its eigenvalues 0≤λ1≤λ2≤⋯0 \leq \lambda_1 \leq \lambda_2 \leq \cdots. The heat equation is solved in exactly the same way, each eigenfunction decaying like e−λjte^{-\lambda_jt}, and the vibrating membrane rings at frequencies proportional to λj\sqrt{\lambda_j}.

How much of the shape do the frequencies determine? Mark Kac asked the question in a famous 1966 article, "Can one hear the shape of a drum?". A lot can be heard: the eigenvalues determine the area of the drum, the length of its boundary and, for a planar region, the number of holes, and the method for extracting them is the heat equation, through the small-time behaviour of ∑je−λjt\sum_je^{-\lambda_jt}, the trace of the heat kernel. But not everything. John Milnor had already found, in 1964, two sixteen-dimensional flat tori with the same eigenvalues that are not isometric, and in 1992 Carolyn Gordon, David Webb and Scott Wolpert constructed two plane regions, polygons of different shapes, that have exactly the same eigenvalues. The theta function Ht(0)=∑ke−4π2k2tH_t(0) = \sum_ke^{-4\pi^2k^2t} of the ahead box above is the circle's case of the heat trace, and the heat kernel on manifolds (9B.7 The Heat Equation on a Manifold) is where these questions are taken up.

The isoperimetric inequality, by Fourier series

Fourier series also prove theorems of geometry. Of all closed curves of a given length, the circle encloses the largest area: for a closed curve of length LL enclosing area AA,

L2≥4πA,L^2 \geq 4\pi A,

with equality only for a circle. Adolf Hurwitz gave this proof in 1901.

Parametrise a continuously differentiable closed curve, traversed anticlockwise, by a multiple of arc length on [0,1][0, 1], and write it as a complex function z(s)=x(s)+iy(s)z(s) = x(s) + iy(s) of period 11. Then the speed ∣z′(s)∣=L|z'(s)| = L is constant, so, by Plancherel and z′^(k)=2πik z^(k)\widehat{z'}(k) = 2\pi ik\,\hat z(k),

L2=∫01∣z′∣2 ds=∑k4π2k2∣z^(k)∣2.L^2 = \int_0^1|z'|^2\,ds = \sum_k 4\pi^2k^2|\hat z(k)|^2.

The enclosed area is A=12∫01(xy′−yx′) dsA = \frac12\int_0^1(xy' - yx')\,ds (Green's theorem, 8A.8 Differential Forms and Stokes’ Theorem), and xy′−yx′=Im⁡(zˉz′)xy' - yx' = \operatorname{Im}(\bar z z'). By the inner-product form of Plancherel,

∫01z′ zˉ ds=⟨z′,z⟩=∑k2πik∣z^(k)∣2,\int_0^1 z'\,\bar z\,ds = \langle z', z\rangle = \sum_k 2\pi ik|\hat z(k)|^2,

so, taking imaginary parts,

A=12∑k2πk∣z^(k)∣2=π∑kk∣z^(k)∣2.A = \frac12\sum_k 2\pi k|\hat z(k)|^2 = \pi\sum_k k|\hat z(k)|^2.

Subtracting,

L2−4πA=4π2∑k(k2−k) ∣z^(k)∣2≥0,L^2 - 4\pi A = 4\pi^2\sum_k(k^2 - k)\,|\hat z(k)|^2 \geq 0,

because k2≥kk^2 \geq k for every integer kk. Equality forces z^(k)=0\hat z(k) = 0 whenever k2≠kk^2 \neq k, that is, for all kk except 00 and 11, so z(s)=z^(0)+z^(1)e2πisz(s) = \hat z(0) + \hat z(1)e^{2\pi is}: a circle.

The proof shows how a curve falls short of a circle: each frequency k≥2k \geq 2 costs 4π2(k2−k)∣z^(k)∣24\pi^2(k^2 - k)|\hat z(k)|^2 in the inequality, so wiggles of high frequency are expensive. The inequality is the ancestor of the isoperimetric inequalities used for curvature flows (6A.10 Curve Shortening and the First Geometric Flows) and in Perelman's pseudolocality theorem (12A.10 The Proof of Pseudolocality).

The Gibbs phenomenon

Fourier series of functions with jumps converge badly near the jumps. For the square wave (+1+1 on (0,12)(0, \tfrac12), −1-1 on (12,1)(\tfrac12, 1)), the partial sums overshoot the jump by a fixed amount that does not shrink as NN grows; the overshoot just moves closer to the jump (Figure 7.3). In the limit, the partial sums rise to 2π∫0πsin⁡tt dt≈1.179\frac2\pi\int_0^\pi\frac{\sin t}{t}\,dt \approx 1.179, overshooting the value 11 by about 9%9\% of the jump of size 22.

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 −1-1 and 11. Positivity of the averaging kernel is what makes both the maximum principle and the absence of overshoot work.

Figure 7.3. The Gibbs phenomenon near a jump of the square wave. Partial sums of degree 99, 2929 and 9999 all overshoot to about 1.181.18; higher degree only narrows the overshoot. The Fejér mean (dashed) stays below 11.
In the world In use JPEG throws away high frequencies

A JPEG image is compressed block by block. Each 8×88 \times 8 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 6464 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 f^\hat f for smooth ff 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.

In the world Model Why a violin doesn't sound like a flute

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 ∣f^(k)∣|\hat f(k)| for k≥2k \geq 2. 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 1/k1/k (Exercise 7.12), and it sounds correspondingly brighter. Smoothness of the waveform is decay of the coefficients, heard.

In the world In use Predicting the tides

Tides are not periodic, but they are close to a sum of periodic parts. The gravitational pull of the Moon raises a tide with a period of about 12.4212.42 hours (the principal lunar constituent, called M2M_2), the Sun one with a period of exactly 1212 hours (S2S_2), and dozens of smaller constituents arise from the tilt and the ellipticity of the orbits. Their periods are known from astronomy. Their amplitudes and phases at a given port are not, and are found from a long record of observed water levels by projecting the record onto each constituent, the inner-product computation of this chapter in practice. William Thomson (Lord Kelvin) built the first tide-predicting machine in the 1870s, a mechanical device of pulleys and a wire that added up the constituents for a chosen port, and such machines predicted tides until digital computers replaced them.

Even the two main constituents explain a familiar pattern. When M2M_2 and S2S_2 are in step their amplitudes add (spring tides), and when they are out of step they partly cancel (neap tides). The two are in step again after the time it takes one to gain a full cycle on the other, 11/12−1/12.42\frac{1}{1/12 - 1/12.42} hours, about 355355 hours, or 14.814.8 days: the spring–neap cycle of roughly a fortnight, half a lunar month.

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.

Whether the Fourier series of a continuous function must converge at most points remained open until Lennart Carleson proved in 1966 that it converges everywhere except on a set of length zero, one of the deepest theorems of twentieth-century analysis.

Recall Where we stand

Periodic functions have Fourier coefficients f^(k)=⟨f,ek⟩\hat f(k) = \langle f, e_k\rangle with respect to the orthonormal characters e2πikxe^{2\pi ikx}. Partial sums are best approximations, but may fail to converge for continuous ff, 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 ff is decay of f^\hat f. The heat equation on a ring is solved by letting each coefficient decay like e−4π2k2te^{-4\pi^2k^2t}: 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 ∂x2\partial_x^2 becomes the trace of the Hessian.

Exercises

Exercise 7.12 Two waveforms

(a) For the square wave f=1f = 1 on (0,12)(0, \tfrac12) and −1-1 on (12,1)(\tfrac12, 1), show that f^(k)=2πik\hat f(k) = \frac{2}{\pi ik} for odd kk and 00 for even k≠0k \neq 0, so ff "==" 4π∑k odd>0sin⁡(2πkx)k\frac4\pi\sum_{k \text{ odd} > 0}\frac{\sin(2\pi kx)}{k}. (b) For the sawtooth g(x)=x−12g(x) = x - \tfrac12 on [0,1)[0, 1), show g^(k)=i2πk\hat g(k) = \frac{i}{2\pi k} for k≠0k \neq 0. (These functions are not continuous, but the integrals defining f^(k)\hat f(k) still make sense.)

Solution

(a) f^(k)=∫01/2e−2πikxdx−∫1/21e−2πikxdx=1−e−πik2πik−e−πik−12πik=1−(−1)kπik\hat f(k) = \int_0^{1/2}e^{-2\pi ikx}dx - \int_{1/2}^1 e^{-2\pi ikx}dx = \frac{1 - e^{-\pi ik}}{2\pi ik} - \frac{e^{-\pi ik} - 1}{2\pi ik} = \frac{1 - (-1)^k}{\pi ik}, which is 2πik\frac{2}{\pi ik} for odd kk and 00 for even k≠0k \neq 0 (and f^(0)=0\hat f(0) = 0). Pairing kk with −k-k: 2πike2πikx−2πike−2πikx=4sin⁡2πkxπk\frac{2}{\pi ik}e^{2\pi ikx} - \frac{2}{\pi ik}e^{-2\pi ikx} = \frac{4\sin 2\pi kx}{\pi k}. (b) For k≠0k \neq 0, integrate by parts with u=x−12u = x - \frac12: g^(k)=[(x−12)e−2πikx−2πik]01+12πik∫01e−2πikxdx=1−2πik(12+12)+0=i2πk\hat g(k) = \big[(x - \tfrac12)\tfrac{e^{-2\pi ikx}}{-2\pi ik}\big]_0^1 + \frac{1}{2\pi ik}\int_0^1 e^{-2\pi ikx}dx = \frac{1}{-2\pi ik}\big(\tfrac12 + \tfrac12\big) + 0 = \frac{i}{2\pi k}.

Exercise 7.13 Plancherel sums a series

Apply Plancherel's identity to the sawtooth of Exercise 7.12 (it holds for piecewise continuous functions too, by approximating them in ∥⋅∥2\|\cdot\|_2 by continuous ones), and deduce ∑k=1∞1k2=π26\sum_{k=1}^\infty\frac1{k^2} = \frac{\pi^2}{6}.

Solution

∥g∥22=∫01(x−12)2dx=112\|g\|_2^2 = \int_0^1(x - \tfrac12)^2dx = \frac1{12}, and ∑k≠0∣g^(k)∣2=2∑k≥114π2k2\sum_{k\neq0}|\hat g(k)|^2 = 2\sum_{k\geq1}\frac{1}{4\pi^2k^2}. Equate: ∑1k2=4π22⋅112=π26\sum\frac1{k^2} = \frac{4\pi^2}{2}\cdot\frac{1}{12} = \frac{\pi^2}6.

Exercise 7.14 The Fejér kernel is positive

With z=e2πixz = e^{2\pi ix}, show that Dn(x)=zn+1/2−z−n−1/2z1/2−z−1/2D_n(x) = \frac{z^{n+1/2} - z^{-n-1/2}}{z^{1/2} - z^{-1/2}}, and that ∑n=0N−1Dn=(zN/2−z−N/2)2(z1/2−z−1/2)2\sum_{n=0}^{N-1}D_n = \frac{(z^{N/2} - z^{-N/2})^2}{(z^{1/2} - z^{-1/2})^2}. Deduce FN(x)=1N(sin⁡Nπxsin⁡πx)2F_N(x) = \frac1N\big(\frac{\sin N\pi x}{\sin\pi x}\big)^2.

Solution

Here z1/2z^{1/2} means eπixe^{\pi ix}. Dn=∑k=−nnzkD_n = \sum_{k=-n}^n z^k is a geometric sum: multiplying by z1/2−z−1/2z^{1/2} - z^{-1/2} telescopes to zn+1/2−z−n−1/2z^{n+1/2} - z^{-n-1/2}. Summing over nn, with w=z1/2w = z^{1/2}, ∑n=0N−1(w2n+1−w−2n−1)=w(w2N−1)w2−1−w−1(w−2N−1)w−2−1\sum_{n=0}^{N-1}(w^{2n+1} - w^{-2n-1}) = \frac{w(w^{2N} - 1)}{w^2 - 1} - \frac{w^{-1}(w^{-2N} - 1)}{w^{-2} - 1}, which simplifies to (wN−w−N)2w−w−1\frac{(w^N - w^{-N})^2}{w - w^{-1}}. Dividing by w−w−1w - w^{-1} once more gives the claim. Finally wm−w−m=2isin⁡(mπx)w^m - w^{-m} = 2i\sin(m\pi x), so the ratio of squares is (2i)2sin⁡2Nπx(2i)2sin⁡2πx\frac{(2i)^2\sin^2 N\pi x}{(2i)^2\sin^2\pi x}, and dividing by NN gives FNF_N.

Exercise 7.15 Seasons underground

(a) Verify that u(z,t)=e−z/dcos⁡(ωt−z/d)u(z, t) = e^{-z/d}\cos(\omega t - z/d) solves ut=κuzzu_t = \kappa u_{zz} when d=2κ/ωd = \sqrt{2\kappa/\omega}. (Write u=Re⁡eiωt−(1+i)z/du = \operatorname{Re}e^{i\omega t - (1+i)z/d}.) (b) With κ=5×10−7\kappa = 5 \times 10^{-7} m²/s, compute dd for the annual and the daily cycle. (c) At what depth is the annual swing reduced to 1%1\% of its surface value, and how far behind the surface is it there?

Solution

(a) With v=eiωt−(1+i)z/dv = e^{i\omega t - (1+i)z/d}: vt=iωvv_t = i\omega v and vzz=(1+i)2d2v=2id2vv_{zz} = \frac{(1+i)^2}{d^2}v = \frac{2i}{d^2}v, so vt=κvzzv_t = \kappa v_{zz} exactly when ω=2κ/d2\omega = 2\kappa/d^2. Take real parts. (b) Annual: ω=2π/(3.156×107 s)\omega = 2\pi/(3.156\times10^7\text{ s}), d≈2.24d \approx 2.24 m. Daily: d≈0.117d \approx 0.117 m. (c) e−z/d=0.01e^{-z/d} = 0.01 at z=dln⁡100≈10.3z = d\ln 100 \approx 10.3 m, with a lag of ln⁡1002π≈0.73\frac{\ln 100}{2\pi} \approx 0.73 of a year, about 8.88.8 months.

Exercise 7.16 The heat equation can't be reversed

Suppose uu solves the heat equation on the ring for t∈[−1,0]t \in [-1, 0], continuously, with u(⋅,0)=fu(\cdot, 0) = f. Show that ∣f^(k)∣≤Ce−4π2k2|\hat f(k)| \leq C e^{-4\pi^2k^2} for some CC. Deduce that if ff is merely continuous (for example, f^(k)=1/k2\hat f(k) = 1/k^2), no such backward solution exists.

Solution

The coefficients of u(⋅,t)u(\cdot, t) satisfy ak′=−4π2k2aka_k' = -4\pi^2k^2a_k, so f^(k)=ak(0)=ak(−1)e−4π2k2\hat f(k) = a_k(0) = a_k(-1)e^{-4\pi^2k^2}, and ∣ak(−1)∣≤sup⁡∣u(⋅,−1)∣|a_k(-1)| \leq \sup|u(\cdot, -1)|. A function with f^(k)=1/k2\hat f(k) = 1/k^2 (k≠0k \neq 0) is continuous by the M-test, but 1/k21/k^2 is not O(e−4π2k2)O(e^{-4\pi^2k^2}).

Exercise 7.17 The heat kernel is positive, without Poisson summation

Let f≥0f \geq 0 be continuous and periodic, and u=f∗Htu = f * H_t. Show that u≥0u \geq 0 for all t>0t > 0, by considering m(t)=min⁡xu(x,t)m(t) = \min_x u(x, t): at a point where the minimum is attained, ∂x2u≥0\partial_x^2 u \geq 0 (2A.10 Derivatives), so uu can't be decreasing there; make this rigorous with uε=u+εtu_\varepsilon = u + \varepsilon t (or u+ε(1+t)u + \varepsilon(1 + t)) as in Hamilton's trick (2A.10 Derivatives). Deduce Ht≥0H_t \geq 0 by taking ff to be a narrow bump.

Hint

Suppose uε=u+ε(1+t)u_\varepsilon = u + \varepsilon(1 + t) first becomes 00 at a time t1>0t_1 > 0 and point x1x_1. There ∂tuε≤0\partial_tu_\varepsilon \leq 0 and ∂x2uε≥0\partial_x^2u_\varepsilon \geq 0, but ∂tuε−∂x2uε=ε>0\partial_tu_\varepsilon - \partial_x^2u_\varepsilon = \varepsilon > 0. For the last step, (f∗Ht)(x)=∫f(y)Ht(x−y)dy(f * H_t)(x) = \int f(y)H_t(x - y)dy, and if Ht(x0)<0H_t(x_0) < 0 a bump concentrated near 00 makes this negative at x=x0x = x_0.

Solution

Fix ε>0\varepsilon > 0 and T>0T > 0, and let uε=u+ε(1+t)u_\varepsilon = u + \varepsilon(1 + t), which is positive at t=0t = 0 (as f≥0f \geq 0) and continuous on R/Z×[0,T]\mathbb{R}/\mathbb{Z} \times [0, T]. Suppose it is ≤0\leq 0 somewhere in [0,T][0, T]. The set of such times is closed and doesn't contain 00; let t1>0t_1 > 0 be its least element, and x1x_1 a point with uε(x1,t1)=0u_\varepsilon(x_1, t_1) = 0. Then x1x_1 is a minimum of uε(⋅,t1)u_\varepsilon(\cdot, t_1), so ∂x2uε≥0\partial_x^2u_\varepsilon \geq 0 there; and uε(x1,t)>0u_\varepsilon(x_1, t) > 0 for t<t1t < t_1, so ∂tuε(x1,t1)≤0\partial_tu_\varepsilon(x_1, t_1) \leq 0. But ∂tuε−∂x2uε=ε>0\partial_tu_\varepsilon - \partial_x^2u_\varepsilon = \varepsilon > 0, a contradiction. So u>−ε(1+t)u > -\varepsilon(1 + t) for every ε\varepsilon, and u≥0u \geq 0. For the kernel: HtH_t is continuous, so if Ht(x0)<0H_t(x_0) < 0 it is negative on some interval (x0−η,x0+η)(x_0 - \eta, x_0 + \eta). A non-negative bump ff supported in (−η,η)(-\eta, \eta) with ∫f=1\int f = 1 gives (f∗Ht)(x0)=∫f(y)Ht(x0−y) dy<0(f * H_t)(x_0) = \int f(y)H_t(x_0 - y)\,dy < 0, contradicting the first part.

Exercise 7.18 Rehearsal: the spectral gap as a Poincaré inequality

(a) For C1C^1 periodic uu with mean uˉ\bar u, prove Wirtinger's inequality ∫01∣u−uˉ∣2≤14π2∫01∣u′∣2\int_0^1|u - \bar u|^2 \leq \frac{1}{4\pi^2}\int_0^1|u'|^2, using Plancherel and u′^(k)=2πiku^(k)\widehat{u'}(k) = 2\pi ik\hat u(k). When is it an equality? (b) Use it to prove the decay estimate of property 3 without Fourier series: if E(t)=∫∣u−uˉ∣2E(t) = \int|u - \bar u|^2 for a solution of the heat equation, show E′=−2∫∣ux∣2≤−8π2EE' = -2\int|u_x|^2 \leq -8\pi^2E, and conclude E(t)≤e−8π2tE(0)E(t) \leq e^{-8\pi^2t}E(0) (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.12 Entropy, Information and Diffusion, 12A.3 The 𝓦-Entropy).

Solution

(a) ∫∣u−uˉ∣2=∑k≠0∣u^(k)∣2≤∑k≠04π2k24π2∣u^(k)∣2=14π2∫∣u′∣2\int|u - \bar u|^2 = \sum_{k\neq0}|\hat u(k)|^2 \leq \sum_{k\neq0}\frac{4\pi^2k^2}{4\pi^2}|\hat u(k)|^2 = \frac{1}{4\pi^2}\int|u'|^2. Equality iff u^(k)=0\hat u(k) = 0 for ∣k∣≥2|k| \geq 2: u=uˉ+acos⁡2πx+bsin⁡2πxu = \bar u + a\cos 2\pi x + b\sin 2\pi x. (b) The mean is constant (2A.11 The Riemann Integral), so E′=2∫(u−uˉ)ut=2∫(u−uˉ)uxx=−2∫ux2≤−8π2EE' = 2\int(u - \bar u)u_t = 2\int(u - \bar u)u_{xx} = -2\int u_x^2 \leq -8\pi^2E. Then (e8π2tE)′≤0(e^{8\pi^2t}E)' \leq 0.

Exercise 7.19 The heat equation as a gradient flow

For smooth periodic uu and vv, let D(u)=12∫01ux2D(u) = \tfrac12\int_0^1 u_x^2. Show that ddsD(u+sv)∣s=0=−∫01uxx v\frac{d}{ds}D(u + sv)\big|_{s=0} = -\int_0^1 u_{xx}\,v. So, measuring changes by the inner product ⟨⋅,⋅⟩\langle\cdot,\cdot\rangle, the direction in which DD decreases fastest is v=uxxv = u_{xx} (normalised), and the heat equation ut=uxxu_t = u_{xx} moves uu in that direction. This is the first instance of the variational thread V; it is developed in 6A.11 Calculus of Variations and Gradient Flows and reaches Ricci flow in 12A.2 Ricci Flow as a Gradient Flow.

Solution

D(u+sv)=12∫(ux+svx)2=D(u)+s∫uxvx+s22∫vx2D(u + sv) = \frac12\int(u_x + sv_x)^2 = D(u) + s\int u_xv_x + \frac{s^2}{2}\int v_x^2, so the derivative at s=0s = 0 is ∫uxvx=−∫uxxv\int u_xv_x = -\int u_{xx}v, integrating by parts with no boundary terms. Among vv with ∥v∥2=1\|v\|_2 = 1, −∫uxxv=−⟨uxx,v⟩-\int u_{xx}v = -\langle u_{xx}, v\rangle is most negative when vv points along uxxu_{xx} (Cauchy–Schwarz, with equality for parallel vectors). So uxxu_{xx} is the direction of steepest descent of DD.

Exercise 7.20 Sine and cosine coefficients

Compute the coefficients aka_k, bkb_k of the triangle wave f(x)=∣x−12∣f(x) = |x - \frac12| on [0,1][0, 1], extended periodically, and show that its series contains only cosines with odd kk. How fast do the coefficients decay, and why?

Solution

Since f(1−x)=f(x)f(1 - x) = f(x) and ff has period 11, f(−x)=f(x)f(-x) = f(x): ff is even. So each bk=2∫−1/21/2f(x)sin⁡2πkx dxb_k = 2\int_{-1/2}^{1/2} f(x)\sin 2\pi kx\,dx is the integral of an odd function over a symmetric interval, which is 00. Next, a0/2=∫01∣x−12∣dx=14a_0/2 = \int_0^1|x - \frac12|dx = \frac14, and for k≥1k \geq 1, integrating by parts twice as in Example 7.9, ak=2∫01∣x−12∣cos⁡2πkx dx=1−(−1)kπ2k2a_k = 2\int_0^1|x - \tfrac12|\cos 2\pi kx\,dx = \frac{1 - (-1)^k}{\pi^2k^2}: 2π2k2\frac{2}{\pi^2k^2} for odd kk, 00 for even kk. So ∣x−12∣=14+2π2∑k oddcos⁡2πkxk2|x - \frac12| = \frac14 + \frac{2}{\pi^2}\sum_{k \text{ odd}}\frac{\cos 2\pi kx}{k^2}. The coefficients decay like 1/k21/k^2 because ff is continuous with a derivative that jumps (at 00 and 12\frac12).

Free resources for this chapter

Chosen for what this chapter covers, and all free to read or watch. Links checked Nov 6, 2026.

Read

Watch 4 lectures and talks

© 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.