Book 6A

© 2026 Neckpinch · www.neckpinch.com · All rights reserved.

Course 6Book 6A: The Heat Equation and Its RelativesChapter 11

Calculus of Variations and Gradient Flows

Euler–Lagrange equations, minimal surfaces, soap films and gradient flows.

37 min read · Updated Oct 20, 2026

Read with Evans, Partial Differential Equations, sections 8.1 (introduction: Euler–Lagrange equations, second variation, systems) and 8.2 (existence of minimisers: coercivity, lower semicontinuity, convexity), and section 9.6 on gradient flows if your edition has it. Colding and Minicozzi, A Course in Minimal Surfaces, is a reference for the geometry. Jost, chapter 10, is a second voice. The regularity of minimisers, constraints, critical points of mountain-pass type and Noether's theorem continue in 6C.1 Regularity of Minimisers and Constraints–6C.3 Symmetry, Noether’s Theorem and Moving Planes.

In this chapter · 6 sections
  1. 11.1A soap film between two rings
  2. 11.2The Euler–Lagrange equation
  3. 11.3Existence of minimisers: the direct method
  4. 11.4Gradient flows
  5. 11.5History
  6. 11.6Exercises
  7. ↗Free resources

Many of the equations in this book are the equations satisfied by something that minimises an energy. Laplace's equation minimises the Dirichlet energy (6A.2 Harmonic Functions); the minimal surface equation minimises area; a hanging chain minimises its potential energy. The calculus of variations turns "uu minimises EE" into a PDE, the Euler–Lagrange equation, and its second-order version says when a critical point is stable.

Turned around, an energy also produces an evolution: move downhill as fast as possible. That is a gradient flow, and three flows of this book are gradient flows: the heat equation decreases Dirichlet energy, curve shortening decreases length (6A.10 Curve Shortening and the First Geometric Flows), and the harmonic map heat flow decreases the energy of a map. The Ricci flow is a gradient flow too, but only after a change of point of view that Perelman discovered (12A.2 Ricci Flow as a Gradient Flow), and this chapter is the preparation for it.

By the end of this chapter you will be able to:

  • derive the Euler–Lagrange equation of an integral functional, and the second variation, and prove Legendre's condition;
  • prove weak lower semicontinuity of convex integrals and the existence of minimisers by the direct method, and make Dirichlet's principle rigorous;
  • write the minimal surface equation, compute the catenoid between two rings and its critical separation;
  • recognise the heat equation, curve shortening and the harmonic map heat flow as gradient flows, and compute their energy identities;
  • explain why gradient descent in machine learning is a discretised gradient flow.

A soap film between two rings

In the world Data The catenoid and its critical separation

Dip two parallel coaxial wire rings of radius RR into soapy water and pull them apart slowly. A soap film spans them, shaped like a waisted tube. Surface tension makes the film minimise its area, and the area-minimising surfaces of revolution are catenoids, r(z)=acosh⁡(z/a)r(z) = a\cosh(z/a), obtained by rotating a catenary (Exercise 11.4). With the rings at z=±dz = \pm d, the condition acosh⁡(d/a)=Ra\cosh(d/a) = R becomes, with x=d/ax = d/a,

dR=xcosh⁡x.\frac dR = \frac{x}{\cosh x}.

The function xcosh⁡x\frac{x}{\cosh x} rises to a maximum of 0.66270.6627 at x≈1.1997x \approx 1.1997, where xtanh⁡x=1x\tanh x = 1, and then falls (Figure 11.1). So for ring separations h=2dh = 2d below 1.3255R1.3255R there are two catenoids, a stable one with a wide waist and an unstable one with a narrow waist, which merge at the critical separation; beyond it there is no catenoid at all. Pull the rings further apart and the film's waist thins rapidly and the film pinches off, leaving a flat film across each ring. Even before the critical separation the two flat discs, of total area 2πR22\pi R^2, have less area than the stable catenoid once hh exceeds about 1.055R1.055R; between 1.055R1.055R and 1.3255R1.3255R the catenoid is a local but not a global minimum, and a disturbance can still burst it.

This is a tabletop experiment and an exact computation, and it shows three things that recur in geometric analysis: a family of solutions can cease to exist when a parameter crosses a critical value, critical points come in stable and unstable pairs that merge there, and the loss of a solution is seen physically as a neck pinching. It is the existence question that 2B.3 Compactness previewed.

Figure 11.1. Left: xcosh⁡x\frac{x}{\cosh x}, whose maximum 0.66270.6627 at x≈1.1997x \approx 1.1997 gives the critical half-separation d/Rd/R. A level d/Rd/R below the maximum has two solutions xx: two catenoids. Right: profiles r(z)=acosh⁡(z/a)r(z) = a\cosh(z/a) between rings of radius 11 at z=±0.5z = \pm0.5: the stable wide catenoid (solid) and the unstable narrow one (dashed), computed from the two roots. As the rings move apart to z=±0.6627z = \pm0.6627 the two merge, and beyond that neither exists.

The Euler–Lagrange equation

Let U⊂RnU \subset \mathbb{R}^n be bounded and consider an energy

E[u]=∫UL(∇u(x),u(x),x) dxE[u] = \int_UL(\nabla u(x), u(x), x)\,dx

