Part B · the action · spine
A number that depends on a whole curve has a derivative too, and setting it to zero turns "nature extremises this integral" into a differential equation.
needs 04~2½ h slides + 6 h problemsproblems: ./mr problems 11
11 · overview
A functional $J$ eats a whole function and returns one number: $J[y] = \int_a^b F(x, y(x), y'(x))\,\mathrm{d}x$.
Perturb $y$ to $y + \varepsilon\eta$ and differentiate in $\varepsilon$ at $0$. That number, the first variation, is linear in $\eta$ — a directional derivative on a space of curves.
"Zero for every $\eta$" collapses, by one lemma, into a single ODE: the Euler–Lagrange equation $\ \dfrac{\mathrm d}{\mathrm dx}F_{y'} = F_y$.
A bead slides on a frictionless wire from $A = (0,0)$ to $B = (2\ \mathrm m, 1\ \mathrm m)$, $y$ measured downwards, from rest, $g = 9.81\ \mathrm{m\,s^{-2}}$. Which wire is quickest?
Straight: $1.00964$ s. Galileo's circular arc: $0.83031$ s. The winner is a cycloid, $0.80556$ s, reached in four steps:
1. Energy gives the speed, $v = \sqrt{2gy}$, so the time $\int\mathrm ds/v$ is a functional of the wire.
2. Its integrand has no $x$ in it, so the equation has a first integral: $y(1+y'^2) = 2a$.
3. Substituting $y = a(1-\cos\theta)$ integrates that: $x = a(\theta - \sin\theta)$.
4. $B$ fixes $a$ and the end angle; the second variation confirms a minimum.
section 1
Three old problems with the same shape, and the derivative that fits them.
11 · functionals
Light travels between two points along the path of least time. With refractive index $n = c/v$,
$$\text{minimise}\ \int n\,\mathrm{d}s .$$Snell's law falls out in one line, next slide.
The brachistochrone: the wire down which a bead, released from rest, descends between two points in least time,
$$\text{minimise}\ \int \frac{\mathrm{d}s}{v} .$$Six months' grace, then Newton solved it overnight.
A hanging chain minimises its potential energy,
$$\text{minimise}\ \int \rho g\, y\,\mathrm{d}s$$with the length $\int\mathrm{d}s$ held fixed.
Galileo said parabola. He was wrong; section 4 says what it is.
In every one: a number attached to a whole curve, an integral of a local quantity along it, and an instruction to make it as small as possible. What differential equation does that instruction force?
11 · functionals · example
Two media meet on the $x$-axis: speed $v_1$ above, $v_2$ below. Light goes from $P = (0, h_1)$ to $Q = (d, -h_2)$. Inside each medium the quickest route is straight, so the only freedom is the crossing point $(x, 0)$:
$$T(x) = \frac{\sqrt{x^2+h_1^2}}{v_1} + \frac{\sqrt{(d-x)^2+h_2^2}}{v_2}$$Step 1. Differentiate: $\ T'(x) = \dfrac{x}{v_1\sqrt{x^2+h_1^2}} - \dfrac{d-x}{v_2\sqrt{(d-x)^2+h_2^2}}$.
Step 2. Read the two fractions as sines of the angles from the normal: $\sin\theta_1 = x/\sqrt{x^2+h_1^2}$, $\sin\theta_2 = (d-x)/\sqrt{(d-x)^2+h_2^2}$.
Step 3. $T'(x) = 0$ is therefore Snell's law:
$$\frac{\sin\theta_1}{v_1} = \frac{\sin\theta_2}{v_2}, \qquad n_1\sin\theta_1 = n_2\sin\theta_2 .$$The only freedom is where the ray crosses. It bends towards the normal in the slower medium, spending less of its path there than the straight segment (dotted) does.
11 · functionals · example
Minimum, not just stationary. Each term of $T$ is a composition of the convex $u \mapsto \sqrt{u^2+h^2}$ with an affine map, hence convex, and strictly so; the sum is strictly convex, so the stationary point is the unique global minimum.
Limit. $v_1 = v_2$ gives $\theta_1 = \theta_2$: no bend, a straight line, as it must be.
A number. Air to water, $n_1 = 1$, $n_2 = 1.333$, $\theta_1 = 45^\circ$: $\sin\theta_2 = 0.70711/1.333 = 0.53046$, so $\theta_2 = 32.04^\circ$.
One unknown number, so ordinary calculus sufficed. Curve the interface, or let $n$ vary continuously, and the unknown becomes a function — which is the whole of this unit.
That example with $h_1 = h_2 = h$, so $d = h(1 + \tan 32.04^\circ) = 1.626\,h$. Two convex bowls (dashed) add to one, and a convex function has at most one stationary point: the minimum, at $x = h$, where $\theta_1 = 45^\circ$.
11 · functionals
Take $A$ at the origin and measure $y$ downwards, so the bead descends as $y$ grows. Along the wire:
Speed. The frictionless wire's reaction is normal to the motion, so does no work (unit 04). From rest, $\tfrac12 mv^2 = mgy$:
$$v = \sqrt{2gy} .$$Arc length. For a graph $y(x)$, unit 03 gives $\mathrm{d}s = \sqrt{1+y'^2}\,\mathrm dx$.
Time. $\mathrm dt = \mathrm ds/v$, and integrate:
over curves with $y(0) = 0$, $y(X) = Y$, and $y > 0$ on $(0, X]$.
Schematic. Whatever the wire, the bead at depth $y$ has speed $\sqrt{2gy}$; the triangle turns a step $\mathrm dx$ into the length $\mathrm ds$ actually travelled.
11 · functionals
$[y'] = 1$, $[gy] = \mathrm{m^2\,s^{-2}}$, so the square root is $\mathrm{s\,m^{-1}}$ and $\times\,\mathrm dx$ gives seconds ✓.
The mass has vanished: every bead takes the same time.
At $x = 0$, $y = 0$ and the integrand blows up. Whether the improper integral converges depends on how the wire leaves $A$: steeply is fine, flat is fatal.
Three wires to $B$ and the rate at which each integrand blows up at $A$. A wire leaving flat never gets the bead started — the first hint that the answer sets off steeply down.
11 · functionals
$$\mathcal A = \{\,y \in C^1[a,b] \;:\; y(a) = \alpha,\ y(b) = \beta\,\}$$
Not a vector space: the sum of two members takes the value $2\alpha$ at $a$. It is an affine subspace — a fixed $y_0 \in \mathcal A$ plus the vector space
$$C^1_0 = \{\,\eta\in C^1[a,b] : \eta(a) = \eta(b) = 0\,\} .$$An element $\eta \in C^1_0$. Then $y + \varepsilon\eta \in \mathcal A$ for every real $\varepsilon$: the whole line through $y$ in direction $\eta$ stays admissible. This is why the boundary conditions never interfere with the differentiation.
The variation is pinned at both ends. Every curve on the dashed family is admissible, so $\varepsilon\mapsto J[y+\varepsilon\eta]$ is an ordinary function of one real variable.
11 · functionals
The first variation of $J$ at $y$ in the direction $\eta$ is the Gateaux derivative
$$\delta J[y;\eta] \;=\; \left.\frac{\mathrm d}{\mathrm d\varepsilon}\right|_{\varepsilon = 0} J[y+\varepsilon\eta] \;=\; \lim_{\varepsilon\to0}\frac{J[y+\varepsilon\eta]-J[y]}{\varepsilon},$$when the limit exists. Nothing new is being defined: $\varphi(\varepsilon) = J[y+\varepsilon\eta]$ is a function $\mathbb R\to\mathbb R$, and this is $\varphi'(0)$.
If $F$ is $C^2$ on a neighbourhood of the graph data, $y \in C^1[a,b]$ and $\eta\in C^1_0$, then $\delta J[y;\eta]$ exists and
$$\delta J[y;\eta] = \int_a^b\Big(F_y\big(x,y,y'\big)\,\eta(x) + F_{y'}\big(x,y,y'\big)\,\eta'(x)\Big)\,\mathrm{d}x ,$$and it is linear in $\eta$.
differentiation under the integral sign — full proof in the notes (N)
Necessary condition, exactly as in one variable: if $y$ minimises $J$ over $\mathcal A$, then $\varphi(\varepsilon) = J[y+\varepsilon\eta]$ has a minimum at $\varepsilon=0$, so $\varphi'(0) = \delta J[y;\eta] = 0$ — for every $\eta$.
11 · functionals
$\lVert \eta\rVert_0 = \max|\eta|$ and $\lVert\eta\rVert_1 = \max|\eta| + \max|\eta'|$.
$y$ is a weak local minimum if $J[y]\le J[\tilde y]$ for all admissible $\tilde y$ with $\lVert\tilde y - y\rVert_1$ small; a strong local minimum if the same holds with $\lVert\cdot\rVert_0$ small.
Strong is the stronger property: there are more competitors, because a curve may be close in position while wildly different in slope.
$\delta J[y;\eta] = 0$ for all $\eta$ makes $y$ stationary — an extremal. It does not make $J[y]$ least, or even locally least.
Exactly as $f'(x) = 0$ admits maxima and inflections. The reflex "extremal, therefore minimum" is the single most common error in this subject, and unit 26 will punish it: a free particle's worldline maximises proper time.
Section 5 supplies the tests — the Legendre condition and Jacobi's conjugate points — that tell the cases apart, and applies them to the cycloid.
11 · functionals
$J[y] = \displaystyle\int_0^1 y'^2(1-y')\,\mathrm dx$, $\ y(0) = y(1) = 0$.
Weak minimum at $y\equiv0$. If $\lVert\tilde y\rVert_1 < 1$ then $|\tilde y'| < 1$, so the integrand is $\ge 0 = J[0]$.
Not strong. A sawtooth with slope $+2$ on a fraction $p$ of each tooth and $-2p/(1-p)$ on the rest gives
$$J = -4p + \frac{4p^2(1+p)}{(1-p)^2}$$however many teeth: $-0.34568$ at $p = 0.1$. More, smaller teeth put it within any $\delta$ of $0$.
Drawn with $p = 1/4$, where $J = -0.444$. In $\lVert\cdot\rVert_0$ the sawtooth is as close to $0$ as the bump is; in $\lVert\cdot\rVert_1$ it is at distance more than $2$, so a weak minimum never has to compete with it.
section 2
Two lemmas, both proved by building a function that is zero except where you want it.
11 · the lemmas
Given $[c,d]\subset(a,b)$, define
$$\eta_{c,d}(x) = \begin{cases}\big[(x-c)(d-x)\big]^{3}, & c\le x\le d,\\[2pt] 0 & \text{otherwise.}\end{cases}$$On $(c,d)$ both factors are positive, so $\eta > 0$; outside $[c,d]$ it is $0$. At $x = c$ the polynomial has a triple root, so it and its first two derivatives vanish there — the one-sided derivatives from inside and outside agree, and they are continuous. Same at $d$. Hence $\eta_{c,d} \in C^2_0$.
A cube, not a square, precisely so that two derivatives vanish at the ends. For $C^k$ use the $(k+1)$st power; for $C^\infty$ use $\exp\!\big({-}1/((x-c)(d-x))\big)$ on $(c,d)$ and $0$ outside.
Zero outside $[c,d]$, strictly positive inside, and pinned at $a$ and $b$ automatically. The whole of section 2 is this picture used twice.
11 · the lemmas
Let $M$ be continuous on $[a,b]$. If $\displaystyle\int_a^b M(x)\,\eta(x)\,\mathrm dx = 0$ for every $\eta\in C^2_0[a,b]$ — so in particular if it holds for every $\eta \in C^1_0$ — then $M \equiv 0$ on $[a,b]$.
Suppose not: $M(x_0)\ne0$ for some $x_0\in[a,b]$, and without loss of generality $M(x_0) > 0$ (else replace $M$ by $-M$). By continuity $M > M(x_0)/2$ on some interval around $x_0$, and that interval contains some $[c,d]\subset(a,b)$ with $c < d$. Take $\eta = \eta_{c,d}$, the bump. Then
$$\int_a^b M\eta = \int_c^d M\eta \;\ge\; \frac{M(x_0)}{2}\int_c^d\eta \;>\; 0,$$since $\eta > 0$ on $(c,d)$. That contradicts the hypothesis. ∎
The proof in one picture. The bump switches the integral off except where $M$ is safely positive, so the shaded integrand $M\eta$ cannot integrate to zero.
11 · the lemmas
Let $N$ be continuous on $[a,b]$. If $\displaystyle\int_a^b N(x)\,\eta'(x)\,\mathrm dx = 0$ for every $\eta\in C^1_0[a,b]$, then $N$ is constant.
Let $\bar N = \frac1{b-a}\int_a^b N$ be the mean, and set $\eta(x) = \int_a^x\big(N(t)-\bar N\big)\,\mathrm dt$. Then $\eta\in C^1$, $\eta(a) = 0$, and $\eta(b) = \int_a^b N - (b-a)\bar N = 0$, so $\eta\in C^1_0$ — it is an admissible variation. Its derivative is $\eta' = N - \bar N$. Now
$$0 = \int_a^b N\eta'\,\mathrm dx = \int_a^b N\big(N-\bar N\big)\,\mathrm dx = \int_a^b\big(N-\bar N\big)^2\mathrm dx,$$the last step because $\int_a^b \bar N(N-\bar N) = \bar N\cdot 0 = 0$. A continuous non-negative integrand with zero integral vanishes identically, so $N \equiv \bar N$. ∎
No bump was needed here — the test function was built out of $N$ itself. Combined with one integration by parts, it is the whole proof of the Euler–Lagrange equation, on the next slide.
11 · the equation
Let $F$ be $C^2$ and let $y\in C^1[a,b]$ be an extremal of $J[y] = \int_a^b F(x,y,y')\,\mathrm dx$ on $\mathcal A$. Then $x\mapsto F_{y'}(x,y,y')$ is $C^1$ and
integrated (du Bois-Reymond) form
$$F_{y'}(x,y,y') = \int_a^x F_y\,\mathrm dt + \text{const}$$differentiated form, if $y\in C^2$
$$\frac{\mathrm d}{\mathrm dx}F_{y'}(x,y,y') = F_y(x,y,y')$$$\delta J[y;\eta] = \int_a^b(F_y\eta + F_{y'}\eta') \,\mathrm dx= 0$ for every $\eta\in C^1_0$. Put $W(x) = \int_a^x F_y\,\mathrm dt$, so $W' = F_y$; integrating by parts, $\int_a^b F_y\eta = [W\eta]_a^b - \int_a^b W\eta' = -\int_a^b W\eta'$, since $\eta$ vanishes at both ends. So $\int_a^b(F_{y'} - W)\,\eta'\,\mathrm dx = 0$ for every $\eta$, and the du Bois-Reymond lemma makes $F_{y'} - W$ a constant: that is the left form. Its right side is $C^1$, so $F_{y'}$ is too, and differentiating gives the right form. ∎
Expanded by the chain rule, the right-hand form is $F_{y'y'}\,y'' + F_{yy'}\,y' + F_{xy'} = F_y$: a second-order ODE, nonlinear in general, and degenerate exactly where $F_{y'y'} = 0$.
11 · the equation · example
$L[y] = \displaystyle\int_a^b\sqrt{1+y'^2}\,\mathrm dx$, so $F = \sqrt{1+y'^2}$.
Step 1. $F_y = 0$ — the integrand has no $y$ in it.
Step 2. $F_{y'} = \dfrac{y'}{\sqrt{1+y'^2}}$.
Step 3. Euler–Lagrange therefore reads $\dfrac{\mathrm d}{\mathrm dx}\dfrac{y'}{\sqrt{1+y'^2}} = 0$, so $\dfrac{y'}{\sqrt{1+y'^2}} = C$.
Step 4. Then $y'^2 = C^2(1+y'^2)$, so $y'^2 = C^2/(1-C^2)$, a constant: $y = mx + k$, a straight line, $m$ and $k$ fixed by the endpoints.
Dimensions. $F$ is dimensionless, $L$ has the dimension of $x$ ✓.
Sign. $|C| < 1$ is forced, since $|y'|/\sqrt{1+y'^2} < 1$ always; $C \to \pm1$ is the vertical line the graph formulation cannot represent.
Legendre. $F_{y'y'} = (1+y'^2)^{-3/2} > 0$ everywhere, so section 5's necessary condition for a minimum passes.
That competitors are graphs over $[a,b]$. So: among curves crossing each vertical line once, the segment is shortest. All curves need another argument (notes).
When $F_y = 0$, $F_{y'}$ is a first integral, conserved along every extremal — unit 13's Noether theorem for translations in $y$.
11 · the equation
Along any $C^2$ extremal, $\ \dfrac{\mathrm d}{\mathrm dx}\Big(F - y'F_{y'}\Big) = F_x$. In particular, if $F$ does not depend explicitly on $x$, then
$$F - y'\,F_{y'} = \text{constant along the extremal.}$$By the chain rule, $\dfrac{\mathrm dF}{\mathrm dx} = F_x + F_y y' + F_{y'}y''$, and $\dfrac{\mathrm d}{\mathrm dx}\big(y'F_{y'}\big) = y''F_{y'} + y'\dfrac{\mathrm d}{\mathrm dx}F_{y'}$. Subtract:
$$\frac{\mathrm d}{\mathrm dx}\big(F - y'F_{y'}\big) = F_x + y'\underbrace{\Big(F_y - \tfrac{\mathrm d}{\mathrm dx}F_{y'}\Big)}_{=\,0\ \text{by Euler–Lagrange}} .$$The $F_{y'}y''$ terms cancel and the bracket vanishes, leaving $F_x$. ∎
Why it is worth having. It replaces a second-order ODE by a first-order one, which unit 00's separation of variables can then attack. The two integration constants become one constant here and one from the quadrature.
What it will become. Put $p = F_{y'}$ and $H = y'p - F$. The identity says $H$ is conserved when $F$ has no explicit $x$. It obeys $\mathrm dH/\mathrm dx = -F_x$. With $x$ as time and $F = T-V$ this is energy conservation, and $H$ is the Hamiltonian of unit 14.
section 3
Beltrami turns the bead's second-order equation into a first-order one, and a substitution integrates it.
11 · the cycloid
In the descent-time functional, $F = \sqrt{1+p^2}\,/\sqrt{2gy}$ with $p = y'$, and $x$ does not appear. So Beltrami applies.
Step 1. $F_{y'} = \dfrac{y'}{\sqrt{1+y'^2}\sqrt{2gy}}$.
Step 2. $F - y'F_{y'} = \dfrac{(1+y'^2) - y'^2}{\sqrt{1+y'^2}\sqrt{2gy}} = \dfrac{1}{\sqrt{1+y'^2}\sqrt{2gy}}$.
Step 3. Call the constant $1/\sqrt{4ga}$, with $a > 0$ a length to be found. Squaring and inverting:
$F - y'F_{y'}$ is in $\mathrm{s\,m^{-1}}$, and so is $1/\sqrt{4ga}$ exactly when $a$ is a length; then $y(1+y'^2) = 2a$ is metres on both sides ✓.
$y \equiv 2a$ satisfies the first integral but is no extremal: there $F_y \ne 0 = (F_{y'})'$.
The Beltrami proof showed $\frac{\mathrm d}{\mathrm dx}\big(F - y'F_{y'}\big) = F_x + y'\big(F_y - (F_{y'})'\big)$. Where $y' = 0$ the Euler–Lagrange bracket is multiplied by zero, so a constant Beltrami quantity says nothing about it there. Such solutions must be checked against the full equation.
11 · the cycloid
Let $\phi$ be the angle between the wire and the vertical. The tangent is along $(1, y')$, so $\sin\phi = 1/\sqrt{1+y'^2}$, and $v = \sqrt{2gy}$. The first integral says
$$\frac{\sin\phi}{v} = \frac{1}{\sqrt{4ga}} = \text{const},$$which is Snell's law for horizontal layers of speed $v(y)$. Where $\phi = 90^\circ$ the wire is horizontal and $v$ is largest: $2a$ is the depth of the lowest point.
The running example's cycloid, $a = 0.5172$ m, across layers of increasing speed. Like light entering faster glass, it bends away from the vertical as it descends — $\sin\phi \propto \sqrt y$ — until it runs flat at depth $2a$, then climbs to $B$.
11 · the cycloid · example
Step 1. Solve for the slope: $y'^2 = (2a - y)/y$. On the descending part $y' > 0$, and unit 00's separation of variables gives $\ \mathrm dx = \sqrt{y/(2a-y)}\;\mathrm dy$.
Step 2. The square root wants a half-angle. Put $y = 2a\sin^2(\theta/2) = a(1-\cos\theta)$, $\theta\in(0,\pi)$. Then $2a - y = 2a\cos^2(\theta/2)$, so $\sqrt{y/(2a-y)} = \tan(\theta/2)$, and $\mathrm dy = a\sin\theta\,\mathrm d\theta = 2a\sin(\theta/2)\cos(\theta/2)\,\mathrm d\theta$.
Step 3. Multiply: $\ \mathrm dx = \tan(\theta/2)\cdot 2a\sin(\theta/2)\cos(\theta/2)\,\mathrm d\theta = 2a\sin^2(\theta/2)\,\mathrm d\theta = a(1-\cos\theta)\,\mathrm d\theta$.
Step 4. Integrate, $x = a(\theta - \sin\theta) + x_0$; the curve starts at $A$, where $\theta = 0$, so $x_0 = 0$.
$$x = a(\theta - \sin\theta), \qquad y = a(1 - \cos\theta).$$Back-substitute. $y' = \dfrac{\sin\theta}{1-\cos\theta} = \cot\tfrac\theta2$, so $y(1+y'^2) = \dfrac{2a\sin^2(\theta/2)}{\sin^2(\theta/2)} = 2a$ ✓.
At $A$. $x \approx a\theta^3/6$, $y \approx a\theta^2/2$: the wire leaves vertically, as the singular-start slide predicted.
11 · the cycloid
The curve $x = a(\theta - \sin\theta)$, $y = a(1 - \cos\theta)$ is a cycloid: the path of a point on the rim of a circle of radius $a$ rolling along the underside of the line $y = 0$, $\theta$ being the angle it has turned.
After turning through $\theta$ the circle has rolled $a\theta$, so its centre is at $(a\theta, a)$ and the rim point at $(a\theta, a) - a(\sin\theta, \cos\theta)$ — the pair just derived. The running example uses the solid part, $\theta$ from $0$ to $\theta_B$, past the bottom.
11 · the cycloid
Fixing $\theta_B$. At $B$, dividing $x$ by $y$ removes $a$:
$$r(\theta_B) := \frac{\theta_B - \sin\theta_B}{1 - \cos\theta_B} = \frac{X}{Y} = 2 .$$$r$ increases strictly from $0$ to $\infty$ on $(0, 2\pi)$ (notes), so there is exactly one root: $\theta_B = 3.50837$, i.e. $201.01^\circ$. Then $a = Y/(1-\cos\theta_B) = 0.51720$ m.
The time. Along the arch, $\mathrm ds = 2a\sin(\theta/2)\,\mathrm d\theta$ and $v = \sqrt{2gy} = 2\sqrt{ga}\sin(\theta/2)$:
$$\mathrm dt = \sqrt{a/g}\;\mathrm d\theta, \qquad T = \theta_B\sqrt{a/g} = 0.80556\ \mathrm s .$$The straight line is $25.3\%$ slower, Galileo's arc $3.07\%$. The cycloid dips $3.44$ cm below $B$ and climbs back.
11 · the cycloid
$a = Y/(1 - \cos\theta_B)$ is a length; $\sqrt{a/g}$ is a time; $\theta_B$ is a pure number. So $T$ is seconds ✓. And, as promised by the mass-free functional, $m$ appears nowhere.
As $X/Y\to0$: $r(\theta)\approx\theta/3$ gives $\theta_B \approx 3X/Y \to 0$, and $a \approx 2Y/\theta_B^2$. So
$$T = \theta_B\sqrt{a/g} \;\to\; \sqrt{2Y/g},$$the free-fall time. The cycloid degenerates to the vertical segment ✓.
As $Y\to0$ with $X$ fixed: $\theta_B\to2\pi$ and $a \to X/(2\pi)$, so $T \to \sqrt{2\pi X/g}$, finite. For $X = 2$ m that is $1.13180$ s: the bead runs a full arch and arrives with zero speed, as energy conservation demands ✓.
Released from rest anywhere on the arch, the bead reaches the bottom in the same time $\pi\sqrt{a/g}$ — for the running example's cycloid, $0.72135$ s. Huygens, 1673; the proof is three lines, in the notes.
section 4
An end left loose, a length held fixed, a curve kept on a surface: each changes which variations are allowed, and so what the first variation must kill.
11 · constraints
Fix $y(a) = \alpha$ and leave $y(b)$ free. If $y\in C^2$ is an extremal among such curves, it satisfies the Euler–Lagrange equation on $[a,b]$ and
$$F_{y'}\big(b, y(b), y'(b)\big) = 0 .$$Now $\eta$ need only vanish at $a$. Integrating by parts, $\delta J = \int_a^b\big(F_y - (F_{y'})'\big)\eta\,\mathrm dx + F_{y'}\big|_b\,\eta(b)$. Variations with $\eta(b) = 0$ are still allowed, so the fundamental lemma gives Euler–Lagrange and the integral vanishes. Then $\eta(x) = (x-a)/(b-a)$ leaves $F_{y'}|_b = 0$. ∎
Two boundary conditions, as a second-order equation needs: one imposed at $a$, one produced at $b$ by the minimisation itself.
11 · constraints
$F_{y'} = y'/\sqrt{2gy(1+y'^2)} = 0$ at $x = X$ forces $y'(X) = 0$: the wire meets the line horizontally, at the bottom of the arch, $\theta = \pi$. So $X = a\pi$ and
$$T = \pi\sqrt{a/g} = \sqrt{\pi X/g} .$$For $X = 2$ m: $a = 0.63662$ m, landing depth $2a = 1.27324$ m, $T = 0.80030$ s — $0.0053$ s better than aiming at $B$, as a larger admissible set must allow.
Checks. $\sqrt{X/g}$ is seconds ✓; $T$ grows like $\sqrt X$, the scaling of unit 00's mechanical similarity ✓.
Let the landing depth go free and the best cycloid gets bigger: it reaches the line at its lowest, fastest point instead of spending the end of the trip climbing back up to $B$.
11 · constraints
Let $y$ be a local minimiser of $J[y] = \int_a^b F\,\mathrm dx$ among curves in $\mathcal A$ with $K[y] = \int_a^b G(x,y,y')\,\mathrm dx = \ell$, and suppose $y$ is not an extremal of $K$. Then there is a constant $\lambda$ with
$$\delta J[y;\eta] = \lambda\,\delta K[y;\eta]\ \ \text{for all }\eta, \quad\text{so}\quad \frac{\mathrm d}{\mathrm dx}\big(F-\lambda G\big)_{y'} = \big(F - \lambda G\big)_y .$$Pick $\eta_2$ with $\delta K[y;\eta_2]\ne0$. For any $\eta_1$, the two-variable function $(\varepsilon_1,\varepsilon_2)\mapsto J[y + \varepsilon_1\eta_1 + \varepsilon_2\eta_2]$ has a local minimum at $0$ on the curve where $K = \ell$. Unit 04's Lagrange multiplier theorem applies in $\mathbb R^2$. Full proof in the notes.
If the constrained minimum $J^*(\ell)$ depends smoothly on $\ell$, then $\lambda = \mathrm dJ^*/\mathrm d\ell$: the price of one more unit of constraint, exactly as in unit 04. Dimensions: $[\lambda] = [J]/[K]$ ✓.
11 · constraints · example
A chain of length $\ell$ and mass per length $\rho$ hangs from $(\pm d, 0)$; here $y$ is measured upwards. Minimise $U = \rho g\!\int y\sqrt{1+y'^2}\,\mathrm dx$ with $\int\sqrt{1+y'^2}\,\mathrm dx = \ell$.
Step 1. By the theorem, extremise $\int(\rho g y - \mu)\sqrt{1+y'^2}\,\mathrm dx$ for some constant $\mu$. No explicit $x$, so Beltrami: $\ \dfrac{\rho g y - \mu}{\sqrt{1+y'^2}} = C$.
Step 2. Shift and scale: $u = y - \mu/(\rho g)$ and $c = C/(\rho g)$ give $u^2 = c^2(1+u'^2)$, so $u' = \pm\sqrt{u^2/c^2 - 1}$.
Step 3. Substitute $u = c\cosh s$: then $\sqrt{u^2/c^2-1} = \sinh s$ and $\mathrm du = c\sinh s\,\mathrm ds$, so $c\,\mathrm ds = \mathrm dx$ and $u = c\cosh\big((x - x_0)/c\big)$: a catenary.
Step 4. Symmetry of the supports gives $x_0 = 0$. The length fixes $c$, and $y(\pm d) = 0$ fixes $\mu$:
$$2c\sinh(d/c) = \ell, \qquad \mu = -\rho g\,c\cosh(d/c).$$$d = 1$ m, $\ell = 3$ m, $\rho = 2\ \mathrm{kg\,m^{-1}}$: $c = 0.61647$ m, sag $c(\cosh(d/c) - 1) = 1.00527$ m.
Dimensions. $c$ is a length; $\rho g c$ is a force ✓.
Limit. $\ell\downarrow 2d$ forces $c\to\infty$ and the sag to $0$: a taut straight chain ✓.
Weight. At each support the vertical pull is $\rho g c\sinh(d/c) = \rho g\ell/2 = 29.43$ N, half the weight ✓.
11 · constraints
The tension in the chain at height $y$ is $\ T = \rho g\,y - \mu$. At the supports, where $y = 0$, $\ T = -\mu$.
No horizontal force acts on the chain except at its ends, so the horizontal component $H$ of the tension is the same everywhere; at the bottom it is all of the tension. A piece from the bottom to $x$ is held by its weight $\rho g s(x)$, $s = c\sinh(x/c)$ the arc length, so the vertical component there is $\rho g c\sinh(x/c)$. Dividing, $\tan(\text{angle}) = y' = \sinh(x/c)$ forces $H = \rho g c$, and $T = H\sqrt{1+y'^2} = \rho g c\cosh(x/c) = \rho g u = \rho g y - \mu$. ∎
The free body in the proof: the piece from the bottom to $x$. Horizontally only $H$ and the horizontal part of $T$ act, so they balance; vertically the weight of the arc $s(x)$ balances the vertical part of $T$.
11 · constraints
$T_{\text{support}} = \rho g c\cosh(d/c) = 31.8185$ N. Differentiating the minimum energy $U^*(\ell)$ numerically at $\ell = 3$ m gives $\mathrm dU^*/\mathrm d\ell = -31.8185$ N $= \mu$ ✓.
Why. Draw $\delta\ell$ of chain out through a support against tension $T$: the work $T\,\delta\ell$ goes into the hanging part, so $\mathrm dU^*/\mathrm d(-\ell) = T$.
The parabola through the supports with the same length, $y = 1.02768\,(x^2 - 1)$, has $U = -35.5705$ J; the catenary has $U^* = -35.6326$ J. Lower by $0.0620$ J — small, and of the right sign.
Same supports, same $3$ m of chain. The parabola hangs $2.24$ cm lower in the middle but up to $4.0$ cm higher near the ends, where it has had to take the length from; the catenary's mass sits lower on balance.
11 · constraints
For $J[\mathbf q] = \int_{t_0}^{t_1}F(t, \mathbf q, \mathbf q')\,\mathrm dt$ with $\mathbf q = (q_1,\dots,q_n)$ and both ends fixed, an extremal satisfies $n$ equations
$$\frac{\mathrm d}{\mathrm dt}F_{q_i'} = F_{q_i},\qquad i = 1,\dots,n.$$Proof. Vary one component at a time, $\boldsymbol\eta = \eta\,\mathbf e_i$, and apply the one-variable theorem. ∎
This is the form unit 12 uses for $n$ degrees of freedom. It also frees curves from being graphs: write $(x(t), y(t))$ and the vertical tangent is no longer special.
For $J = \int_a^b F(x, y, y', y'')\,\mathrm dx$ with $y$ and $y'$ fixed at both ends, a $C^4$ extremal satisfies
$$F_y - \frac{\mathrm d}{\mathrm dx}F_{y'} + \frac{\mathrm d^2}{\mathrm dx^2}F_{y''} = 0 .$$Proof. Now $\eta$ and $\eta'$ vanish at $a$, $b$. Integrate $F_{y'}\eta'$ by parts once and $F_{y''}\eta''$ twice; every boundary term dies. The fundamental lemma finishes. ∎
Each term has dimension $[F]/[y]$ ✓. With $F = \tfrac12 EI\,y''^2 + \rho g y$ it is the bending equation of a beam: problem P10.
11 · constraints
Let $\mathbf q:[t_0,t_1]\to\mathbb R^3$ be a $C^2$ extremal of $\int F(t,\mathbf q,\mathbf q')\,\mathrm dt$ among curves on the surface $G(\mathbf q) = 0$ with fixed ends, and $\nabla G \ne 0$ along it. Then there is a continuous function $\lambda(t)$ with
$$\frac{\mathrm d}{\mathrm dt}F_{\mathbf q'} - F_{\mathbf q} = \lambda(t)\,\nabla G(\mathbf q(t)) .$$implicit function theorem to solve $G = 0$ locally, then the chain rule — full proof in the notes (N)
Take $F = \tfrac12\lvert\mathbf q'\rvert^2$ and $G = \lvert\mathbf q\rvert^2 - R^2$. Then $\mathbf q'' = 2\lambda\,\mathbf q$, so $(\mathbf q\times\mathbf q')' = \mathbf q\times\mathbf q'' = \mathbf 0$ and $\mathbf q$ stays in the fixed plane through $0$ normal to $\mathbf q\times\mathbf q'$: a great circle.
A bead on a frictionless sphere, no gravity. Its acceleration $\mathbf q''$ is all along the normal $\nabla G$, with no sideways part, so the plane of $\mathbf q$ and $\mathbf q'$ never turns.
11 · constraints
Differentiating $\lvert\mathbf q\rvert^2 = R^2$ twice, $\mathbf q\cdot\mathbf q'' = -\lvert\mathbf q'\rvert^2$, so $2\lambda = -\lvert\mathbf q'\rvert^2/R^2$: the constraint supplies the centripetal acceleration $\lvert\mathbf q'\rvert^2/R$, inward. As with the chain, the multiplier is the force of constraint.
Unit 12 makes this the rule for every constrained system: a multiplier is the force that enforces its constraint.
The motion seen face-on, in the plane of the great circle. At speed $\lvert\mathbf q'\rvert$ round a circle of radius $R$ the acceleration points to the centre with size $\lvert\mathbf q'\rvert^2/R$ — and $\mathbf q'' = 2\lambda\mathbf q$ says exactly that, with $2\lambda R = -\lvert\mathbf q'\rvert^2/R$.
section 5
The second derivative, a condition on it that is necessary and not sufficient, and the conjugate points that close the gap.
11 · second variation
The second variation is $\ \delta^2J[y;\eta] = \varphi''(0)$ for $\varphi(\varepsilon) = J[y + \varepsilon\eta]$. Differentiating under the integral twice,
$$\delta^2J[y;\eta] = \int_a^b\Big(F_{yy}\,\eta^2 + 2F_{yy'}\,\eta\eta' + F_{y'y'}\,\eta'^2\Big)\mathrm dx .$$If $y$ is a weak local minimum then $\delta^2J[y;\eta]\ge0$ for every $\eta\in C^1_0$.
Proof. $\varphi$ has a minimum at $0$ with $\varphi'(0) = 0$; Taylor's theorem in one variable forces $\varphi''(0)\ge0$. ∎
For $y\in C^2$, write $2\eta\eta' = (\eta^2)'$ and integrate that term by parts:
$$\delta^2J = \int_a^b\big(P\,\eta'^2 + Q\,\eta^2\big)\,\mathrm dx,$$$P = F_{y'y'}$, $\ Q = F_{yy} - \dfrac{\mathrm d}{\mathrm dx}F_{yy'}$, all along $y$.
11 · second variation
If $y\in C^2$ is a weak local minimum, then $P(x) = F_{y'y'}\big(x, y(x), y'(x)\big)\ge0$ on $[a,b]$.
Suppose $P(x_0) < 0$ at some interior $x_0$ (the ends follow by continuity). Fix a non-zero $C^1$ function $\phi$ on $\mathbb R$ vanishing outside $(-1,1)$ and squeeze it: $\eta_w(x) = w\,\phi\big((x-x_0)/w\big)$. Then $\eta_w' = \phi'\big((x-x_0)/w\big)$ is $O(1)$ while $\eta_w = O(w)$, and substituting $x = x_0 + ws$,
$$\frac{\delta^2J[\eta_w]}{w} = \int_{-1}^{1}P(x_0 + ws)\,\phi'(s)^2\,\mathrm ds + w^2\!\int_{-1}^{1}Q(x_0+ws)\,\phi(s)^2\,\mathrm ds \;\longrightarrow\; P(x_0)\!\int\phi'^2 < 0 .$$So $\delta^2J[\eta_w] < 0$ for small $w$, contradicting the necessary condition. ∎
On the cycloid. $P = \big(2gy\big)^{-1/2}(1+y'^2)^{-3/2} > 0$ everywhere on $(0, X]$ — at $B$ it is $0.2146\ \mathrm{s\,m^{-1}}$. It passes, strictly.
The reading. A variation that wiggles fast costs through $P\eta'^2$ long before it gains through $Q\eta^2$. So $P$ decides the sign of short wiggles and nothing else.
11 · second variation
$J_\ell[y] = \displaystyle\int_0^\ell\big(y'^2 - y^2\big)\,\mathrm dx$, $\ y(0) = y(\ell) = 0$. The curve $y\equiv0$ is an extremal (Euler–Lagrange reads $y'' + y = 0$), and $P = 2 > 0$. Now test $\eta = \sin(\pi x/\ell)$:
$$J_\ell[\varepsilon\eta] = \varepsilon^2\!\int_0^\ell\Big(\frac{\pi^2}{\ell^2}\cos^2\frac{\pi x}{\ell} - \sin^2\frac{\pi x}{\ell}\Big)\mathrm dx = \varepsilon^2\,\frac{\ell}{2}\Big(\frac{\pi^2}{\ell^2} - 1\Big).$$For $\ell > \pi$ this is negative for every $\varepsilon\ne0$. So $y\equiv0$ is not even a weak local minimum: curves as close as you like, in slope as well as position, do better. At $\ell = 4$, $J_4[\eta] = -0.7663$.
11 · second variation
For $\ell < \pi$ the same curve is the minimum: $J_\ell[\eta] > 0$ for every non-zero $\eta$, not just the sine. The proof needs conjugate points and Jacobi's theorem, which come next.
The physics. With $x$ as time, $y'^2 - y^2$ is kinetic minus potential energy for an oscillator of angular frequency $1$. Its action is least for durations under half a period, and merely stationary beyond.
$J_\ell$ on the test variation $\sin(\pi x/\ell)$, against the length of the interval. The slope term $\pi^2/(2\ell)$ falls as the interval grows and the $-\ell/2$ term wins at $\ell = \pi$, half the oscillator's period.
11 · second variation
The accessory equation (Jacobi equation) of $J$ along $y$ is the Euler–Lagrange equation of the quadratic functional $\delta^2J = \int(Ph'^2 + Qh^2)$:
$$\big(P\,h'\big)' = Q\,h .$$A point $c\in(a,b]$ is conjugate to $a$ along $y$ if some solution $h\not\equiv0$ has $h(a) = 0 = h(c)$.
If $y(x;\alpha)$ is a smooth family of extremals, then the Jacobi field $h = \partial_\alpha y$ solves the accessory equation along each member.
Proof. Differentiate $F_y - (F_{y'})' = 0$ in $\alpha$: $F_{yy}h + F_{yy'}h' - \big(F_{yy'}h + F_{y'y'}h'\big)' = 0$. The $F_{yy'}h'$ terms cancel, leaving $(Ph')' = Qh$. ∎
11 · second variation
where extremals leaving $a$ together, infinitesimally apart, cross again. For $J_\ell$, $P = 2$ and $Q = -2$, so the accessory equation is $h'' + h = 0$; the family of extremals $\alpha\sin x$ gives $h = \sin x$, and the first conjugate point is $\pi$ — exactly the threshold found on the half-period slide.
The extremals $y = \alpha\sin x$ of $J_\ell$ through $0$. However they fan out, all of them return to the axis at $x = \pi$; an interval of length $4$ contains that refocusing point, and the zero extremal stops being a minimum.
11 · second variation
If $P > 0$ on $[a,b]$ and the accessory equation has a solution $u > 0$ on all of $[a,b]$, then $\delta^2J[\eta] > 0$ for every non-zero $\eta\in C^1_0$.
Using $(Pu')' = Qu$, one checks by differentiating the last term that
$$P\eta'^2 + Q\eta^2 = P\Big(\eta' - \frac{u'}{u}\eta\Big)^2 + \Big(\frac{P u'}{u}\,\eta^2\Big)' .$$Integrate over $[a,b]$: the derivative term gives $0$ because $\eta(a)=\eta(b)=0$. What is left is $\ge 0$, and $= 0$ only if $(\eta/u)' = 0$, so $\eta = cu$ with $c = 0$ from $\eta(a) = 0$. ∎
If $P > 0$ and some $c\in(a,b)$ is conjugate to $a$, then $\delta^2J$ takes negative values: not a minimum. Gelfand and Fomin, chapter 5. The proof needs uniqueness for linear ODEs (unit 01), which this unit does not assume.
If $P > 0$ on $[a,b]$ and no point of $(a,b]$ is conjugate to $a$, then $y$ is a strict weak local minimum. Same reference.
11 · second variation · example
Step 1 · a family. Substituting $x = \lambda s$ gives $T[\lambda\,y(\cdot/\lambda)] = \sqrt\lambda\,T[y]$, so dilating an extremal from $A$ gives another. The cycloids through $A$ are $y_a(x) = a\,f(x/a)$, with $f$ the cycloid of radius $1$.
Step 2 · differentiate in $a$ at fixed $x$, with $s = x/a$: $\ h = \partial_a y_a = f(s) - s\,f'(s)$.
Step 3 · in terms of $\theta$. $f = 1 - \cos\theta$, $s = \theta - \sin\theta$, $f' = \sin\theta/(1-\cos\theta) = \cot(\theta/2)$, so
$$h = \frac{2 - 2\cos\theta - \theta\sin\theta}{1-\cos\theta} = 2 - \theta\cot\tfrac\theta2 .$$Step 4 · zeros. $h = 0$ exactly when $\tan(\theta/2) = \theta/2$. On $(0,\pi)$, $\tan u > u$ makes $h > 0$; on $[\pi,2\pi)$, $\cot(\theta/2)\le0$ makes $h\ge2$. The first zero after $A$ is at $\theta = 8.9868$, beyond the arch's end at $2\pi$.
Step 5 · verdict. $\theta_B = 3.5084$: no point of $(0, X]$ is conjugate to $A$, $h(\theta_B) = 2.651$, and $P > 0$. Jacobi's test passes.
Dimension. $h = \partial y/\partial a$ is a pure number ✓.
Near $A$. $h\approx\theta^2/6 \to 0$: the field vanishes at $A$, as a Jacobi field from $A$ must.
Déjà vu. $h$ is the numerator of $r'(\theta)$ from the constants slide. "Exactly one cycloid through each $B$" and "no conjugate point" are one fact.
11 · second variation
A family of extremals that covers a region exactly once: through each point of it passes one member.
The first arches through $A$ do this for the whole quadrant $x, y > 0$: a point $(x,y)$ lies on the arch with $r(\theta) = x/y$, and $r$ is a bijection (the constants slide).
An extremal embedded in a field, with $F$ convex in $y'$ throughout, beats every admissible curve lying in the field's region. Gelfand and Fomin, chapter 6.
The arches leave $A$ together and never meet again — the Jacobi field $h = \partial_a y_a$ is their spacing, and it has no zero. Every admissible wire lies in the quadrant, so the cycloid to $B$ beats them all.
section 6
Everything so far assumed a minimiser and asked what it satisfies. Weierstrass showed the assumption can fail.
11 · existence
In $\mathbb R^n$ (unit 04), a continuous function on a closed bounded set attains its minimum, because such sets are compact. The direct method tries the same thing on curves:
1. Take a minimising sequence: admissible $y_n$ with $J[y_n]\to\inf J$.
2 · compactness. Extract a subsequence converging, in some sense, to some $y_*$.
3 · lower semicontinuity. Show $J[y_*]\le\liminf J[y_n]$, and that $y_*$ is admissible. Then $J[y_*] = \inf J$.
If $F$ is continuous, convex in $y'$, and $F\ge\alpha\lvert y'\rvert^q - \beta$ with $\alpha > 0$, $q > 1$, then $J$ attains its minimum over absolutely continuous curves with the given ends. Dacorogna, Introduction to the Calculus of Variations, chapter 3.
11 · existence
A weaker notion of convergence makes step 2 easier and step 3 harder. In $C^1$ with $\lVert\cdot\rVert_1$ the unit ball is not compact: $\eta_n = \sin(n\pi x)/(n\pi)$ has $\lVert\eta_n\rVert_1\le 2$ and no convergent subsequence.
Positions converge, to $0$, uniformly. Slopes do not converge at all. So a limit taken in the only sense available forgets the slopes — and $J$ depends on them.
$\eta_n = \sin(n\pi x)/(n\pi)$ above, its slope $\cos(n\pi x)$ below. Raising $n$ flattens the curve but leaves the slope swinging between $\pm1$, ever faster: bounded in $\lVert\cdot\rVert_1$, with nothing to converge to.
11 · existence
$J[y] = \displaystyle\int_{-1}^{1}x^2\,y'^2\,\mathrm dx$, $\quad y(-1) = -1$, $y(1) = 1$.
The infimum is $0$. Try $y_\epsilon = \arctan(x/\epsilon)/\arctan(1/\epsilon)$. With $A = \arctan(1/\epsilon)$, $y_\epsilon' = \epsilon/\big(A(x^2+\epsilon^2)\big)$, and $x^2\le x^2+\epsilon^2$ gives
$$J[y_\epsilon]\le\frac{\epsilon^2}{A^2}\int_{-1}^{1}\frac{\mathrm dx}{x^2+\epsilon^2} = \frac{2\epsilon}{A}\;\longrightarrow\;0 .$$It is not attained. $J[y] = 0$ forces $xy' \equiv 0$, so $y$ is constant on $[-1,0)$ and on $(0,1]$ — hence $-1$ and $+1$ there. No continuous $y$ does that.
The minimising sequence steepens into a jump. At $\epsilon = 0.01$ the bound is $0.012814$ and the true value $0.006366$; the limit is not continuous, so not admissible.
11 · existence
$P = F_{y'y'} = 2x^2$ vanishes at $x = 0$: there the functional charges nothing for steepness, so the growth hypothesis of Tonelli fails, and the sequence escapes the space.
Riemann had assumed, as Dirichlet's principle, that the energy $\int\lvert\nabla u\rvert^2$ always attains its minimum among functions with given boundary values; this example (1870) broke the argument.
Where the cost goes, for $\epsilon = 0.03$. The slope $y_\epsilon'$ spikes at $x = 0$, exactly where the weight $x^2$ vanishes. The integrand never exceeds $1/(4A^2) \approx 0.105$, however steep the slope, while its width shrinks with $\epsilon$ — so its area $J$ goes to $0$.
11 · close
1. Written as a functional, $T[y] = \int\sqrt{(1+y'^2)/(2gy)}\,\mathrm dx$, with no mass in it.
2. Beltrami gave $y(1+y'^2) = 2a$ — Snell's law for a bead.
3. Integrated to the cycloid; $B$ fixed $\theta_B = 3.50837$, $a = 0.51720$ m, $T = 0.80556$ s, beating the line ($1.00964$ s) and Galileo's arc ($0.83031$ s).
4. Freed at the end, it lands horizontally: $0.80030$ s to the line $x = 2$ m.
5. Legendre $P > 0$; the dilation field $h = 2 - \theta\cot(\theta/2)$ has no zero before $\theta = 8.9868$; the cycloids through $A$ form a field of extremals, so Weierstrass's theorem (cited) makes it the quickest wire among graphs. Minimum, and it exists.
12 — Newton's equations are the Euler–Lagrange equations of $\int(T-V)\,\mathrm dt$, in any coordinates.
13 — the Beltrami identity and the first integral $F_{y'}$ become one theorem: symmetry gives conservation.
15 — the Snell reading of the cycloid is no accident: mechanics is optics.
26, 32 — proper time is maximised, and geodesics stop minimising at conjugate points: section 5, in spacetime.
11 · checkpoint
You can, on paper and without the deck,
Falsifiable: a derivation that assumes the cycloid, or loses a constant, fails the first; "it satisfies Euler–Lagrange, so it is a minimum" fails the second. Record it with ./mr done 11.
./mr problems 11 — 11 problems, about 6 hours. Hints and worked solutions fold under each problem on the same page.
12 Lagrangian mechanics · 13 Noether · 15 Hamilton–Jacobi, which needs this unit directly · 19 Sturm–Liouville, where the accessory equation returns as an eigenvalue problem.