Chapter 6 · Calculus of Variations

6.1 Functionals and the Euler–Lagrange Equation

Functionals and their first variation, the fundamental lemma, the Euler–Lagrange equation and its first integrals; shortest paths, the brachistochrone and soap films; several functions, higher derivatives and several variables; natural boundary conditions, transversality and isoperimetric problems with Lagrange multipliers.

Calculus finds the points at which a function of finitely many variables is largest or smallest. Many questions in geometry, physics and engineering ask instead for the best function or the best curve: the curve of shortest length joining two points, the profile down which a bead slides fastest, the shape of a soap film stretched between two rings, the path a light ray takes through a medium of varying refractive index, the shape of a hanging chain, the deflection of a loaded beam. In each case a number — a length, a time, an area, an energy — is assigned to every admissible curve, and we want the curve that makes this number extreme. Such a "function of a function" is called a functional, and the calculus of variations is the theory of its extrema.

The central result is Euler's and Lagrange's discovery (1744–1755) that an extremising curve must satisfy a differential equation, the Euler–Lagrange equation. It turns an optimisation problem over an infinite-dimensional set of curves into a boundary value problem for an ODE — exactly the kind of problem studied in Chapters 1–2. This section derives the equation with full proofs, solves the classical problems, extends the method to several unknown functions, higher derivatives and several independent variables, and handles free end points and integral constraints. CSIR NET asks for extremals of given functionals, for first integrals, for natural boundary conditions and for isoperimetric extremals in Part B, and tests the logical status of the Euler–Lagrange equation (necessary, not sufficient; existence can fail) in Part C. The question of when an extremal really is a minimum is the subject of §6.2.

Functionals, Variations and the Fundamental Lemma