over functions uu with given boundary values, with L=L(p,z,x)L = L(p, z, x) smooth. If uu is a smooth minimiser, then for every v∈Cc∞(U)v \in C_c^\infty(U) the function s↦E[u+sv]s \mapsto E[u + sv] has a minimum at s=0s = 0, so its derivative vanishes there (2A.10 Derivatives):

0=ddsE[u+sv]∣s=0=∫U(∑iLpi∂iv+Lzv)dx=∫U(−∑i∂i(Lpi)+Lz)v dx,0 = \frac{d}{ds}E[u + sv]\Big|_{s=0} = \int_U\Big(\sum_iL_{p_i}\partial_iv + L_zv\Big)dx = \int_U\Big(-\sum_i\partial_i\big(L_{p_i}\big) + L_z\Big)v\,dx,

after integrating by parts (1A.10 Divergence, Curl and the Integral Theorems). This holds for all vv, so (4A.9 Distributions and Weak Derivatives)

−∑i=1n∂i(Lpi(∇u,u,x))+Lz(∇u,u,x)=0,-\sum_{i=1}^n\partial_i\big(L_{p_i}(\nabla u, u, x)\big) + L_z(\nabla u, u, x) = 0,

the Euler–Lagrange equation of EE. Any solution, minimiser or not, is a critical point of EE.

energy L(p,z)L(p, z) Euler–Lagrange equation
Dirichlet energy 12∣p∣2\frac12\lvert p\rvert^2 Δu=0\Delta u = 0
Dirichlet energy with source 12∣p∣2−fz\frac12\lvert p\rvert^2 - fz −Δu=f-\Delta u = f
area of a graph 1+∣p∣2\sqrt{1 + \lvert p\rvert^2} div⁡(∇u1+∣∇u∣2)=0\operatorname{div}\Big(\frac{\nabla u}{\sqrt{1 + \lvert\nabla u\rvert^2}}\Big) = 0
12∣p∣2+F(z)\frac12\lvert p\rvert^2 + F(z) Δu=F′(u)\Delta u = F'(u)

The second line is Poisson's equation, and the third is the minimal surface equation: a graph is a critical point of area exactly when its mean curvature vanishes. In one dimension, with tt in place of xx, the same computation gives Lagrange's equations of mechanics: with L=12mx˙2−V(x)L = \frac12m\dot x^2 - V(x) the Euler–Lagrange equation is mx¨=−V′(x)m\ddot x = -V'(x), Newton's law (Exercise 11.7 treats a classical example).

The second variation. At a minimiser the second derivative is also non-negative:

d2ds2E[u+sv]∣s=0=∫U(∑i,jLpipj∂iv ∂jv+2∑iLpizv ∂iv+Lzzv2)dx≥0.\frac{d^2}{ds^2}E[u + sv]\Big|_{s=0} = \int_U\Big(\sum_{i,j}L_{p_ip_j}\partial_iv\,\partial_jv + 2\sum_iL_{p_iz}v\,\partial_iv + L_{zz}v^2\Big)dx \geq 0.

Testing with rapidly oscillating vv shows that the first term must dominate, which forces a pointwise condition.

Proposition 11.1 Legendre's condition

If u∈C2(U‾)u \in C^2(\overline U) minimises EE among functions with its boundary values, then for every x∈Ux \in U and every ξ∈Rn\xi \in \mathbb{R}^n,

∑i,jLpipj(∇u(x),u(x),x)ξiξj≥0.\sum_{i,j}L_{p_ip_j}\big(\nabla u(x), u(x), x\big)\xi_i\xi_j \geq 0.

Proof. Fix ξ\xi, a function ζ∈Cc∞(U)\zeta \in C_c^\infty(U), and for ε>0\varepsilon > 0 let vε(x)=εζ(x)sin⁡(x⋅ξ/ε)v_\varepsilon(x) = \varepsilon\zeta(x)\sin(x\cdot\xi/\varepsilon). Then vε=O(ε)v_\varepsilon = O(\varepsilon) and

∂ivε=ζ ξicos⁡(x⋅ξ/ε)+O(ε).\partial_iv_\varepsilon = \zeta\,\xi_i\cos(x\cdot\xi/\varepsilon) + O(\varepsilon).

Put this into the second variation, which is ≥0\geq 0. The terms with vεv_\varepsilon undifferentiated are O(ε)O(\varepsilon), so

0≤∫U∑i,jLpipjξiξj ζ2cos⁡2(x⋅ξ/ε) dx+O(ε).0 \leq \int_U\sum_{i,j}L_{p_ip_j}\xi_i\xi_j\,\zeta^2\cos^2(x\cdot\xi/\varepsilon)\,dx + O(\varepsilon).

As ε→0\varepsilon \to 0, cos⁡2(x⋅ξ/ε)=12+12cos⁡(2x⋅ξ/ε)\cos^2(x\cdot\xi/\varepsilon) = \frac12 + \frac12\cos(2x\cdot\xi/\varepsilon), and the oscillating part integrates to o(1)o(1) against the continuous compactly supported function Lpipjξiξjζ2L_{p_ip_j}\xi_i\xi_j\zeta^2 (the Riemann–Lebesgue lemma, 4A.6 The Fourier Transform). So 12∫∑Lpipjξiξj ζ2≥0\frac12\int\sum L_{p_ip_j}\xi_i\xi_j\,\zeta^2 \geq 0 for every ζ\zeta, and since the integrand is continuous, it is non-negative at every point.

When the matrix LpipjL_{p_ip_j} is uniformly positive definite, the Euler–Lagrange equation is elliptic (6A.1 What a PDE Is): expanding −∂i(Lpi(∇u,u,x))-\partial_i(L_{p_i}(\nabla u, u, x)) gives −∑Lpipj∂i∂ju+(lower order)-\sum L_{p_ip_j}\partial_i\partial_ju + (\text{lower order}). This is why equations coming from convex energies are elliptic, and their gradient flows parabolic. A critical point whose second variation is positive is stable; the narrow catenoid is unstable because the second variation is negative for a variation that pinches its waist further.

Existence of minimisers: the direct method

The Euler–Lagrange equation is a necessary condition. Existence of a minimiser is a separate question, and the answer is the direct method of 4A.7 Weak Convergence and the Direct Method: take a minimising sequence, extract a convergent subsequence by compactness, and show the limit is a minimiser by lower semicontinuity.

Theorem 11.2 Weak lower semicontinuity

Let L(p,z,x)L(p, z, x) be smooth, bounded below, and convex in pp for each fixed (z,x)(z, x). If uk⇀uu_k \rightharpoonup u weakly in H1(U)H^1(U), then E[u]≤lim inf⁡kE[uk]E[u] \leq \liminf_kE[u_k].

Proof. (Evans, section 8.2.2.) Adding a constant to LL we may assume L≥0L \geq 0. Let ℓ=lim inf⁡E[uk]\ell = \liminf E[u_k] and pass to a subsequence with E[uk]→ℓE[u_k] \to \ell. By Rellich (4A.11 Sobolev Embeddings and Critical Exponents) a further subsequence has uk→uu_k \to u in L2L^2, and another has uk→uu_k \to u almost everywhere (3A.7 Lᵖ Spaces and Jensen’s Inequality).

Good sets. By Egorov's theorem (3A.6 Modes of Convergence and Differentiation), for each ε>0\varepsilon > 0 there is a measurable EεE_\varepsilon with ∣U∖Eε∣<ε|U\setminus E_\varepsilon| < \varepsilon on which uk→uu_k \to u uniformly. Let Fε={x:∣u(x)∣+∣∇u(x)∣≤1/ε}F_\varepsilon = \{x : |u(x)| + |\nabla u(x)| \leq 1/\varepsilon\}, whose complement has measure tending to 00 as ε→0\varepsilon \to 0, and Gε=Eε∩FεG_\varepsilon = E_\varepsilon\cap F_\varepsilon. We may choose the sets so that GεG_\varepsilon grows as ε\varepsilon decreases, with ∣U∖Gε∣→0|U\setminus G_\varepsilon| \to 0.

Convexity. A convex function lies above its tangent planes: L(q,z,x)≥L(p,z,x)+DpL(p,z,x)⋅(q−p)L(q, z, x) \geq L(p, z, x) + D_pL(p, z, x)\cdot(q - p). With q=∇ukq = \nabla u_k, p=∇up = \nabla u, z=ukz = u_k, and L≥0L \geq 0,

E[uk]≥∫GεL(∇uk,uk,x)≥∫GεL(∇u,uk,x)+∫GεDpL(∇u,uk,x)⋅(∇uk−∇u).E[u_k] \geq \int_{G_\varepsilon}L(\nabla u_k, u_k, x) \geq \int_{G_\varepsilon}L(\nabla u, u_k, x) + \int_{G_\varepsilon}D_pL(\nabla u, u_k, x)\cdot(\nabla u_k - \nabla u).

Passing to the limit. On GεG_\varepsilon, ∇u\nabla u and uu are bounded and uk→uu_k \to u uniformly, so L(∇u,uk,x)→L(∇u,u,x)L(\nabla u, u_k, x) \to L(\nabla u, u, x) and DpL(∇u,uk,x)→DpL(∇u,u,x)D_pL(\nabla u, u_k, x) \to D_pL(\nabla u, u, x) uniformly on GεG_\varepsilon (smooth functions are uniformly continuous on compact sets). The first integral therefore converges to ∫GεL(∇u,u,x)\int_{G_\varepsilon}L(\nabla u, u, x). In the second, ∇uk−∇u⇀0\nabla u_k - \nabla u \rightharpoonup 0 weakly in L2L^2, and the factor converges uniformly (hence in L2(Gε)L^2(G_\varepsilon)) to a bounded function, so the integral tends to 00 (a weakly null sequence against a strongly convergent one). Hence

ℓ≥∫GεL(∇u,u,x) dx.\ell \geq \int_{G_\varepsilon}L(\nabla u, u, x)\,dx.

Let ε→0\varepsilon \to 0: by monotone convergence the right side tends to E[u]E[u].

Convexity in pp is exactly what lets the integral survive weak convergence of gradients. Without it, minimising sequences can oscillate between two preferred gradients and the energy of the limit can be larger than the limit of the energies, as in Bolza's example of 4A.7 Weak Convergence and the Direct Method. Convexity in uu is not needed, because uku_k converges strongly.