Throughout, $[a,b]$ is a compact interval, $C^1[a,b]$ the space of continuously differentiable functions on it, and $F(x,y,p)$ a given function of three variables, the Lagrangian or integrand. We always assume $F$ is of class $C^2$ on an open set containing all the points $(x,y(x),y'(x))$ that occur.

📘 Definition 6.1 — Functional; admissible functions

A functional is a map $J:\mathcal{A}\to\mathbb{R}$ defined on a set $\mathcal{A}$ of functions. The basic functional of the calculus of variations is $$J[y]=\int_a^bF\big(x,y(x),y'(x)\big)\,dx,$$ defined on the class of admissible functions $$\mathcal{A}=\{y\in C^1[a,b]:\ y(a)=A,\ y(b)=B\}$$ (the fixed end-point problem). Functions $\eta\in C^1[a,b]$ with $\eta(a)=\eta(b)=0$ are called variations (admissible increments): if $y\in\mathcal{A}$ then $y+\varepsilon\eta\in\mathcal{A}$ for every real $\varepsilon$.

Examples: the length $\int_a^b\sqrt{1+y'^2}\,dx$ of the graph of $y$; the area $2\pi\int_a^by\sqrt{1+y'^2}\,dx$ of the surface obtained by rotating it about the $x$-axis; the "energy" $\int_a^b(y'^2+12xy)\,dx$.

To speak of local extrema we need a notion of nearness of functions. Two natural norms on $C^1[a,b]$ give two different notions: $$\|y\|_0=\max_{[a,b]}|y|,\qquad \|y\|_1=\max_{[a,b]}|y|+\max_{[a,b]}|y'|.$$

📘 Definition 6.2 — Weak and strong local extrema

A function $y_0\in\mathcal{A}$ is a weak local minimum of $J$ if there is $\delta\gt0$ such that $J[y]\ge J[y_0]$ for all $y\in\mathcal{A}$ with $\|y-y_0\|_1\lt\delta$ (curves close to $y_0$ and with close slopes). It is a strong local minimum if the same holds for all $y\in\mathcal{A}$ with $\|y-y_0\|_0\lt\delta$ (close curves, slopes arbitrary). Maxima are defined by reversing the inequality, and "extremum" means minimum or maximum.

Since $\|y\|_0\le\|y\|_1$, a $\|\cdot\|_1$-ball is contained in the $\|\cdot\|_0$-ball of the same radius, so every strong extremum is a weak extremum; the converse fails (§6.2). Necessary conditions proved for weak extrema therefore apply to both kinds.

📘 Definition 6.3 — First variation
For $y\in\mathcal{A}$ and a variation $\eta$, the first variation of $J$ at $y$ in the direction $\eta$ is $$\delta J[y;\eta]=\frac{d}{d\varepsilon}J[y+\varepsilon\eta]\Big|_{\varepsilon=0}=\int_a^b\Big(F_y\,\eta+F_{y'}\,\eta'\Big)\,dx,$$ where $F_y$, $F_{y'}$ are the partial derivatives $\partial F/\partial y$, $\partial F/\partial p$ evaluated at $(x,y(x),y'(x))$. (Differentiation under the integral sign is legitimate because $F\in C^1$ and $[a,b]$ is compact.) It is the directional (Gâteaux) derivative of $J$, and it is linear in $\eta$.
📐 Theorem 6.1 — The first variation vanishes at an extremum
If $y\in\mathcal{A}$ is a weak (or strong) local extremum of $J$ on $\mathcal{A}$, then $\delta J[y;\eta]=0$ for every variation $\eta$.

Proof. Fix a variation $\eta\ne0$ and put $\varphi(\varepsilon)=J[y+\varepsilon\eta]$. Since $\|(y+\varepsilon\eta)-y\|_1=|\varepsilon|\,\|\eta\|_1$, the functions $y+\varepsilon\eta$ lie in the $\delta$-neighbourhood of Definition 6.2 for $|\varepsilon|\lt\delta/\|\eta\|_1$, and they are admissible. Hence the real function $\varphi$ has a local extremum at $\varepsilon=0$. It is differentiable, so $\varphi'(0)=0$ by Fermat's theorem; and $\varphi'(0)=\delta J[y;\eta]$ by Definition 6.3. ∎

To turn "$\int(F_y\eta+F_{y'}\eta')=0$ for every $\eta$" into a pointwise equation we need two lemmas. They are the engine of the whole subject.

📐 Theorem 6.2 — Fundamental lemma of the calculus of variations (Lagrange)
Let $M\in C[a,b]$ and suppose $\displaystyle\int_a^bM(x)\eta(x)\,dx=0$ for every $\eta\in C^1[a,b]$ with $\eta(a)=\eta(b)=0$. Then $M\equiv0$ on $[a,b]$. The same conclusion holds if the hypothesis is required only for $\eta\in C^k[a,b]$ (any $k$), or only for $\eta\in C^\infty$ vanishing near $a$ and $b$.

Proof. Suppose $M(x_0)\ne0$ for some $x_0$; replacing $M$ by $-M$ we may assume $M(x_0)\gt0$, and by continuity we may take $x_0\in(a,b)$. Again by continuity there is an interval $[x_1,x_2]\subset(a,b)$ around $x_0$ on which $M\gt0$. Let $$\eta(x)=\begin{cases}(x-x_1)^2(x_2-x)^2,& x_1\le x\le x_2,\\0,&\text{otherwise}.\end{cases}$$ Both one-sided derivatives at $x_1$ and $x_2$ are $0$, so $\eta\in C^1[a,b]$, $\eta(a)=\eta(b)=0$, and $\eta\gt0$ on $(x_1,x_2)$. Then $\int_a^bM\eta\,dx=\int_{x_1}^{x_2}M\eta\,dx\gt0$, because the integrand is continuous, nonnegative and positive inside — a contradiction. For $C^k$ use the exponent $k+1$ instead of $2$; for $C^\infty$ use $\eta=\exp\!\big(-1/((x-x_1)(x_2-x))\big)$ on $(x_1,x_2)$ and $0$ outside. ∎

📐 Theorem 6.3 — Lemma of du Bois-Reymond
Let $M\in C[a,b]$ and suppose $\displaystyle\int_a^bM(x)\eta'(x)\,dx=0$ for every $\eta\in C^1[a,b]$ with $\eta(a)=\eta(b)=0$. Then $M$ is constant on $[a,b]$.

Proof. Let $c=\frac1{b-a}\int_a^bM\,dx$ be the mean value of $M$ and choose the particular variation $$\eta(x)=\int_a^x\big(M(t)-c\big)\,dt.$$ It is $C^1$ with $\eta'=M-c$, $\eta(a)=0$, and $\eta(b)=\int_a^bM-c(b-a)=0$. Using the hypothesis and $\int_a^b\eta'\,dx=\eta(b)-\eta(a)=0$, $$\int_a^b(M-c)^2\,dx=\int_a^b(M-c)\,\eta'\,dx=\int_a^bM\eta'\,dx-c\int_a^b\eta'\,dx=0.$$ A continuous nonnegative function with zero integral vanishes identically, so $M\equiv c$. ∎

The Euler–Lagrange Equation and Its First Integrals

📐 Theorem 6.4 — Euler–Lagrange equation

Let $F\in C^2$ and let $y\in\mathcal{A}$ be a weak local extremum of $J[y]=\int_a^bF(x,y,y')\,dx$ on the fixed end-point class $\mathcal{A}$. Then:

  1. (Integrated form.) There is a constant $c$ such that for all $x\in[a,b]$ $$F_{y'}\big(x,y(x),y'(x)\big)=\int_a^xF_y\big(t,y(t),y'(t)\big)\,dt+c.$$
  2. (Euler–Lagrange equation.) Consequently $x\mapsto F_{y'}(x,y,y')$ is $C^1$ and $$F_y-\frac{d}{dx}F_{y'}=0\quad\text{on }[a,b].$$
  3. (Regularity, Hilbert.) If $F_{y'y'}\big(x,y(x),y'(x)\big)\ne0$ for all $x$, then $y\in C^2[a,b]$, and the equation can be written in the expanded second-order form $$F_{y'y'}\,y''+F_{yy'}\,y'+F_{xy'}-F_y=0.$$

Proof. (1) By Theorem 6.1, $\int_a^b(F_y\eta+F_{y'}\eta')\,dx=0$ for every variation $\eta$. Put $G(x)=\int_a^xF_y\,dt$, a $C^1$ function with $G'=F_y$. Integration by parts gives $\int_a^bF_y\eta\,dx=\big[G\eta\big]_a^b-\int_a^bG\eta'\,dx=-\int_a^bG\eta'\,dx$, because $\eta(a)=\eta(b)=0$. Hence $\int_a^b\big(F_{y'}-G\big)\eta'\,dx=0$ for every variation, and $F_{y'}-G$ is continuous. By du Bois-Reymond's lemma (Theorem 6.3), $F_{y'}-G\equiv c$.

(2) The right-hand side $G+c$ of (1) is $C^1$ with derivative $F_y$; therefore so is the left-hand side, and differentiating gives $\frac{d}{dx}F_{y'}=F_y$. Note that we did not assume $y\in C^2$: the existence of $\frac{d}{dx}F_{y'}$ is part of the conclusion.

(3) Fix $x_0$ and consider the equation $\Phi(x,p)=F_{y'}\big(x,y(x),p\big)-G(x)-c=0$. It is satisfied by $p=y'(x)$, and $\partial\Phi/\partial p=F_{y'y'}\ne0$ at $(x_0,y'(x_0))$. Since $\Phi$ is $C^1$ in $(x,p)$ (here $y\in C^1$, $G\in C^1$, $F\in C^2$), the implicit function theorem gives a $C^1$ function $p(x)$ near $x_0$ solving $\Phi=0$, and by uniqueness in the implicit function theorem (and continuity of $y'$) $y'=p$ near $x_0$. So $y'$ is $C^1$, i.e. $y\in C^2$, and expanding $\frac{d}{dx}F_{y'}(x,y,y')$ by the chain rule gives the second-order form. ∎

📘 Definition 6.4 — Extremal
A $C^1$ function satisfying the Euler–Lagrange equation (in the sense of Theorem 6.4(2)) is called an extremal of $J$ — whether or not it satisfies the boundary conditions, and whether or not it is an extremum. The extremals form, in general, a two-parameter family (the equation is of second order when $F_{y'y'}\ne0$); the two end conditions select the candidates for the fixed end-point problem.

Two facts must be kept apart. Theorem 6.4 is a necessary condition: an extremum (if one exists) is an extremal. It says nothing about whether an extremal is an extremum, or whether an extremum exists at all — Example 5 and the ⚠️ box below show that both can fail. Sufficient conditions are developed in §6.2; for many problems a direct argument (as in Example 1) settles the matter.

✏️ Example 1 — A first extremal, and a proof that it minimises
Find the extremal of $J[y]=\displaystyle\int_0^1\big(y'^2+12xy\big)\,dx$ with $y(0)=0$, $y(1)=1$, and prove that it is the unique global minimiser of $J$ on $\mathcal{A}$.
Euler–Lagrange $F=p^2+12xy$, so $F_y=12x$ and $F_{y'}=2y'$. The equation $F_y-\frac{d}{dx}F_{y'}=0$ reads $12x-2y''=0$, i.e. $y''=6x$, whence $y=x^3+c_1x+c_0$.
End conditions $y(0)=0$ gives $c_0=0$; $y(1)=1+c_1=1$ gives $c_1=0$. The only extremal in $\mathcal{A}$ is $y_0=x^3$, with $J[y_0]=\int_0^1(9x^4+12x^4)\,dx=\tfrac{21}{5}$.
Global minimum Every $y\in\mathcal{A}$ is $y_0+\eta$ with $\eta(0)=\eta(1)=0$. Expanding, $$J[y_0+\eta]=J[y_0]+\int_0^1\big(6x^2\eta'+12x\eta\big)dx+\int_0^1\eta'^2\,dx.$$ The middle integral is $\big[6x^2\eta\big]_0^1-\int_0^112x\eta\,dx+\int_0^112x\eta\,dx=0$ (it is $\delta J[y_0;\eta]$, which vanishes because $y_0$ is an extremal). Hence $J[y]=\tfrac{21}5+\int_0^1\eta'^2\,dx\ge\tfrac{21}{5}$, with equality iff $\eta'\equiv0$, i.e. $\eta\equiv0$.
Check Trial curves: $y=x$ gives $J=1+4=5$; $y=x^2$ gives $\tfrac43+3=\tfrac{13}3\approx4.33$. Both exceed $\tfrac{21}{5}=4.2$. Interactive 1 lets you perturb $x^3$ in several directions and watch $J$ increase quadratically.

When the integrand does not involve one of its three arguments the Euler–Lagrange equation can be integrated once. These first integrals are the most-used tools for computing extremals.

📐 Theorem 6.5 — Special cases and first integrals

Let $y\in C^2$ be an extremal of $\int F\,dx$.

  1. $F=F(x,y')$ does not contain $y$: $F_{y'}(x,y')=c$ (a first-order equation).
  2. $F=F(y,y')$ does not contain $x$ (Beltrami identity): $F-y'F_{y'}=c$. Conversely, a $C^2$ solution of $F-y'F_{y'}=c$ satisfies the Euler–Lagrange equation on every interval on which $y'\ne0$.
  3. $F=F(x,y)$ does not contain $y'$: the Euler–Lagrange equation is $F_y(x,y)=0$, an implicit equation for $y$, not a differential equation; in general its solutions do not meet two prescribed end conditions.
  4. $F$ is linear in $y'$, $F=M(x,y)+N(x,y)\,y'$: the Euler–Lagrange equation reduces to $M_y-N_x=0$, again not a differential equation. If $M_y\equiv N_x$ on a rectangle (or any simply connected domain), then $J[y]$ depends only on the end points: every admissible curve is an extremal.
  5. $F=F(y')$ only: $y''\,F''(y')=0$; if $F''\ne0$, the extremals are the straight lines.

Proof. (1) The equation is $\frac{d}{dx}F_{y'}=F_y=0$. (2) For any $C^2$ function $y$, by the chain rule, $$\frac{d}{dx}\big(F-y'F_{y'}\big)=F_x+F_yy'+F_{y'}y''-y''F_{y'}-y'\frac{d}{dx}F_{y'},$$ that is, $$\frac{d}{dx}\big(F-y'F_{y'}\big)=F_x+y'\Big(F_y-\frac{d}{dx}F_{y'}\Big).$$ If $F_x=0$, the left side vanishes along an extremal, which gives the identity. Conversely, if $F-y'F_{y'}$ is constant, then $y'\big(F_y-\frac{d}{dx}F_{y'}\big)=0$, and where $y'\ne0$ the Euler–Lagrange equation follows. (3) is immediate. (4) $F_y=M_y+N_yy'$ and $\frac{d}{dx}F_{y'}=\frac{d}{dx}N(x,y(x))=N_x+N_yy'$, so the equation is $M_y-N_x=0$. If $M_y=N_x$ throughout a simply connected domain, the form $M\,dx+N\,dy$ is exact, $M\,dx+N\,dy=d\Phi$, and $J[y]=\int_a^b\frac{d}{dx}\Phi(x,y(x))\,dx=\Phi(b,B)-\Phi(a,A)$. (5) Here $\frac{d}{dx}F'(y')=F''(y')\,y''=0$; if $F''\ne0$ then $y''=0$. ∎

✏️ Example 2 — Shortest paths and a curved light ray
(a) Show that the extremals of the length functional $\int_a^b\sqrt{1+y'^2}\,dx$ are straight lines, and prove directly that the segment joining $(a,A)$ to $(b,B)$ is shorter than every other $C^1$ graph with the same end points. (b) Light travels in the half-plane $x\gt0$ with speed proportional to $x$, so the travel time along a graph is proportional to $\int\frac{\sqrt{1+y'^2}}{x}\,dx$. Find the extremals, and the one through $(1,0)$ and $(1,2)$.
(a) Extremals $F=\sqrt{1+p^2}$ depends on $p$ only and $F''(p)=(1+p^2)^{-3/2}\gt0$, so by Theorem 6.5(5) $y''=0$: straight lines. Through the two end points there is exactly one, the segment of slope $m=\frac{B-A}{b-a}$.
(a) Minimality By the Cauchy–Schwarz inequality in $\mathbb{R}^2$, $(1,y')\cdot(1,m)\le\sqrt{1+y'^2}\,\sqrt{1+m^2}$, so $$\int_a^b\sqrt{1+y'^2}\,dx\ \ge\ \frac{1}{\sqrt{1+m^2}}\int_a^b(1+m\,y')\,dx.$$ The right side equals $\frac{(b-a)+m(B-A)}{\sqrt{1+m^2}}=(b-a)\sqrt{1+m^2}$, the length of the segment. Equality forces $(1,y')$ parallel to $(1,m)$ at every point, i.e. $y'\equiv m$.
(b) Extremals $F=\sqrt{1+p^2}/x$ does not contain $y$, so $F_{y'}=\dfrac{y'}{x\sqrt{1+y'^2}}=c$ (Theorem 6.5(1)). If $c=0$ we get the horizontal lines $y=$ const. Otherwise square: $y'^2=c^2x^2(1+y'^2)$, so $y'=\pm\dfrac{cx}{\sqrt{1-c^2x^2}}$ and $y=\mp\dfrac{\sqrt{1-c^2x^2}}{c}+d$. That is $$x^2+(y-d)^2=\frac{1}{c^2}:$$ circles centred on the $y$-axis.
(b) Through the points $1+d^2=R^2$ and $1+(2-d)^2=R^2$ give $d=1$, $R^2=2$: the ray follows the arc of $x^2+(y-1)^2=2$ in $x\gt0$, bulging away from the slow region near $x=0$ — exactly what Fermat's principle of least time predicts.
✏️ Example 3 — The brachistochrone
A bead slides without friction, starting from rest at the origin, along a wire in a vertical plane to a lower point $B=(x_B,y_B)$ (we measure $y$ downwards, $x_B,y_B\gt0$). Find the shape of wire that minimises the travel time, and compute the time for $B=(\pi,2)$ (metres, $g=9.81\ \text{m/s}^2$).
The functional Energy conservation gives $\tfrac12v^2=gy$, so $v=\sqrt{2gy}$. Along the graph $ds=\sqrt{1+y'^2}\,dx$ and $dt=ds/v$: $$T[y]=\frac{1}{\sqrt{2g}}\int_0^{x_B}\frac{\sqrt{1+y'^2}}{\sqrt y}\,dx,\qquad y(0)=0,\ y(x_B)=y_B.$$ (The integrand is singular at $x=0$, but the integral converges for the curves of interest.)
Beltrami $F=\sqrt{1+p^2}/\sqrt y$ does not contain $x$. With $F_{y'}=\dfrac{y'}{\sqrt y\sqrt{1+y'^2}}$, Theorem 6.5(2) gives $$F-y'F_{y'}=\frac{1}{\sqrt y\,\sqrt{1+y'^2}}=\text{const},$$ that is, $y\,(1+y'^2)=2a$ for a constant $a\gt0$.
Solving Put $y'=\cot(\theta/2)$. Then $1+y'^2=1/\sin^2(\theta/2)$ and $y=2a\sin^2(\theta/2)=a(1-\cos\theta)$. Also $dx=dy/y'=a\sin\theta\tan(\theta/2)\,d\theta$, that is, $dx=a(1-\cos\theta)\,d\theta$. Starting at the origin ($\theta=0$): $$x=a(\theta-\sin\theta),\qquad y=a(1-\cos\theta).$$ This is a cycloid, the path of a point on the rim of a wheel of radius $a$ rolling along the underside of the $x$-axis.
Fitting $B$ We need $\frac{\theta_B-\sin\theta_B}{1-\cos\theta_B}=\frac{x_B}{y_B}$. The left side increases from $0$ to $\infty$ on $(0,2\pi)$, so $\theta_B$ is unique, and then $a=y_B/(1-\cos\theta_B)$. On the cycloid $ds=2a\sin(\theta/2)\,d\theta$ and $v=2\sqrt{ga}\,\sin(\theta/2)$, so $dt=\sqrt{a/g}\,d\theta$ and $T=\theta_B\sqrt{a/g}$.
$B=(\pi,2)$ The ratio $\pi/2$ is attained at $\theta_B=\pi$, so $a=1$ and $T=\pi/\sqrt{9.81}\approx1.003\ \text{s}$. For comparison, the straight wire takes $\sqrt{\pi^2+4}\,\sqrt{2/(9.81\cdot2)}\approx1.189\ \text{s}$ and the parabola $x=\pi y^2/4$ about $1.013\ \text{s}$ (numerical integration). The chapter-intro teaser races these beads.
A surprise If $x_B/y_B\gt\pi/2$ then $\theta_B\gt\pi$: the fastest wire dips below $B$ and climbs back up to it — the extra speed gained by falling further outweighs the extra length.
✏️ Example 4 — The minimal surface of revolution (soap film between two rings)
Two coaxial rings of radius $h$ are placed at $x=\pm a$. Among $C^1$ curves $y\gt0$ with $y(\pm a)=h$, find the extremals of the area $S[y]=2\pi\int_{-a}^ay\sqrt{1+y'^2}\,dx$ of the surface of revolution. For which $h/a$ do they exist? Compare the areas for $a=1$, $h=2$.
Beltrami $F=y\sqrt{1+p^2}$ has no $x$, and $$F-y'F_{y'}=y\sqrt{1+y'^2}-\frac{yy'^2}{\sqrt{1+y'^2}}=\frac{y}{\sqrt{1+y'^2}}=c\gt0.$$ Then $y'=\pm\sqrt{y^2-c^2}/c$, and separating variables, $\operatorname{arccosh}(y/c)=\pm(x-d)/c$: $$y=c\cosh\frac{x-d}{c}\qquad\text{(a catenary; the surface is a catenoid).}$$
End conditions $y(-a)=y(a)$ gives $\cosh\frac{a+d}{c}=\cosh\frac{a-d}{c}$, so $|a+d|=|a-d|$ and $d=0$. The remaining condition $c\cosh(a/c)=h$ becomes, with $t=a/c$, $$\frac{\cosh t}{t}=\frac{h}{a}.$$ The function $g(t)=\cosh t/t$ tends to $\infty$ as $t\to0^+$ and as $t\to\infty$; $g'(t)=0$ iff $t\tanh t=1$, i.e. $t^*\approx1.1997$, where $g(t^*)\approx1.5089$.
Count If $h/a\gt1.5089$ there are two catenaries (a shallow one with $t\lt t^*$ and a deep one with $t\gt t^*$); if $h/a=1.5089$ exactly one; if $h/a\lt1.5089$ none — no smooth surface of revolution is stationary, and a real soap film breaks.
$a=1$, $h=2$ Solving $\cosh t=2t$: $t\approx0.5894$ ($c\approx1.6967$) and $t\approx2.1268$ ($c\approx0.4702$). The area of a catenoid is $S=\pi c\,\big(2a+c\sinh(2a/c)\big)$, giving $S\approx23.97$ (shallow) and $S\approx27.38$ (deep). Two flat discs (the Goldschmidt solution, not a graph of a $C^1$ function) have area $2\pi h^2\approx25.13$. So the shallow catenoid is the best of the three; the deep one is an extremal that is not a minimum (Interactive 1 shows the area decreasing for some perturbations of a deep catenary), and for $h/a$ between $1.5089$ and about $1.8950$ even the shallow catenoid has more area than the two discs, so it is then only a local minimum.
Interactive 1 — Extremal versus Trial Curves: the First Variation Vanishes

Left: the extremal $y_0$ (black) and the trial curve $y_0+\varepsilon\eta$ for a chosen direction $\eta$ (vanishing at both ends). Right: the function $\varphi(\varepsilon)=J[y_0+\varepsilon\eta]-J[y_0]$. Because $y_0$ satisfies the Euler–Lagrange equation, $\varphi'(0)=\delta J[y_0;\eta]=0$ in every direction — the graph always has a horizontal tangent at $\varepsilon=0$. Whether $0$ is a minimum of $\varphi$ is a different question: try the deep catenary.

ε—
J[y₀]—
J[y₀ + εη]—
φ′(0) (numerical)—
φ″(0)—
✏️ Example 5 — Prove or disprove: an extremum always exists, and the Euler–Lagrange equation always finds it
(a) Let $J[y]=\int_{-1}^1x^2y'^2\,dx$ with $y(-1)=-1$, $y(1)=1$ (Weierstrass's example). Show that $\inf J=0$ but that no $y\in C^1[-1,1]$ attains it. (b) Let $J[y]=\int_0^\pi(y'^2-y^2)\,dx$. Find all extremals with $y(0)=0$, $y(\pi)=1$, and all with $y(0)=0$, $y(\pi)=0$.
(a) inf = 0 Clearly $J\ge0$. For $\varepsilon\gt0$ let $y_\varepsilon=\dfrac{\arctan(x/\varepsilon)}{\arctan(1/\varepsilon)}$, which is admissible. Then $y_\varepsilon'=\dfrac{\varepsilon}{(\varepsilon^2+x^2)\arctan(1/\varepsilon)}$ and, using $\dfrac{x^2}{\varepsilon^2+x^2}\le1$, $$J[y_\varepsilon]\le\frac{1}{\arctan^2(1/\varepsilon)}\int_{-1}^1\frac{\varepsilon^2}{\varepsilon^2+x^2}\,dx=\frac{2\varepsilon}{\arctan(1/\varepsilon)}\to0.$$
(a) Not attained If $J[y]=0$ then $x^2y'^2\equiv0$ (continuous, nonnegative, zero integral), so $y'=0$ for $x\ne0$ and, by continuity of $y'$, everywhere: $y$ is constant — impossible with $y(-1)=-1$, $y(1)=1$. The Euler–Lagrange equation $(x^2y')'=0$ gives $y=-k/x+d$, which has no $C^1$ member through both points. The culprit is $F_{y'y'}=2x^2$, which vanishes at $x=0$: the minimising sequence concentrates its slope where steepness costs nothing.
(b) $F=p^2-y^2$: $-2y-2y''=0$, so $y=A\cos x+B\sin x$. With $y(0)=0$, $A=0$; then $y(\pi)=B\sin\pi=0$. So for $y(\pi)=1$ there is no extremal at all, while for $y(\pi)=0$ every $B\sin x$ is an extremal. (In §6.2 we will see that $x=\pi$ is a conjugate point of $x=0$ for this functional. Equivalently, $1$ is the first Dirichlet eigenvalue of $y''+\lambda y=0$ on $[0,\pi]$ (§2.3), and the Fredholm alternative of §2.4 explains the dichotomy.)
Moral The Euler–Lagrange equation produces candidates. A complete solution of a variational problem must also address existence (is the infimum attained?) and sufficiency (is the candidate a minimum?).
🧭 Problem-solving strategy — finding extremals
  1. Read off $F(x,y,p)$ and look for a missing variable: no $y$ ⇒ $F_{y'}=c$; no $x$ ⇒ Beltrami $F-y'F_{y'}=c$ (watch for spurious constant solutions); no $y'$ or $F$ linear in $y'$ ⇒ not a differential equation.
  2. Otherwise write $F_y-\frac{d}{dx}F_{y'}=0$; for quadratic integrands it is a linear second-order ODE — use Chapter 2. Terms such as $2yy'$ or $g(x)y'+g'(x)y$ are exact derivatives and drop out.
  3. Impose the boundary conditions: fixed values; natural conditions $F_{y'}=0$ at free ends; transversality on a curve; and, with a constraint $\int G=\ell$, replace $F$ by $F+\lambda G$ and use the constraint to find $\lambda$.
  4. Decide whether the candidate is a minimum: direct expansion $J[y_0+\eta]-J[y_0]$, convexity, or the Legendre and Jacobi conditions of §6.2.

Several Functions, Higher Derivatives and Several Variables

📐 Theorem 6.6 — Several unknown functions
Let $$J[y_1,\dots,y_n]=\int_a^bF\big(x,y_1,\dots,y_n,y_1',\dots,y_n'\big)\,dx$$ with all values $y_i(a)$, $y_i(b)$ prescribed and $F\in C^2$. If $(y_1,\dots,y_n)$ is a weak extremum, then it satisfies the system $$F_{y_i}-\frac{d}{dx}F_{y_i'}=0,\qquad i=1,\dots,n.$$ If $F$ does not contain $x$, then $F-\sum_iy_i'F_{y_i'}$ is constant along $C^2$ extremals.

Proof. Vary one function at a time: for fixed $i$ and a variation $\eta$, the function $\varepsilon\mapsto J[y_1,\dots,y_i+\varepsilon\eta,\dots,y_n]$ has a local extremum at $0$, and the proof of Theorem 6.4 applies verbatim to the $i$-th component. The first integral follows from $\frac{d}{dx}\big(F-\sum y_i'F_{y_i'}\big)=F_x+\sum_iy_i'\big(F_{y_i}-\frac{d}{dx}F_{y_i'}\big)$, exactly as in Theorem 6.5(2). ∎

With $x$ renamed $t$ and $F=L=T-V$ (kinetic minus potential energy) these are Lagrange's equations of motion, and the first integral is the energy; Hamilton's principle (§8.2) states that the motion of a mechanical system makes $\int L\,dt$ stationary. Curves that are not graphs are handled the same way in parametric form $\big(x(t),y(t)\big)$, with $J=\int G(x,y,\dot x,\dot y)\,dt$ and two Euler–Lagrange equations; for the answer to be independent of the parametrisation, $G$ must be positively homogeneous of degree $1$ in $(\dot x,\dot y)$, as the length integrand $\sqrt{\dot x^2+\dot y^2}$ is.

📐 Theorem 6.7 — Higher derivatives: the Euler–Poisson equation
Let $J[y]=\displaystyle\int_a^bF\big(x,y,y',\dots,y^{(n)}\big)\,dx$ with $F\in C^{n+1}$, and prescribe $y,y',\dots,y^{(n-1)}$ at both $a$ and $b$. If $y\in C^{2n}[a,b]$ is a weak extremum, then $$F_y-\frac{d}{dx}F_{y'}+\frac{d^2}{dx^2}F_{y''}-\cdots+(-1)^n\frac{d^n}{dx^n}F_{y^{(n)}}=0.$$ This is an ODE of order $2n$, matching the $2n$ boundary conditions.

Proof (for $n=2$; the general case is identical). Admissible variations satisfy $\eta(a)=\eta'(a)=\eta(b)=\eta'(b)=0$, and $\delta J=\int_a^b\big(F_y\eta+F_{y'}\eta'+F_{y''}\eta''\big)dx=0$. Integrate the second term by parts once and the third twice: $$\int_a^bF_{y'}\eta'=\Big[F_{y'}\eta\Big]_a^b-\int_a^b\big(F_{y'}\big)'\eta,$$ $$\int_a^bF_{y''}\eta''=\Big[F_{y''}\eta'-\big(F_{y''}\big)'\eta\Big]_a^b+\int_a^b\big(F_{y''}\big)''\eta.$$ All boundary terms vanish, so $\int_a^b\big(F_y-(F_{y'})'+(F_{y''})''\big)\eta\,dx=0$ for every such $\eta$. The fundamental lemma (Theorem 6.2, in its $C^2$ form with the bump vanishing to second order) gives the equation. ∎

📐 Theorem 6.8 — Several independent variables (Ostrogradsky)
Let $\Omega\subset\mathbb{R}^2$ be a bounded domain with piecewise smooth boundary, and $J[u]=\displaystyle\iint_\Omega F(x,y,u,u_x,u_y)\,dx\,dy$ with $u=g$ prescribed on $\partial\Omega$ and $F\in C^2$. If $u\in C^2(\overline\Omega)$ is a weak extremum, then $$F_u-\frac{\partial}{\partial x}F_{u_x}-\frac{\partial}{\partial y}F_{u_y}=0\quad\text{in }\Omega.$$

Proof. For $\eta\in C^1(\overline\Omega)$ vanishing on $\partial\Omega$, $\delta J=\iint_\Omega\big(F_u\eta+F_{u_x}\eta_x+F_{u_y}\eta_y\big)=0$. The divergence theorem applied to the vector field $\eta\,(F_{u_x},F_{u_y})$ gives $$\iint_\Omega\big(F_{u_x}\eta_x+F_{u_y}\eta_y\big)=\oint_{\partial\Omega}\eta\,\big(F_{u_x}n_1+F_{u_y}n_2\big)\,ds-\iint_\Omega\eta\Big(\frac{\partial F_{u_x}}{\partial x}+\frac{\partial F_{u_y}}{\partial y}\Big),$$ and the boundary integral is $0$. So $\iint_\Omega\big(F_u-\partial_xF_{u_x}-\partial_yF_{u_y}\big)\eta=0$ for all such $\eta$, and the two-dimensional fundamental lemma (same proof, with a bump $\big(r_0^2-|{\bf x}-{\bf x}_0|^2\big)^2$ on a small disc) finishes. ∎

Dirichlet integral$\iint(u_x^2+u_y^2)$ gives $-2u_{xx}-2u_{yy}=0$: Laplace's equation $\Delta u=0$ (§4.2).
With a source$\iint(u_x^2+u_y^2+2fu)$ gives Poisson's equation $\Delta u=f$ — the starting point of the Dirichlet principle in §6.2.
Minimal surfaces$\iint\sqrt{1+|\nabla u|^2}$ gives the minimal surface equation $\operatorname{div}\dfrac{\nabla u}{\sqrt{1+|\nabla u|^2}}=0$, nonlinear and elliptic (expanded in Exercise III.9).
Vibrating string$\iint\tfrac12(\rho u_t^2-\tau u_x^2)\,dx\,dt$ gives $\rho u_{tt}=\tau u_{xx}$, the wave equation (§4.3).
✏️ Example 6 — A clamped beam, and a free end
(a) Minimise the bending energy $J[y]=\int_0^1y''^2\,dx$ with $y(0)=0$, $y'(0)=0$, $y(1)=1$, $y'(1)=0$, and prove your answer is the global minimum. (b) Minimise $J[y]=\int_0^1(y'^2+y^2)\,dx$ over $C^1$ functions with $y(0)=1$ and $y(1)$ free (Theorem 6.9 below).
(a) Euler–Poisson $F=y''^2$: $F_y=F_{y'}=0$ and $F_{y''}=2y''$, so the equation is $(2y'')''=0$, i.e. $y''''=0$: $y$ is a cubic. $y(0)=y'(0)=0$ leaves $y=\alpha x^2+\beta x^3$; then $\alpha+\beta=1$ and $2\alpha+3\beta=0$ give $\alpha=3$, $\beta=-2$: $$y_0=3x^2-2x^3,\qquad J[y_0]=\int_0^1(6-12x)^2\,dx=12.$$
(a) Minimality For $\eta$ with $\eta=\eta'=0$ at both ends, $J[y_0+\eta]=J[y_0]+2\int_0^1y_0''\eta''+\int_0^1\eta''^2$. Integrating by parts twice, $\int y_0''\eta''=\big[y_0''\eta'-y_0'''\eta\big]_0^1+\int y_0''''\eta=0$. So $J[y_0+\eta]=12+\int\eta''^2\ge12$, with equality iff $\eta''\equiv0$, which with the end conditions forces $\eta\equiv0$.
(b) Extremals $F=p^2+y^2$: $2y-2y''=0$, $y=A\cosh x+B\sinh x$, and $y(0)=1$ gives $A=1$. The natural boundary condition $F_{y'}(1)=2y'(1)=0$ gives $\sinh1+B\cosh1=0$, so $$y_0=\cosh x-\tanh1\,\sinh x=\frac{\cosh(1-x)}{\cosh 1}.$$
(b) Value Integrating $y'^2$ by parts and using $y''=y$: $J[y_0]=\big[y_0y_0'\big]_0^1=-y_0'(0)=\tanh1\approx0.7616$. The same expansion as in Example 1 gives $J[y_0+\eta]=J[y_0]+\int(\eta'^2+\eta^2)$ for every $\eta$ with $\eta(0)=0$ — the boundary term $2y_0'(1)\eta(1)$ vanishes precisely because of the natural condition — so $y_0$ is the global minimum.

Natural Boundary Conditions and Variable End Points

If the value of $y$ at an end point is not prescribed, the class of competitors is larger, so the minimiser must satisfy an extra condition there. Remarkably, this condition comes out of the variational principle itself.

📐 Theorem 6.9 — Natural boundary conditions

Let $J[y]=\displaystyle\int_a^bF(x,y,y')\,dx+\Gamma\big(y(b)\big)$ with $F\in C^2$, $\Gamma\in C^1$, on the class $\{y\in C^1[a,b]: y(a)=A\}$ ($y(b)$ free). If $y\in C^2$ is a weak extremum, then $y$ satisfies the Euler–Lagrange equation and the natural boundary condition $$F_{y'}\big(b,y(b),y'(b)\big)+\Gamma'\big(y(b)\big)=0.$$ In particular, without the boundary term ($\Gamma=0$): $F_{y'}=0$ at a free end. The same holds at $x=a$ (with $+\Gamma'$ replaced by $-\Gamma'$ for a term $\Gamma(y(a))$). For the Euler–Poisson problem with $y(b)$ and $y'(b)$ both free the natural conditions are $F_{y''}=0$ and $F_{y'}-\frac{d}{dx}F_{y''}=0$ at $b$.

Proof. Now every $\eta\in C^1$ with $\eta(a)=0$ is an admissible variation, and $$\delta J=\int_a^b\Big(F_y-\frac{d}{dx}F_{y'}\Big)\eta\,dx+F_{y'}(b)\,\eta(b)+\Gamma'(y(b))\,\eta(b)=0,$$ after integrating $F_{y'}\eta'$ by parts (the term at $a$ vanishes). First take variations with $\eta(b)=0$ as well: the fundamental lemma gives the Euler–Lagrange equation. Then the integral is $0$ for every $\eta$, and choosing one with $\eta(b)=1$ gives the stated condition. The Euler–Poisson case is the same computation with the two boundary terms of the proof of Theorem 6.7. ∎

For the "energy" $\int(py'^2+qy^2)$ the natural condition $F_{y'}=2py'=0$ is the Neumann condition, and a boundary term $\Gamma=\sigma y(b)^2$ produces the Robin condition $p(b)y'(b)+\sigma y(b)=0$: the Neumann and Robin conditions of the Sturm–Liouville problems of §2.3 are exactly the ones a variational principle imposes "for free". Engineers call prescribed conditions essential and the ones that come from minimisation natural; the distinction is crucial in the Rayleigh–Ritz method of §6.2.

📐 Theorem 6.10 — End point on a curve: the transversality condition

Let the left end $(a,A)$ be fixed and let the right end be required to lie on the curve $y=\varphi(x)$, $\varphi\in C^1$, the abscissa $b$ being free. If $y\in C^2$ is an extremum (among curves $y$ on $[a,b]$ with $y(b)=\varphi(b)$, $b$ varying), then $y$ is an extremal and at $x=b$ $$F+\big(\varphi'-y'\big)F_{y'}=0.$$

  • End point on a vertical line $x=b$ (only $y(b)$ free): $F_{y'}=0$, the natural condition.
  • End point on a horizontal line ($\varphi'=0$): $F-y'F_{y'}=0$.
  • For $F=f(x,y)\sqrt{1+y'^2}$ with $f\ne0$: $y'(b)\,\varphi'(b)=-1$, i.e. the extremal meets the curve orthogonally.

Proof (sketch). Extend $y$ to a $C^2$ function slightly beyond $b$ and consider competitors $y+\varepsilon\eta$ on $[a,b(\varepsilon)]$ with $\eta(a)=0$, $b(0)=b$ and $y(b(\varepsilon))+\varepsilon\eta(b(\varepsilon))=\varphi(b(\varepsilon))$. Differentiating $J(\varepsilon)=\int_a^{b(\varepsilon)}F(x,y+\varepsilon\eta,y'+\varepsilon\eta')\,dx$ at $\varepsilon=0$ and integrating by parts, $$J'(0)=F\big|_{b}\,b'(0)+\int_a^b\Big(F_y-\frac{d}{dx}F_{y'}\Big)\eta\,dx+F_{y'}\big|_b\,\eta(b).$$ Variations with $b'(0)=0$, $\eta(b)=0$ give the Euler–Lagrange equation. Differentiating the end condition gives $y'(b)b'(0)+\eta(b)=\varphi'(b)b'(0)$, so $\eta(b)=(\varphi'-y')b'(0)$, and $J'(0)=\big[F+(\varphi'-y')F_{y'}\big]_b\,b'(0)=0$ with $b'(0)$ arbitrary. For $F=fw$, $w=\sqrt{1+p^2}$, $F_{y'}=fp/w$, the condition reads $f\big(w^2+(\varphi'-p)p\big)/w=f(1+\varphi'p)/w=0$. ∎

For instance, the shortest path from a point to a curve is the normal line through the point, and the fastest descent from the origin to a vertical line $x=b$ is the cycloid that meets the line horizontally (Exercise III.8). A free initial point is handled the same way.

Isoperimetric Problems and Lagrange Multipliers

Queen Dido, according to Virgil, was allowed as much land as she could enclose with an ox-hide; cutting it into a thin strip, she had to choose the shape of greatest area for a curve of given length. Problems in which a functional is extremised subject to another functional being held fixed are called isoperimetric ("same perimeter").

📘 Definition 6.5 — Isoperimetric problem
Extremise $J[y]=\displaystyle\int_a^bF(x,y,y')\,dx$ over $y\in C^1[a,b]$ with $y(a)=A$, $y(b)=B$ and the integral constraint $K[y]=\displaystyle\int_a^bG(x,y,y')\,dx=\ell$, where $\ell$ is a given number. Pointwise constraints such as $\phi(x,y,z)=0$ for problems with two unknown functions (curves on a surface) are called holonomic or finite constraints.
📐 Theorem 6.11 — Euler's multiplier rule
Let $F,G\in C^2$ and let $y\in C^2[a,b]$ be a weak extremum of the isoperimetric problem of Definition 6.5. If $y$ is not an extremal of $K$, then there is a constant $\lambda$ such that $y$ is an extremal of $\int(F+\lambda G)\,dx$: $$\big(F+\lambda G\big)_y-\frac{d}{dx}\big(F+\lambda G\big)_{y'}=0.$$ The two constants of integration and $\lambda$ are determined by $y(a)=A$, $y(b)=B$ and $K[y]=\ell$.

Proof. Write $E_F$ and $E_G$ for the Euler–Lagrange expressions $F_y-\frac{d}{dx}F_{y'}$, $G_y-\frac{d}{dx}G_{y'}$ evaluated along $y$; both are continuous, and for every variation $\eta$, $\delta J[y;\eta]=\int E_F\eta$, $\delta K[y;\eta]=\int E_G\eta$ (integration by parts). Since $y$ is not an extremal of $K$, $E_G\not\equiv0$, and by the fundamental lemma there is a variation $\eta_2$ with $\delta K[y;\eta_2]\ne0$. Fix it, take an arbitrary variation $\eta_1$, and set $$\Phi(\varepsilon_1,\varepsilon_2)=J[y+\varepsilon_1\eta_1+\varepsilon_2\eta_2],\qquad\Psi(\varepsilon_1,\varepsilon_2)=K[y+\varepsilon_1\eta_1+\varepsilon_2\eta_2]-\ell.$$ Both are $C^1$ near $(0,0)$, $\Psi(0,0)=0$ and $\partial_{\varepsilon_2}\Psi(0,0)=\delta K[y;\eta_2]\ne0$. By the implicit function theorem the constraint $\Psi=0$ defines a $C^1$ curve $\varepsilon_2=\gamma(\varepsilon_1)$ through $0$, and along it the functions $y+\varepsilon_1\eta_1+\gamma(\varepsilon_1)\eta_2$ are admissible and close to $y$ in $\|\cdot\|_1$. So $\varepsilon_1\mapsto\Phi(\varepsilon_1,\gamma(\varepsilon_1))$ has a local extremum at $0$, and the Lagrange multiplier rule for functions of two variables gives a $\lambda$ with $\nabla\Phi(0,0)+\lambda\nabla\Psi(0,0)=0$. Its second component shows $\lambda=-\delta J[y;\eta_2]/\delta K[y;\eta_2]$ — a number that does not depend on $\eta_1$. The first component is $\delta J[y;\eta_1]+\lambda\,\delta K[y;\eta_1]=\int(E_F+\lambda E_G)\eta_1=0$, valid for every $\eta_1$; the fundamental lemma gives $E_F+\lambda E_G\equiv0$. ∎

With several constraints $\int G_k=\ell_k$ one uses $F+\sum\lambda_kG_k$ (and the regularity hypothesis becomes linear independence of the $E_{G_k}$). For a holonomic constraint $\phi(x,y,z)=0$ the multiplier becomes a function $\lambda(x)$, and one writes the Euler–Lagrange equations of $F+\lambda(x)\phi$ for $y$ and $z$; this is how geodesics on a surface are found (great circles on a sphere).

✏️ Example 7 — Dido's problem, and an eigenvalue in disguise
(a) Among curves $y\ge0$ with $y(\pm1)=0$ and length $\ell$ ($2\lt\ell\le\pi$), find the extremals of the enclosed area $\int_{-1}^1y\,dx$. (b) Find the minimum of $\int_0^\pi y'^2\,dx$ subject to $\int_0^\pi y^2\,dx=1$, $y(0)=y(\pi)=0$, and deduce Wirtinger's inequality.
(a) Multiplier $F=y$, $G=\sqrt{1+y'^2}$. The extremals of $G$ alone are straight lines, and the only line through $(\pm1,0)$ has length $2\ne\ell$, so Theorem 6.11 applies to $H=y+\lambda\sqrt{1+y'^2}$, which has no $x$. Beltrami: $$H-y'H_{y'}=y+\frac{\lambda}{\sqrt{1+y'^2}}=c.$$
(a) Circles So $(y-c)^2(1+y'^2)=\lambda^2$. Differentiating $(x-d)^2+(y-c)^2=\lambda^2$ shows that its arcs satisfy exactly this equation, and conversely solving for $y'$ and separating variables gives these arcs: the extremals are circular arcs of radius $|\lambda|$. Symmetry of the end points gives $d=0$; $\lambda$ and $c$ are fixed by $y(\pm1)=0$ and the length.
(a) Example For $\ell=\pi$ the arc is the semicircle $y=\sqrt{1-x^2}$, $|\lambda|=1$, with area $\pi/2\approx1.571$; a parabola of the same length encloses only about $1.49$ (Interactive 2). The multiplier has a meaning: $|\lambda|=R$ and $dA/d\ell=R$ — enlarging the rope by $d\ell$ gains area $R\,d\ell$.
(b) $H=y'^2+\lambda y^2$ gives $y''-\lambda y=0$; writing $\lambda=-\mu$, $y''+\mu y=0$ with $y(0)=y(\pi)=0$ has nonzero solutions only for $\mu=n^2$, $y=\sqrt{2/\pi}\,\sin nx$ (normalised). For these $\int y'^2=n^2\int y^2=n^2$, so the candidates give the values $1,4,9,\dots$, and the minimum (which exists by the minimum principle for the Rayleigh quotient, §2.3) is $1$. Scaling any admissible $y\ne0$ to $\int y^2=1$: Wirtinger's inequality $\int_0^\pi y'^2\,dx\ge\int_0^\pi y^2\,dx$ for $y(0)=y(\pi)=0$, with equality only for $y=c\sin x$. The multiplier is minus an eigenvalue: isoperimetric problems with quadratic $F$ and $G$ are Sturm–Liouville eigenvalue problems.
Interactive 2 — Dido's Problem: Same Rope, Different Areas

Four curves join $(-1,0)$ to $(1,0)$ and all have the same length $\ell$: a circular arc, a parabola, a triangle and a rectangular box. The bars compare the areas they enclose with the $x$-axis. Drag $\ell$ (or press Play): the circular arc — the extremal of the isoperimetric problem, with radius $R=|\lambda|$ — always wins, and the ranking of the others can change.

2.60
circle area—
parabola—
triangle—
box—
radius R = |λ|—
⚠️ Counterexamples and pitfalls
  1. An extremal need not be an extremum. $y\equiv0$ is an extremal of $\int_0^{2\pi}(y'^2-y^2)\,dx$ with $y(0)=y(2\pi)=0$, but $y=t\sin(x/2)$ gives $J=t^2\big(\tfrac{\pi}{4}-\pi\big)\to-\infty$: no minimum at all. The deep catenary is an extremal that is not a minimum either.
  2. An extremum need not exist even when $J$ is bounded below and $F$ is smooth: Weierstrass's $\int_{-1}^1x^2y'^2\,dx$ (Example 5); the soap film when $h/a\lt1.5089$.
  3. Extremals with given end points may not exist or may not be unique. $\int_0^\pi(y'^2-y^2)$: no extremal with $y(0)=0$, $y(\pi)=1$; infinitely many with $y(\pi)=0$.
  4. Integrands linear in $y'$ give no differential equation. $\int_0^1(y^2+2xyy')\,dx=y(1)^2$ for every admissible curve: $M_y-N_x=2y-2y=0$ identically, so every curve is an extremal and $J$ is constant.
  5. Exact derivatives do not change the extremals. Adding $2yy'=(y^2)'$ or $\frac{d}{dx}\Phi(x,y)$ to $F$ changes $J$ by a constant (fixed ends) and leaves the Euler–Lagrange equation unchanged — but it does change natural boundary conditions at a free end.
  6. Beltrami's identity can introduce spurious solutions. For $F=y\sqrt{1+y'^2}$, $y\equiv0$ satisfies $F-y'F_{y'}=y/\sqrt{1+y'^2}=0$, but $F_y-\frac{d}{dx}F_{y'}=1\ne0$ there. Beltrami is equivalent to Euler–Lagrange only where $y'\ne0$ (and only when $F_x=0$).
  7. Only free ends get natural conditions. Impose $F_{y'}=0$ at an end where $y$ is prescribed and you over-determine the problem; forget it at a free end and you under-determine it.
  8. The multiplier rule needs a regular constraint. If $y$ is an extremal of $K$ the rule can fail: with $K[y]=\int_0^1\sqrt{1+y'^2}=1$, $y(0)=y(1)=0$, the only admissible curve is $y\equiv0$; it minimises (and maximises) $J=\int_0^1y\,dx$ trivially, although it is not an extremal of $J+\lambda K$ for any $\lambda$ (the Euler–Lagrange expression of $y+\lambda\sqrt{1+y'^2}$ at $y\equiv0$ is $1$).
  9. Euler–Poisson needs twice as many conditions. For $\int F(x,y,y',y'')$ prescribe $y$ and $y'$ at both ends (or use the two natural conditions); two conditions in total do not determine a solution of the fourth-order equation.
  10. The fastest path is not the shortest, and may dip below the target. The brachistochrone to $B$ with $x_B/y_B\gt\pi/2$ goes below $B$.
  11. A minimiser among smooth curves may be "broken". For $\int_0^1(y'^2-1)^2\,dx$, $y(0)=y(1)=0$, the smooth extremal $y\equiv0$ gives $J=1$, but the zigzag with slopes $\pm1$ gives $J=0$, and $C^1$ curves come arbitrarily close to $0$ (Exercise II.7).

Exercises

I
Euler–Lagrange equations and extremals. In 1–5 and 7 find the extremal satisfying the boundary conditions.
  • 1 $\int_0^1(y'^2+2xy)\,dx$, $y(0)=0$, $y(1)=1$.
  • 2 $\int_0^{\pi/2}(y'^2-y^2)\,dx$, $y(0)=0$, $y(\pi/2)=1$.
  • 3 $\int_0^1\big(y'^2+y^2+2ye^x\big)\,dx$, $y(0)=0$, $y(1)=e/2$.
  • 4 $\int_1^2(x^2y'^2+6y^2)\,dx$, $y(1)=1$, $y(2)=4$.
  • 5 $\int_1^2\dfrac{y'^2}{x^3}\,dx$, $y(1)=0$, $y(2)=15$.
  • 6 Show that every $C^1$ function is an extremal of $\int_0^1(y^2+2xyy')\,dx$, and compute $J[y]$ in terms of the end values. Why is there no contradiction with Theorem 6.4?
  • 7 $\int_0^1(xy'+y'^2)\,dx$, $y(0)=y(1)=0$.
  • 8 Prove that the extremals of $\int f(x,y)\sqrt{1+y'^2}\,dx$ ($f\gt0$) satisfy $f\,y''=(1+y'^2)\big(f_y-y'f_x\big)$.
1 $2x-2y''=0$, $y=\tfrac{x^3}{6}+c_1x+c_0$; $c_0=0$ and $\tfrac16+c_1=1$: $y=\dfrac{x^3+5x}{6}$.
2 $-2y-2y''=0$, $y=A\cos x+B\sin x$; $A=0$, $B=1$: $y=\sin x$. (Unique, because $\sin(\pi/2)\ne0$.)
3 $2y+2e^x-2y''=0$, i.e. $y''-y=e^x$. A particular solution is $\tfrac12xe^x$ (resonance, §2.2), so $y=A\cosh x+B\sinh x+\tfrac12xe^x$; $y(0)=0$ gives $A=0$ and $y(1)=B\sinh1+\tfrac e2=\tfrac e2$ gives $B=0$: $y=\tfrac12xe^x$.
4 $12y-2(x^2y')'=0$: $x^2y''+2xy'-6y=0$ (Euler–Cauchy). $y=x^m$: $m^2+m-6=0$, $m=2,-3$. $y=Ax^2+Bx^{-3}$ with $A+B=1$, $4A+B/8=4$: $A=1$, $B=0$, so $y=x^2$.
5 No $y$: $F_{y'}=2y'/x^3=$ const, $y'=kx^3$, $y=\tfrac k4x^4+d$. $y(1)=0$, $y(2)=15$: $\tfrac{15k}{4}=15$, $k=4$, $d=-1$: $y=x^4-1$.
6 $M=y^2$, $N=2xy$: $M_y-N_x=2y-2y=0$ identically. Indeed $y^2+2xyy'=\frac{d}{dx}(xy^2)$, so $J[y]=1\cdot y(1)^2-0=y(1)^2$: constant on $\mathcal{A}$. Theorem 6.4 says extrema are extremals; here every function is both (trivially), since $J$ is constant.
7 No $y$: $F_{y'}=x+2y'=c$, so $y=-\tfrac{x^2}4+\tfrac c2x+d$; $d=0$, $-\tfrac14+\tfrac c2=0$: $y=\dfrac{x-x^2}{4}$.
8 With $w=\sqrt{1+p^2}$: $F_y=f_yw$, $F_{y'}=fp/w$ and $\frac{d}{dx}F_{y'}=(f_x+f_yy')\frac{y'}{w}+f\frac{y''}{w^3}$ (since $\frac{d}{dx}\frac{p}{w}=\frac{p'}{w^3}$). Setting $F_y=\frac{d}{dx}F_{y'}$ and multiplying by $w$: $f_y(1+y'^2)-f_xy'-f_yy'^2=\dfrac{fy''}{1+y'^2}$, i.e. $f\,y''=(1+y'^2)(f_y-y'f_x)$. (For $f=1$: $y''=0$; for $f=1/\sqrt y$ it is the brachistochrone equation.)
II
First integrals and classical problems.
  • 1 Using cylindrical coordinates, show that the geodesics (shortest curves) on the cylinder $x^2+y^2=R^2$, written as $z=z(\theta)$, are helices $z=k\theta+m$.
  • 2 Find the extremals of $\int\dfrac{\sqrt{1+y'^2}}{y}\,dx$ ($y\gt0$), and the one through $(-1,\sqrt3)$ and $(3,\sqrt3)$.
  • 3 Show that the extremals of $\int\sqrt y\,\sqrt{1+y'^2}\,dx$ are parabolas $y=c^2+\dfrac{(x-d)^2}{4c^2}$ (the paths of projectiles with given energy).
  • 4 For the brachistochrone to $B=(\pi a,2a)$, show that the descent time along the cycloid is $\pi\sqrt{a/g}$ and along the straight line $\sqrt{(\pi^2+4)a/g}$. What is their ratio?
  • 5 Rings of radius $h=2$ at $x=\pm1$: find the two catenaries numerically, and decide which of the three candidates (two catenoids, two discs) has the least area.
  • 6 Light travels in a layered medium with refractive index $n(x)$ (speed $c_0/n$). Show that along a ray $n(x)\sin\psi=$ const, where $\psi$ is the angle between the ray and the $x$-axis (Snell's law).
  • 7 For $J[y]=\int_0^1(y'^2-1)^2\,dx$, $y(0)=y(1)=0$: show that $y\equiv0$ is the only extremal in $\mathcal{A}$ with $J=1$, but that $\inf_{\mathcal{A}}J=0$.
1 On the cylinder $ds^2=R^2d\theta^2+dz^2$, so the length is $\int\sqrt{R^2+z'(\theta)^2}\,d\theta$. The integrand depends on $z'$ only, with positive second derivative, so $z''=0$ (Theorem 6.5(5)): $z=k\theta+m$, a helix (a straight line on the unrolled cylinder). $k=0$ gives circles, and vertical lines appear as $\theta=$ const in the parametric form.
2 No $x$: $F-y'F_{y'}=\dfrac{1}{y\sqrt{1+y'^2}}=\dfrac1R$, so $y^2(1+y'^2)=R^2$, whose solutions are $(x-d)^2+y^2=R^2$: semicircles centred on the $x$-axis (the geodesics of the hyperbolic half-plane). Through the points: $(1+d)^2=(3-d)^2$, $d=1$, $R^2=4+3=7$: $(x-1)^2+y^2=7$.
3 No $x$: $F-y'F_{y'}=\dfrac{\sqrt y}{\sqrt{1+y'^2}}=c$, so $y=c^2(1+y'^2)$. For the given parabola $y'=\frac{x-d}{2c^2}$ and $c^2(1+y'^2)=c^2+\frac{(x-d)^2}{4c^2}=y$. ✓ (Conversely $y'=\pm\sqrt{y/c^2-1}$ integrates to these parabolas.)
4 $\theta_B=\pi$ (the ratio $x_B/y_B=\pi/2$), so $T=\pi\sqrt{a/g}$ (Example 3). The line has length $a\sqrt{\pi^2+4}$ and constant acceleration $g\cdot\frac{2a}{a\sqrt{\pi^2+4}}$, so $T=\sqrt{2L/\text{acc}}=\sqrt{(\pi^2+4)a/g}$. Ratio $\sqrt{\pi^2+4}/\pi\approx1.185$: the line is about $18.5\%$ slower.
5 $\cosh t=2t$: $t_1\approx0.5894$, $t_2\approx2.1268$, i.e. $y=c\cosh(x/c)$ with $c\approx1.6967$ and $c\approx0.4702$. Areas $\pi c(2+c\sinh(2/c))\approx23.97$ and $27.38$; discs $2\pi\cdot4\approx25.13$. The shallow catenoid wins.
6 $F=n(x)\sqrt{1+y'^2}$ has no $y$: $F_{y'}=\dfrac{n\,y'}{\sqrt{1+y'^2}}=$ const. With $y'=\tan\psi$, $\dfrac{y'}{\sqrt{1+y'^2}}=\sin\psi$, so $n\sin\psi$ is constant. Since the layers are the lines $x=$ const, $\psi$ is the angle with their normal — Snell's law, derived from Fermat's principle.
7 $F=(p^2-1)^2$ depends on $p$ only; $F''(p)=12p^2-4$ and the Euler–Lagrange equation is $y''(12y'^2-4)=0$. By Theorem 6.4(1), $F_{y'}=4y'(y'^2-1)$ is constant along a $C^1$ extremal, so the continuous function $y'$ takes values among the (at most three) roots of $4p^3-4p=c$, hence is constant; $y(0)=y(1)=0$ forces $y\equiv0$, $J=1$. But the sawtooth $s_n$ with slopes $\pm1$ and $2n$ teeth has $J=0$, and rounding each corner over a length $\delta$ gives $C^1$ functions with $J\le 2n\cdot2\delta\cdot1\to0$ as $\delta\to0$. So $\inf J=0$, not attained by any $C^1$ function (that would need $|y'|\equiv1$ and $y(0)=y(1)$, impossible for continuous $y'$).
III
Several functions, higher derivatives, free and variable end points.
  • 1 Find the extremals of $\int_0^{\pi/2}(y'^2+z'^2+2yz)\,dx$ with $y(0)=z(0)=0$, $y(\pi/2)=1$, $z(\pi/2)=-1$.
  • 2 A clamped beam under uniform load: minimise $\int_0^1(y''^2-48y)\,dx$ with $y=y'=0$ at both ends.
  • 3 Find the extremal of $\int_0^{\pi/2}(y''^2-y^2)\,dx$ with $y(0)=1$, $y'(0)=0$, $y(\pi/2)=0$, $y'(\pi/2)=-1$, and show it is unique.
  • 4 Minimise $\int_0^1(y'^2+2y)\,dx$ with $y(0)=0$ and $y(1)$ free.
  • 5 Find the extremal of $\int_0^1(y'^2+y^2-2xy)\,dx$ when both end values are free.
  • 6 Minimise $\int_0^1y'^2\,dx+y(1)^2$ with $y(0)=1$, $y(1)$ free. Which kind of boundary condition appears at $x=1$?
  • 7 Use the transversality condition to find the shortest path from the origin to the line $y=2-x$.
  • 8 Find the curve of fastest descent from the origin (start at rest) to the vertical line $x=b$, and the descent time.
  • 9 Write the Ostrogradsky equations for (a) $\iint(u_x^2+u_y^2+2fu)$; (b) $\iint(u_x^2-u_y^2)$; (c) $\iint\sqrt{1+u_x^2+u_y^2}$.
1 $F_y-\frac{d}{dx}F_{y'}=2z-2y''=0$ and $2y-2z''=0$: $y''=z$, $z''=y$, so $y''''=y$ and $$y=A\cosh x+B\sinh x+C\cos x+D\sin x,$$ $$z=y''=A\cosh x+B\sinh x-C\cos x-D\sin x.$$ $y(0)=z(0)=0$ give $A=C=0$; then $B\sinh\frac\pi2+D=1$ and $B\sinh\frac\pi2-D=-1$ give $B=0$, $D=1$: $y=\sin x$, $z=-\sin x$.
2 Euler–Poisson: $-48+(2y'')''=0$, $y''''=24$, so $y=x^4+$ cubic. The four clamped conditions give $y=x^4-2x^3+x^2=x^2(1-x)^2$ (check: $y''''=24$, $y(1)=0$, $y'(1)=4-6+2=0$). It is the global minimum: as in Example 6, $J[y+\eta]=J[y]+\int\eta''^2$.
3 $-2y+(2y'')''=0$: $y''''=y$, same general solution as in 1. The conditions are a linear system for $A,B,C,D$ with determinant $2\ne0$, so the solution is unique; $y=\cos x$ satisfies all four ($\cos0=1$, $-\sin0=0$, $\cos\frac\pi2=0$, $-\sin\frac\pi2=-1$), hence it is the extremal.
4 $2-2y''=0$, $y=\tfrac{x^2}2+cx$ (using $y(0)=0$). Natural condition $F_{y'}(1)=2y'(1)=0$: $1+c=0$. So $y=\tfrac{x^2}{2}-x$, and it is the global minimum by the expansion $J[y+\eta]=J[y]+\int\eta'^2$.
5 $y''-y=-x$: $y=x+A\cosh x+B\sinh x$. Natural conditions $y'(0)=y'(1)=0$: $1+B=0$ and $1+A\sinh1-\cosh1=0$, so $B=-1$, $A=\dfrac{\cosh1-1}{\sinh1}=\tanh\tfrac12$: $$y=x+\tanh\tfrac12\,\cosh x-\sinh x.$$
6 $y''=0$, $y=1+cx$. Natural condition with $\Gamma(y)=y^2$: $F_{y'}(1)+\Gamma'(y(1))=2y'(1)+2y(1)=0$, i.e. $c+1+c=0$, $c=-\tfrac12$: $y=1-\tfrac x2$, $J=\tfrac14+\tfrac14=\tfrac12$. The condition $y'(1)+y(1)=0$ is a Robin condition. (Directly: $J(c)=c^2+(1+c)^2$ is minimal at $c=-\frac12$.)
7 Extremals of the length are lines $y=mx$ (through the origin). Transversality for $F=\sqrt{1+y'^2}$ is orthogonality: $m\cdot(-1)=-1$, $m=1$. The line $y=x$ meets $y=2-x$ at $(1,1)$; distance $\sqrt2$.
8 Extremals are cycloids $x=a(\theta-\sin\theta)$, $y=a(1-\cos\theta)$. At the vertical line the natural condition $F_{y'}=\dfrac{y'}{\sqrt y\sqrt{1+y'^2}}=0$ forces $y'=0$: the cycloid arrives horizontally, i.e. at $\theta=\pi$, so $a\pi=b$. Time $T=\pi\sqrt{a/g}=\sqrt{\pi b/g}$.
9 (a) $2f-2u_{xx}-2u_{yy}=0$: $\Delta u=f$. (b) $-2u_{xx}+2u_{yy}=0$: the wave equation $u_{xx}=u_{yy}$ (hyperbolic, §4.1). (c) With $W=\sqrt{1+u_x^2+u_y^2}$: $\partial_x(u_x/W)+\partial_y(u_y/W)=0$; expanding and multiplying by $W^3$ gives $(1+u_y^2)u_{xx}-2u_xu_yu_{xy}+(1+u_x^2)u_{yy}=0$.
IV
Isoperimetric problems and proofs.
  • 1 Find the extremal of $\int_0^1y'^2\,dx$ subject to $\int_0^1y\,dx=1$, $y(0)=y(1)=0$, and the value of $J$ on it.
  • 2 Minimise $\int_0^1y'^2\,dx$ subject to $\int_0^1y^2\,dx=1$, $y(0)=0$, $y(1)$ free.
  • 3 A chain of length $2\sinh1$ hangs from $(\pm1,0)$. Minimising its potential energy $\int y\sqrt{1+y'^2}\,dx$ at fixed length, find its shape and its sag.
  • 4 Show that the extremal of Dido's problem with $\ell=\pi$ is the semicircle and compute the multiplier and the area.
  • 5 Prove: if $M\in C[a,b]$ and $\int_a^bM\eta\,dx=0$ for every $\eta\in C[a,b]$ with $\int_a^b\eta\,dx=0$, then $M$ is constant.
  • 6 Let $F=F(p)$ with $F''\gt0$. Prove with Jensen's inequality that the straight line is the unique global minimiser of $\int_a^bF(y')\,dx$ in the fixed end-point class.
  • 7 (Bolza) Show that $J[y]=\int_0^1\big(y^2+(y'^2-1)^2\big)\,dx$ with $y(0)=y(1)=0$ has infimum $0$ over $C^1$ functions but no minimiser.
1 $H=y'^2+\lambda y$: $\lambda-2y''=0$, $y''=$ const, so $y=kx(1-x)$ (end conditions). $\int_0^1kx(1-x)=k/6=1$: $y=6x(1-x)$. ($G=y$ has Euler–Lagrange expression $1\ne0$, so the rule applies.) $J=\int_0^136(1-2x)^2\,dx=12$.
2 $H=y'^2+\lambda y^2$ with natural condition $H_{y'}(1)=2y'(1)=0$: $y''+\mu y=0$ ($\mu=-\lambda$), $y(0)=0$, $y'(1)=0$, so $\mu=\big(\tfrac{(2n-1)\pi}{2}\big)^2$ and $y=\sqrt2\sin\frac{(2n-1)\pi x}{2}$. $J=\mu$, minimal for $n=1$: $\min J=\pi^2/4\approx2.467$, at $y=\sqrt2\sin(\pi x/2)$.
3 $H=(y+\lambda)\sqrt{1+y'^2}$ has no $x$; as in Example 4 (with $y+\lambda$ in place of $y$), $y+\lambda=c\cosh\frac{x-d}{c}$, and symmetry gives $d=0$. Then $y=c\cosh\frac xc-c\cosh\frac1c$ and the length is $2c\sinh\frac1c=2\sinh1$. Since $c\sinh(1/c)$ is strictly decreasing in $c$ (derivative $\cosh\frac1c(\tanh\frac1c-\frac1c)\lt0$), $c=1$: $y=\cosh x-\cosh1$, sag $\cosh1-1\approx0.543$.
4 The arcs through $(\pm1,0)$ centred at $(0,c)$ have radius $R=\sqrt{1+c^2}$. Length $\pi$ with the arc lying above the axis: the semicircle $c=0$, $R=1$ has length $\pi$ (and since length increases with the bulge, it is the only one). So $y=\sqrt{1-x^2}$, $|\lambda|=1$ (from $y+\lambda/\sqrt{1+y'^2}=c=0$: $\lambda=-\sqrt{1-x^2}\sqrt{1+y'^2}=-1$), area $\pi/2$.
5 Let $m$ be the mean of $M$ and take $\eta=M-m$, which is continuous with $\int\eta=0$. Then $\int(M-m)^2=\int M\eta-m\int\eta=0$, so $M\equiv m$. (This is the version of the fundamental lemma behind the multiplier rule for $\int y\,dx=\ell$.)
6 Jensen for the convex $F$ and the probability measure $dx/(b-a)$: $$\frac{1}{b-a}\int_a^bF(y')\,dx\ge F\Big(\frac{1}{b-a}\int_a^by'\,dx\Big)=F(m),$$ with $m$ the slope of the chord. So $J[y]\ge(b-a)F(m)=J[\text{line}]$. For strictly convex $F$ equality in Jensen forces $y'$ constant, i.e. $y$ is the line.
7 $J\ge0$. The sawtooth with $n$ teeth of slope $\pm1$ has $(y'^2-1)^2=0$ and $|y|\le\frac1{2n}$, so $J\le\frac{1}{4n^2}$; smoothing the corners (as in II.7) adds an arbitrarily small amount. So $\inf J=0$. If $J[y]=0$ then $y\equiv0$ and $y'^2\equiv1$ — incompatible. Minimising sequences oscillate ever faster: they converge uniformly to $0$, but $J[0]=1$. The functional is not lower semicontinuous under uniform convergence because $F$ is not convex in $p$.
🎯 Exam corner CSIR Part BCSIR Part CGATE MA

E1. CSIR Part B GATE MA Let $y$ be the extremal of $J[y]=\int_0^1\big(y'^2+2yy'+4y^2\big)\,dx$ with $y(0)=0$, $y(1)=\sinh2$. Then $y(1/2)$ equals (A) $\sinh1$; (B) $\tfrac12\sinh2$; (C) $\sin1$; (D) $e^{-1/2}\sinh1$.

Idea $2yy'=(y^2)'$ is an exact derivative and does not affect the extremals.
Computation $F_y=2y'+8y$, $\frac{d}{dx}F_{y'}=\frac{d}{dx}(2y'+2y)=2y''+2y'$. The equation is $8y-2y''=0$, $y''=4y$, so $y=A\cosh2x+B\sinh2x$; $A=0$, $B=1$: $y=\sinh2x$ and $y(\tfrac12)=\sinh1$.
Answer (A). ((B) is the linear interpolation between the end values.)

E2. CSIR Part B Let $y$ minimise $J[y]=\int_0^1\big(\tfrac12y'^2+xy\big)\,dx$ over $C^1$ functions with $y(0)=0$ and $y(1)$ free. Then $y(1)$ equals (A) $-\tfrac13$; (B) $\tfrac16$; (C) $0$; (D) $-\tfrac12$.

Euler–Lagrange $x-y''=0$, $y=\tfrac{x^3}{6}+cx$ (using $y(0)=0$).
Natural condition $F_{y'}(1)=y'(1)=\tfrac12+c=0$, so $c=-\tfrac12$ and $y(1)=\tfrac16-\tfrac12=-\tfrac13$. (The integrand is convex in $(y,y')$, so this extremal is the minimum.)
Answer (A). (Imposing $y(1)=0$ instead of the natural condition gives (C).)

E3. CSIR Part B The minimum of $\int_0^2y'^2\,dx$ over $C^1$ functions with $y(0)=y(2)=0$ and $\int_0^2y^2\,dx=1$ is (A) $\pi^2$; (B) $\pi^2/4$; (C) $\pi^2/2$; (D) $1$.

Idea Isoperimetric problem $\Rightarrow$ $y''+\mu y=0$ with Dirichlet conditions on $[0,2]$, and $\int y'^2=\mu\int y^2=\mu$ on the eigenfunction.
Eigenvalues $\mu_n=\big(\tfrac{n\pi}{2}\big)^2$; the minimum is $\mu_1=\pi^2/4$, attained at $y=\sin(\pi x/2)$ (normalised: $\int_0^2\sin^2(\pi x/2)=1$).
Answer (B). ((A) is the value for the interval $[0,1]$.)

E4. CSIR Part C Let $F\in C^2$ and consider extremals of $J[y]=\int_a^bF(x,y,y')\,dx$. Which of the following statements are true? (One or more options may be correct.) (A) If $F=F(y,y')$, then $F-y'F_{y'}$ is constant along every $C^2$ extremal. (B) If $F=F(x,y)$, the Euler–Lagrange equation is a first-order ODE. (C) If $F=M(x,y)+N(x,y)y'$ with $M_y=N_x$ on $\mathbb{R}^2$, then $J$ takes the same value on all $C^1$ curves with the same end points. (D) Every $C^2$ function satisfying $F-y'F_{y'}=c$ for some constant $c$ is an extremal (when $F=F(y,y')$).

(A) True $\frac{d}{dx}(F-y'F_{y'})=F_x+y'(F_y-\frac{d}{dx}F_{y'})=0$ (Theorem 6.5(2)).
(B) False The equation is $F_y(x,y)=0$, an algebraic (implicit) equation, not a differential equation.
(C) True $M\,dx+N\,dy=d\Phi$ on $\mathbb{R}^2$, so $J[y]=\Phi(b,B)-\Phi(a,A)$.
(D) False $F=y\sqrt{1+y'^2}$: $y\equiv0$ satisfies $F-y'F_{y'}=0$ but $F_y-\frac{d}{dx}F_{y'}=1\ne0$. The converse of (A) holds only where $y'\ne0$.
Answer (A) and (C).

E5. CSIR Part C Rings of radius $h$ are placed at $x=\pm1$ and we look for $C^1$ curves $y\gt0$, $y(\pm1)=h$, making $S[y]=2\pi\int_{-1}^1y\sqrt{1+y'^2}\,dx$ stationary. Which are true? (A) For $h=1.4$ there is no such curve. (B) For $h=2$ there are exactly two. (C) For $h=2$ the deeper catenary (smaller $y(0)$) has the smaller area. (D) For $h=2$ the shallower catenoid has smaller area than the two discs of radius $2$.

Setup Stationary curves are $y=c\cosh(x/c)$ with $\cosh t/t=h$, $t=1/c$ (Example 4); $\min_{t\gt0}\cosh t/t\approx1.5089$.
(A) True $1.4\lt1.5089$: no solution $t$.
(B) True $2\gt1.5089$: exactly two roots $t\approx0.589$, $2.127$.
(C) False Areas $\approx23.97$ (shallow, $c\approx1.697$) and $\approx27.38$ (deep, $c\approx0.470$).
(D) True $23.97\lt2\pi\cdot2^2\approx25.13$.
Answer (A), (B) and (D).

E6. CSIR Part C Let $y$ minimise $J[y]=\int_0^1y''^2\,dx$ over $C^4$ functions with $y(0)=0$, $y'(0)=0$, $y(1)=1$ and $y'(1)$ free. Which are true? (A) $y''''=0$ on $[0,1]$. (B) $y''(1)=0$. (C) The minimum value of $J$ is $3$. (D) $y'(1)=0$.

(A) True Euler–Poisson: $(2y'')''=0$.
(B) True With $y'(1)$ free the boundary term $\big[F_{y''}\eta'\big]$ at $x=1$ must vanish for arbitrary $\eta'(1)$: $F_{y''}(1)=2y''(1)=0$ (Theorem 6.9).
(C) True $y=\alpha x^2+\beta x^3$ with $\alpha+\beta=1$, $2\alpha+6\beta=0$: $y=\tfrac{3x^2-x^3}{2}$, $y''=3-3x$, $J=\int_0^19(1-x)^2=3$.
(D) False $y'(1)=\tfrac{6-3}{2}=\tfrac32$. (Clamping $y'(1)=0$ instead gives $3x^2-2x^3$ and $J=12$.)
Answer (A), (B) and (C).
🧑‍🏫 For the teacher

Suggested plan — 3 lectures × 60 min.

  1. Functionals and the Euler–Lagrange equation. Start from the brachistochrone story (project the chapter-intro teaser race). Definitions 6.1–6.3, Theorem 6.1, the fundamental lemma and du Bois-Reymond (Theorems 6.2–6.3, draw the bump), Theorem 6.4 with its integrated form. Example 1 on the board, then Interactive 1 (modes 1 and 2) to show $\varphi'(0)=0$.
  2. First integrals and the classical problems. Theorem 6.5 with the Beltrami computation, Examples 2–4 (brachistochrone in full; for the catenoid, sketch $\cosh t/t$ and count roots). Interactive 1 in the deep-catenary mode: "stationary is not minimal". Example 5 and the pitfalls 1–6.
  3. Extensions and constraints. Theorems 6.6–6.8 (one example each: III.1, Example 6(a), the Dirichlet integral), natural boundary conditions and transversality (Theorems 6.9–6.10, Example 6(b)), the multiplier rule (Theorem 6.11 with the two-parameter proof) and Example 7 with Interactive 2. End with E4–E6 done live.

Discussion questions. (1) Why does the proof of the Euler–Lagrange equation need variations that vanish at both ends, and what changes when an end is free? (2) The Euler–Lagrange equation for the isoperimetric problem of Example 7(b) is the eigenvalue equation of §2.3. Which quantity plays the role of the eigenvalue, and why is the minimum the first eigenvalue? (3) A soap film between two rings snaps when the rings are pulled apart. Which mathematical event in Example 4 corresponds to the snap?

Misconceptions to watch for. Treating every extremal as a minimum; forgetting that existence can fail; using Beltrami when $F$ depends on $x$, or accepting its spurious constant solutions; imposing natural conditions at fixed ends; forgetting that the multiplier is unknown and must be found from the constraint; differentiating $F_{y'}$ partially in $x$ instead of totally.

Suggested homework. I(1, 3, 4, 6, 8), II(2, 4, 5, 7), III(1, 2, 4, 6, 8), IV(1, 3, 6, 7); Exam corner E1, E4, E5.

🔬 Research–Teaching NexusResearch-tutored · optional, about 60 minutes

Research question. At what separation does a soap film between two equal rings snap, and does the film that survives always have the least possible area?

Why it matters. Soap films are nature's minimal surfaces. Joseph Plateau's experiments in Belgium in the 1870s started a branch of mathematics; Frei Otto's lightweight tensile roofs for the 1972 Munich Olympic stadium were form-found with soap-film models; and the same equations describe biological membranes and the shape of liquid bridges in microfluidic devices. The catenoid is the simplest case in which the stability of an extremal can be tested on a kitchen table.

What to do.

  1. Bend two wire rings of the same radius $R$ (5–8 cm), dip them together in soap solution (water, washing-up liquid, a little glycerine) and pull them slowly apart, keeping them coaxial. Measure the separation $d$ at which the film collapses onto the two rings; repeat five times.
  2. Predict the critical separation from Example 4: with $a=d/2$, $h=R$, a catenoid exists iff $\cosh t/t=h/a$ has a root. Find $t^*$ from $t\tanh t=1$ and compute the critical ratio $d/R=2t^*/\cosh t^*$. Compare with your measurement.
  3. For several $d/R$ below the critical value, compute the areas of both catenoids and of the two discs. Find numerically the ratio $d/R$ at which the shallow catenoid and the two discs have equal area.
  4. Explain why films with $d/R$ between this ratio and the critical one are observed even though they do not have the least area. Which kind of minimum (weak, strong, global) are they?

Tools: wire, soap solution, a ruler; Python (scipy's brentq) or a spreadsheet with goal-seek for the root finding.

Hand in: A one-page report: measured and predicted critical ratios with an error estimate, a graph of the three areas against $d/R$, and a paragraph on local versus global minima.

Going further. Read about the Jacobi condition (§6.2): the instability of the deep catenoid is detected by a conjugate point. Explore numerically the second variation of the area along $\eta=\cos(\pi x/2a)$ for both catenaries.

Instructor note: $t^*\approx1.19968$, so the critical ratio is $d/R=2t^*/\cosh t^*\approx1.3255$ (rings of radius $5$ cm snap at about $6.6$ cm; measurements typically land within a few per cent, slightly below because of vibrations). The shallow catenoid has less area than the two discs only for $d/R\lt1.0554$ (where $h/a\approx1.8950$); between $1.0554$ and $1.3255$ the observed film is a strict local (weak) minimum that is not the global one — a striking illustration that physics finds local minima.

🧪 Self-check quiz

0/5 correct

Q1. The Euler–Lagrange equation of $\int_a^bF(x,y,y')\,dx$ is

Q2. For $F=y\sqrt{1+y'^2}$ (no explicit $x$) the extremals are

Q3. If $y(b)$ is not prescribed, a minimiser of $\int_a^bF\,dx$ must satisfy at $x=b$

Q4. The extremal of $\int_0^1y'^2\,dx$ with $y(0)=y(1)=0$ and $\int_0^1y\,dx=1$ is

Q5. Which statement about the Euler–Lagrange equation is correct?