Theorem 11.3 Existence of minimisers

Suppose L(p,z,x)L(p, z, x) is smooth, convex in pp, and coercive: L(p,z,x)≥α∣p∣2−βL(p, z, x) \geq \alpha|p|^2 - \beta with α>0\alpha > 0. Then for every g∈H1(U)g \in H^1(U) with E[g]<∞E[g] < \infty, the energy EE has a minimiser in the admissible class A={u∈H1(U):u−g∈H01(U)}\mathcal A = \{u \in H^1(U) : u - g \in H^1_0(U)\}.

Proof. Let m=inf⁡AEm = \inf_{\mathcal A}E, which is finite: m≤E[g]<∞m \leq E[g] < \infty and m≥−β∣U∣m \geq -\beta|U|. Take uk∈Au_k \in \mathcal A with E[uk]→mE[u_k] \to m. By coercivity, α∫∣∇uk∣2≤E[uk]+β∣U∣\alpha\int|\nabla u_k|^2 \leq E[u_k] + \beta|U| is bounded. The functions wk=uk−gw_k = u_k - g lie in H01H^1_0, and ∥∇wk∥2≤∥∇uk∥2+∥∇g∥2\|\nabla w_k\|_2 \leq \|\nabla u_k\|_2 + \|\nabla g\|_2 is bounded, so by the Poincaré inequality (4A.10 Sobolev Spaces) (wk)(w_k) is bounded in H01H^1_0. By 4A.7 Weak Convergence and the Direct Method a subsequence converges weakly in H1H^1 to some ww, and w∈H01w \in H^1_0 because H01H^1_0 is a closed subspace, hence weakly closed (Mazur, 4A.7 Weak Convergence and the Direct Method). So uk⇀u=g+w∈Au_k \rightharpoonup u = g + w \in \mathcal A, and by Theorem 11.2, E[u]≤lim inf⁡E[uk]=mE[u] \leq \liminf E[u_k] = m. Hence E[u]=mE[u] = m.

If moreover L=L(p,x)L = L(p, x) does not depend on zz and is strictly convex in pp, the minimiser is unique: if u1≠u2u_1 \neq u_2 both minimise, then ∇u1≠∇u2\nabla u_1 \neq \nabla u_2 on a set of positive measure (their difference is in H01H^1_0 and not zero), and E[u1+u22]<12E[u1]+12E[u2]=mE\big[\frac{u_1 + u_2}{2}\big] < \frac12E[u_1] + \frac12E[u_2] = m by strict convexity, a contradiction. Under growth conditions on DpLD_pL and DzLD_zL (Evans, section 8.2.3), the minimiser is a weak solution of the Euler–Lagrange equation, by differentiating E[u+sv]E[u + sv] at s=0s = 0 under the integral sign.

For the Dirichlet energy this is Dirichlet's principle made rigorous: Riemann's 1851 argument assumed a minimiser exists, Weierstrass pointed out that it need not in general, and Hilbert's direct method, completed with Sobolev spaces, shows that here it does. The minimiser is a weak solution of the Euler–Lagrange equation, and the regularity theory of 6A.6 Weak Solutions and Elliptic Regularity shows it is smooth. Existence by minimisation, then regularity by bootstrapping, is the pattern for nonlinear problems too, including the minimisers of Perelman's F\mathcal F- and W\mathcal W-functionals (12A.2 Ricci Flow as a Gradient Flow, 12A.3 The 𝓦-Entropy).

Area is not coercive in this sense (it grows like ∣p∣|p|, not ∣p∣2|p|^2), and Plateau's problem, to find a surface of least area spanning a given wire loop in space, needed new ideas. Jesse Douglas and Tibor Radó solved it independently in 1930–31, minimising a different energy over parametrised discs; Douglas received one of the first Fields Medals in 1936 for this work.

In the world In use Form-finding in architecture

A tensile roof, a fabric or cable net held in tension between supports, works best when its surface is in equilibrium under uniform tension, which is the condition that it be a minimal surface or close to one. Frei Otto, at his Institute for Lightweight Structures in Stuttgart, found such forms experimentally with soap films stretched over wire frames, among other physical models; the film solves the minimal surface equation for the given boundary. The cable-net roofs of the Munich Olympic Park (1972), by Günter Behnisch with Frei Otto and Fritz Leonhardt, were developed from precise physical scale models before computer form-finding was available. Today the same problems are solved numerically, by minimising a discretised area or energy.

Gradient flows

Let EE be a smooth function on a Hilbert space HH (4A.5 Hilbert Spaces and Lax–Milgram). Its gradient ∇E(u)\nabla E(u) is the vector representing the derivative: ddsE[u+sv]∣s=0=⟨∇E(u),v⟩\frac{d}{ds}E[u + sv]|_{s=0} = \langle\nabla E(u), v\rangle for all vv (Riesz representation). The gradient flow is the ODE

dudt=−∇E(u).\frac{du}{dt} = -\nabla E(u).

Along it,

ddtE[u(t)]=⟨∇E(u),ut⟩=−∥∇E(u)∥2≤0:\frac{d}{dt}E[u(t)] = \langle\nabla E(u), u_t\rangle = -\|\nabla E(u)\|^2 \leq 0:

the energy decreases, at the fastest possible rate for a given speed ∥ut∥\|u_t\|. It is constant exactly at critical points. Generic trajectories descend to local minima; special ones end at saddle points (Figure 11.2).

Convex energies contract. If EE is convex, its gradient is monotone: ⟨∇E(u)−∇E(v),u−v⟩≥0\langle\nabla E(u) - \nabla E(v), u - v\rangle \geq 0 (add the two tangent-plane inequalities E(v)≥E(u)+⟨∇E(u),v−u⟩E(v) \geq E(u) + \langle\nabla E(u), v - u\rangle and the same with uu, vv exchanged). So for two solutions of the gradient flow,

ddt12∥u(t)−v(t)∥2=−⟨∇E(u)−∇E(v),u−v⟩≤0:\frac{d}{dt}\frac12\|u(t) - v(t)\|^2 = -\langle\nabla E(u) - \nabla E(v), u - v\rangle \leq 0:

the distance between them never increases. Uniqueness and continuous dependence on the initial data follow at once. If EE is λ\lambda-convex (E−λ2∥u∥2E - \frac\lambda2\|u\|^2 convex, λ>0\lambda > 0), the same computation gives ∥u(t)−v(t)∥≤e−λt∥u(0)−v(0)∥\|u(t) - v(t)\| \leq e^{-\lambda t}\|u(0) - v(0)\|, and every solution converges exponentially to the unique minimiser. For the heat equation this is the L2L^2 contraction and, with λ=λ1\lambda = \lambda_1, the exponential decay of 6A.3 The Heat Equation on ℝⁿ. Gradient flows of convex functionals, even non-smooth ones, are the subject of Evans, section 9.6, and of the theory of maximal monotone operators (6C.5 Fixed Points, Monotonicity and Sub- and Supersolutions).

Figure 11.2. Gradient flow of E(x,y)=(x2−1)2+y2E(x, y) = (x^2 - 1)^2 + y^2, with minima at (±1,0)(\pm1, 0) and a saddle at (0,0)(0, 0) (computed). Trajectories cross the level curves at right angles and run downhill into a minimum; only the trajectories starting on the line x=0x = 0 end at the saddle. In infinite dimensions the same picture describes the heat equation and the other gradient flows of this chapter.

Which gradient you get depends on the inner product. For the Dirichlet energy on H01(U)H^1_0(U), with the L2L^2 inner product,

dds12∫∣∇(u+sv)∣2∣s=0=∫∇u⋅∇v=⟨−Δu,v⟩L2,\frac{d}{ds}\frac12\int|\nabla(u + sv)|^2\Big|_{s=0} = \int\nabla u\cdot\nabla v = \langle-\Delta u, v\rangle_{L^2},

so ∇E(u)=−Δu\nabla E(u) = -\Delta u and the gradient flow is ut=Δuu_t = \Delta u. The heat equation is the L2L^2 gradient flow of the Dirichlet energy, and

ddt12∫∣∇u∣2=−∫(Δu)2≤0\frac{d}{dt}\frac12\int|\nabla u|^2 = -\int(\Delta u)^2 \leq 0

(Exercise 11.6). The same energy with a different inner product gives a different flow: with the H−1H^{-1} inner product it gives ut=−Δ2uu_t = -\Delta^2u, a fourth-order equation of the Cahn–Hilliard type.

Curve shortening is the gradient flow of length: 6A.10 Curve Shortening and the First Geometric Flows showed dLdt=−∫κV ds\frac{dL}{dt} = -\int\kappa V\,ds for a normal velocity VV, so with respect to the L2(ds)L^2(ds) inner product on normal velocities the gradient of LL is κ\kappa, and V=κV = \kappa is steepest descent. Mean curvature flow is the gradient flow of area in the same way.

The harmonic map heat flow. For a map u:M→Nu : M \to N between Riemannian manifolds, the energy 12∫M∣du∣2\frac12\int_M|du|^2 has as its critical points the harmonic maps, and its gradient flow, introduced by James Eells and Joseph Sampson in 1964, deforms any map towards a harmonic one when NN has non-positive curvature. It is used directly in the Ricci flow: DeTurck's diffeomorphisms are solutions of a harmonic map heat flow (11A.4 Short-Time Existence and Uniqueness).

In the world In use Gradient descent is a discretised gradient flow

Training a machine-learning model means minimising a loss function E(θ)E(\theta) over millions or billions of parameters θ\theta. The basic algorithm, gradient descent, is

θk+1=θk−η∇E(θk),\theta_{k+1} = \theta_k - \eta\nabla E(\theta_k),

which is Euler's method for the gradient flow θ′=−∇E(θ)\theta' = -\nabla E(\theta) with time step η\eta, the learning rate. Too large a step and the iteration overshoots and diverges, exactly as an explicit scheme for the heat equation does when Δt>12(Δx)2\Delta t > \frac12(\Delta x)^2; too small and progress is slow. Practical methods use random subsets of the data for each gradient (stochastic gradient descent) and add momentum and adaptive step sizes, but the continuous-time picture, energy decreasing along a flow, is how much of the theory of these methods is analysed.

Where this goes Ricci flow as a gradient flow, and min–max

The Ricci flow is not the gradient flow of any function of the metric alone; Hamilton asked whether it was, and Perelman answered: it is, up to diffeomorphisms, the gradient flow of his functional F(g,f)=∫(R+∣∇f∣2)e−fdV\mathcal F(g, f) = \int(R + |\nabla f|^2)e^{-f}dV, with respect to an L2L^2 inner product weighted by e−fe^{-f} (12A.2 Ricci Flow as a Gradient Flow). One consequence is immediate from the picture above: a gradient flow cannot return to where it started, so the Ricci flow has no periodic solutions other than fixed points ("no breathers"). The other half of the variational picture, finding unstable critical points such as the narrow catenoid, is min–max theory: Birkhoff's sweepouts and the width of a three-manifold, which forces the Ricci flow on certain manifolds to become extinct (10A.11 Min–Max and Width, 12C.3 Finite Extinction).

History

The calculus of variations began with Johann Bernoulli's brachistochrone problem of 1696, and Euler and Lagrange derived its equations in the 1740s–1760s. Joseph Plateau's experiments with soap films were published in 1873, and Plateau's problem was solved by Douglas and Radó in 1930–31. Weierstrass's criticism of the Dirichlet principle dates from 1870 and Hilbert's rescue from 1900; the modern direct method with Sobolev spaces was developed through the twentieth century. Eells and Sampson introduced the harmonic map heat flow in 1964. The Munich Olympic roofs were completed in 1972. The Gateway Arch, analysed in Exercise 11.8, was completed in 1965.

Recall Where we stand

Minimisers of ∫L(∇u,u,x) dx\int L(\nabla u, u, x)\,dx satisfy the Euler–Lagrange equation −∂i(Lpi)+Lz=0-\partial_i(L_{p_i}) + L_z = 0, and their second variation is non-negative, which forces ellipticity (Legendre's condition, proved with oscillating test functions). Convex integrands are weakly lower semicontinuous, so convex, coercive energies have minimisers in H1H^1 by the direct method, unique if strictly convex, and smooth by regularity. Area gives the minimal surface equation; between two rings the catenoid exists only up to separation 1.3255R1.3255R, where a stable and an unstable catenoid merge. A gradient flow u′=−∇E(u)u' = -\nabla E(u) decreases EE at the rate ∥∇E∥2\|\nabla E\|^2, and for convex EE it is a contraction; the heat equation, curve shortening and the harmonic map heat flow are gradient flows of energy, length and map energy. 6A.12 Entropy, Information and Diffusion studies a different monotone quantity along the heat equation: entropy.

Exercises

Exercise 11.4 Surfaces of revolution of least area

A surface obtained by rotating the graph r=r(z)>0r = r(z) > 0, −d≤z≤d-d \leq z \leq d, about the zz-axis has area A=2π∫−ddr1+r′2 dzA = 2\pi\int_{-d}^dr\sqrt{1 + r'^2}\,dz. (a) Since the integrand does not depend on zz, the quantity r′∂L∂r′−Lr'\frac{\partial L}{\partial r'} - L is constant along solutions of the Euler–Lagrange equation (the Beltrami identity); use it to show r1+r′2=a\frac{r}{\sqrt{1 + r'^2}} = a for a constant aa. (b) Solve to get r=acosh⁡z−z0ar = a\cosh\frac{z - z_0}{a}.

Solution

(a) With L=r1+r′2L = r\sqrt{1 + r'^2}, r′Lr′−L=rr′21+r′2−r1+r′2=−r1+r′2r'L_{r'} - L = \frac{rr'^2}{\sqrt{1 + r'^2}} - r\sqrt{1 + r'^2} = -\frac{r}{\sqrt{1 + r'^2}}. (b) r′2=r2a2−1r'^2 = \frac{r^2}{a^2} - 1, so drr2−a2=dza\frac{dr}{\sqrt{r^2 - a^2}} = \frac{dz}{a} and arccosh⁡(r/a)=(z−z0)/a\operatorname{arccosh}(r/a) = (z - z_0)/a.

Exercise 11.5 The critical separation

(a) Show that xcosh⁡x\frac{x}{\cosh x} has its maximum where xtanh⁡x=1x\tanh x = 1, and find x≈1.1997x \approx 1.1997 by a few steps of Newton's method (2A.10 Derivatives). (b) Deduce hcrit=2R⋅xcosh⁡x≈1.3255Rh_{\text{crit}} = 2R\cdot\frac{x}{\cosh x} \approx 1.3255R. (c) The same equation xtanh⁡x=1x\tanh x = 1 appeared for the Frank-Kamenetskii critical parameter in 6A.8 Nonlinear Parabolic Equations. Explain why: in both problems a one-parameter family of solutions of an ODE with cosh⁡\cosh is matched to a boundary condition, and the critical value is where the matching has a double root.

Solution

(a) ddxxcosh⁡x=cosh⁡x−xsinh⁡xcosh⁡2x\frac{d}{dx}\frac{x}{\cosh x} = \frac{\cosh x - x\sinh x}{\cosh^2x}, zero iff xtanh⁡x=1x\tanh x = 1. Newton for f(x)=xtanh⁡x−1f(x) = x\tanh x - 1, f′(x)=tanh⁡x+xsech⁡2xf'(x) = \tanh x + x\operatorname{sech}^2x, from x0=1.2x_0 = 1.2: tanh⁡1.2≈0.83365\tanh1.2 \approx 0.83365, f(1.2)≈0.00038f(1.2) \approx 0.00038, f′(1.2)≈0.83365+1.2×0.30503≈1.1997f'(1.2) \approx 0.83365 + 1.2 \times 0.30503 \approx 1.1997, so x1≈1.2−0.00032=1.19968x_1 \approx 1.2 - 0.00032 = 1.19968, already correct to five digits. (b) cosh⁡1.19968≈1.8102\cosh1.19968 \approx 1.8102, so xcosh⁡x≈0.66274\frac{x}{\cosh x} \approx 0.66274 and hcrit≈1.3255Rh_{\text{crit}} \approx 1.3255R. (c) In 6A.8 Nonlinear Parabolic Equations the matching condition was δ=2b2sech⁡2b\delta = 2b^2\operatorname{sech}^2b, maximised where ddb(bsech⁡b)2=0\frac{d}{db}\big(b\operatorname{sech}b\big)^2 = 0, i.e. again btanh⁡b=1b\tanh b = 1. Here it is dR=xsech⁡x\frac dR = x\operatorname{sech}x. Both are maximised by the same function xsech⁡xx\operatorname{sech}x; at the maximum two solution branches meet (a fold), and beyond it there are none.

Exercise 11.6 The energy identity for the heat equation

For a smooth solution of ut=Δuu_t = \Delta u on a bounded UU with u=0u = 0 on ∂U\partial U, show that ddt12∫∣∇u∣2=−∫(Δu)2\frac{d}{dt}\frac12\int|\nabla u|^2 = -\int(\Delta u)^2 and ddt12∫u2=−∫∣∇u∣2\frac{d}{dt}\frac12\int u^2 = -\int|\nabla u|^2. Deduce that ∫∣∇u∣2\int|\nabla u|^2 is non-increasing and ∫u2\int u^2 decreasing, and that the ratio ∫∣∇u∣2∫u2\frac{\int|\nabla u|^2}{\int u^2} (the Rayleigh quotient, 6A.6 Weak Solutions and Elliptic Regularity) is also non-increasing. (For the last, use Cauchy–Schwarz: (∫∣∇u∣2)2=(∫uΔu)2≤∫u2∫(Δu)2(\int|\nabla u|^2)^2 = (\int u\Delta u)^2 \leq \int u^2\int(\Delta u)^2.)

Solution

ddt12∫∣∇u∣2=∫∇u⋅∇ut=−∫Δu ut=−∫(Δu)2\frac{d}{dt}\frac12\int|\nabla u|^2 = \int\nabla u\cdot\nabla u_t = -\int\Delta u\,u_t = -\int(\Delta u)^2, the boundary term vanishing because ut=0u_t = 0 on ∂U\partial U. ddt12∫u2=∫uΔu=−∫∣∇u∣2\frac{d}{dt}\frac12\int u^2 = \int u\Delta u = -\int|\nabla u|^2. With D=∫∣∇u∣2D = \int|\nabla u|^2 and N=∫u2N = \int u^2, D′=−2∫(Δu)2D' = -2\int(\Delta u)^2 and N′=−2DN' = -2D, so

(DN)′=D′N−DN′N2=−2N∫(Δu)2+2D2N2≤0,\Big(\frac DN\Big)' = \frac{D'N - DN'}{N^2} = \frac{-2N\int(\Delta u)^2 + 2D^2}{N^2} \leq 0,

by the Cauchy–Schwarz inequality given. The Rayleigh quotient decreases towards λ1\lambda_1: heat flow filters out the higher modes.

Exercise 11.7 The brachistochrone

A bead slides without friction from rest at the origin down a wire y=y(x)y = y(x) (with yy measured downward) to a point (x1,y1)(x_1, y_1). Its speed is 2gy\sqrt{2gy}, so the time taken is ∫0x11+y′22gy dx\int_0^{x_1}\frac{\sqrt{1 + y'^2}}{\sqrt{2gy}}\,dx. Use the Beltrami identity to show that the fastest curve satisfies y(1+y′2)=cy(1 + y'^2) = c, and check that the cycloid x=a(θ−sin⁡θ)x = a(\theta - \sin\theta), y=a(1−cos⁡θ)y = a(1 - \cos\theta) satisfies it with c=2ac = 2a.

Solution

L=1+y′2yL = \frac{\sqrt{1 + y'^2}}{\sqrt y} (dropping 2g\sqrt{2g}). y′Ly′−L=−1y1+y′2y'L_{y'} - L = -\frac{1}{\sqrt y\sqrt{1 + y'^2}}, constant, so y(1+y′2)=cy(1 + y'^2) = c. For the cycloid, y′=sin⁡θ1−cos⁡θy' = \frac{\sin\theta}{1 - \cos\theta}, so 1+y′2=21−cos⁡θ1 + y'^2 = \frac{2}{1 - \cos\theta} and y(1+y′2)=2ay(1 + y'^2) = 2a.

Exercise 11.8 The hanging chain and the Gateway Arch

(a) A chain of uniform density hangs between two points; it minimises its potential energy ∫y ds\int y\,ds subject to fixed length ∫ds\int ds. With a Lagrange multiplier λ\lambda, minimise ∫(y−λ)1+y′2 dx\int(y - \lambda)\sqrt{1 + y'^2}\,dx, and show by the Beltrami identity that y−λ=acosh⁡x−x0ay - \lambda = a\cosh\frac{x - x_0}{a}: a catenary. (b) An arch of constant thickness, standing in pure compression, should follow an inverted catenary. The Gateway Arch in St. Louis is thicker at its base than at its top, and its centroid curve is a weighted catenary y=Acosh⁡(Bx)+Cy = A\cosh(Bx) + C with AB≠1AB \neq 1 (Osserman, "Mathematics of the Gateway Arch", Notices of the AMS, 2010). Explain why a chain with heavier links near its ends would hang in such a curve rather than a catenary.

Solution

(a) With L=(y−λ)1+y′2L = (y - \lambda)\sqrt{1 + y'^2}, the Beltrami identity gives −y−λ1+y′2=−a-\frac{y - \lambda}{\sqrt{1 + y'^2}} = -a, the same equation as for the catenoid with r=y−λr = y - \lambda, so y−λ=acosh⁡x−x0ay - \lambda = a\cosh\frac{x - x_0}{a}. (b) In equilibrium the horizontal component HH of the tension is constant, and the vertical component Hy′Hy' increases along the chain by the weight carried: (Hy′)′=w1+y′2(Hy')' = w\sqrt{1 + y'^2}, where ww is the weight per unit length. For constant ww this gives the catenary. If ww is larger near the ends, the slope grows faster there than for a catenary, and the curve is a different (weighted) catenary; inverting it gives the shape of an arch in pure compression with that distribution of weight.

Exercise 11.9 Step sizes

For E(θ)=12λθ2E(\theta) = \frac12\lambda\theta^2 with λ>0\lambda > 0, show that gradient descent θk+1=θk−ηλθk\theta_{k+1} = \theta_k - \eta\lambda\theta_k converges to 00 if and only if 0<η<2λ0 < \eta < \frac2\lambda. For E(θ)=12∑λiθi2E(\theta) = \frac12\sum\lambda_i\theta_i^2, show the condition is η<2λmax⁡\eta < \frac{2}{\lambda_{\max}}, and that convergence is then slowest in the direction of λmin⁡\lambda_{\min}. Relate this to the stability condition Δt≤12(Δx)2\Delta t \leq \frac12(\Delta x)^2 for the explicit scheme for the heat equation, whose largest eigenvalue is about 4(Δx)2\frac{4}{(\Delta x)^2}.

Solution

θk=(1−ηλ)kθ0\theta_k = (1 - \eta\lambda)^k\theta_0, which tends to 00 iff ∣1−ηλ∣<1|1 - \eta\lambda| < 1. With several directions each needs ηλi<2\eta\lambda_i < 2; the slowest factor is 1−ηλmin⁡1 - \eta\lambda_{\min}. The discrete Laplacian on a grid of spacing Δx\Delta x has eigenvalues up to about 4(Δx)2\frac{4}{(\Delta x)^2}, so explicit Euler needs Δt<24/(Δx)2=12(Δx)2\Delta t < \frac{2}{4/(\Delta x)^2} = \frac12(\Delta x)^2.

Exercise 11.10 Rehearsal: gradient flows have no non-trivial periodic orbits

Let u(t)u(t) solve u′=−∇E(u)u' = -\nabla E(u), and suppose u(T)=u(0)u(T) = u(0) for some T>0T > 0. (a) Show that ∫0T∥∇E(u(t))∥2dt=E(u(0))−E(u(T))=0\int_0^T\|\nabla E(u(t))\|^2dt = E(u(0)) - E(u(T)) = 0, so uu is constant. (b) Perelman shows that λ(g)=inf⁡fF(g,f)\lambda(g) = \inf_f\mathcal F(g, f) is non-decreasing along the Ricci flow and constant only on Ricci-flat (steady soliton) metrics (12A.2 Ricci Flow as a Gradient Flow). A breather is a solution that returns to its initial metric up to diffeomorphism and scaling. Explain, as in (a), why a steady breather (no scaling) must be a steady soliton. Perelman's W\mathcal W-entropy does the same for shrinking breathers (12A.3 The 𝓦-Entropy).

Solution

(a) ddtE(u)=−∥∇E(u)∥2\frac{d}{dt}E(u) = -\|\nabla E(u)\|^2; integrating over [0,T][0, T] gives the identity, and the integrand is non-negative and continuous, so ∇E(u(t))=0\nabla E(u(t)) = 0 for all tt, and then u′=0u' = 0. (b) λ\lambda is invariant under diffeomorphisms, so a breather has λ(g(T))=λ(g(0))\lambda(g(T)) = \lambda(g(0)); since λ\lambda is non-decreasing, it is constant on [0,T][0, T], which by Perelman's monotonicity formula happens only for steady solitons.

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