ConceptComplete

Calculus of Variations and the Euler-Lagrange Equation

The calculus of variations addresses the problem of finding functions that extremize functionals -- mappings from function spaces to real numbers. This framework underlies classical mechanics (Lagrangian formulation), optics (Fermat's principle), and geometric optimization (geodesics, minimal surfaces).


Functionals and Their Variations

Definition7.1Functional and First Variation

A functional J[y]J[y] maps a function y:[a,b]Ry:[a,b]\to\mathbb{R} to a real number. The canonical form is J[y]=abL(x,y(x),y(x))dxJ[y] = \int_a^b L(x, y(x), y'(x))\,dx where LL is the Lagrangian density. The first variation of JJ at yy in the direction η\eta (with η(a)=η(b)=0\eta(a) = \eta(b) = 0) is δJ[y;η]=limε0ddεJ[y+εη]=ab[Lyη+Lyη]dx\delta J[y;\eta] = \lim_{\varepsilon\to 0}\frac{d}{d\varepsilon}J[y+\varepsilon\eta] = \int_a^b \left[\frac{\partial L}{\partial y}\eta + \frac{\partial L}{\partial y'}\eta'\right]dx. A function yy^* is a stationary point (extremal) if δJ[y;η]=0\delta J[y^*;\eta] = 0 for all admissible η\eta.

ExampleThe Brachistochrone Problem

Find the curve y(x)y(x) from (0,0)(0,0) to (x1,y1)(x_1,y_1) along which a bead slides fastest under gravity. The travel time is T[y]=0x11+y22gydxT[y] = \int_0^{x_1}\frac{\sqrt{1+y'^2}}{\sqrt{2gy}}\,dx. Here L=(1+y2)/(2gy)L = \sqrt{(1+y'^2)/(2gy)}. The Euler-Lagrange equation yields a cycloid: x(θ)=R2(θsinθ)x(\theta) = \frac{R}{2}(\theta - \sin\theta), y(θ)=R2(1cosθ)y(\theta) = \frac{R}{2}(1-\cos\theta). This was posed by Johann Bernoulli (1696) and solved by Newton, Leibniz, L'Hopital, and the Bernoulli brothers, catalyzing the development of the calculus of variations.


The Euler-Lagrange Equation

Definition7.2Euler-Lagrange Equation

Integration by parts on the first variation gives δJ=ab[LyddxLy]ηdx=0\delta J = \int_a^b\left[\frac{\partial L}{\partial y} - \frac{d}{dx}\frac{\partial L}{\partial y'}\right]\eta\,dx = 0. By the fundamental lemma of the calculus of variations (if abf(x)η(x)dx=0\int_a^b f(x)\eta(x)\,dx = 0 for all smooth η\eta with η(a)=η(b)=0\eta(a)=\eta(b)=0, then f0f\equiv 0), the stationary condition becomes the Euler-Lagrange equation: LyddxLy=0\frac{\partial L}{\partial y} - \frac{d}{dx}\frac{\partial L}{\partial y'} = 0. For multiple dependent variables yiy_i: LyiddxLyi=0\frac{\partial L}{\partial y_i} - \frac{d}{dx}\frac{\partial L}{\partial y_i'} = 0 for each ii.

ExampleGeodesics on Surfaces

The arc length functional on a surface with metric ds2=gijdxidxjds^2 = g_{ij}dx^i dx^j is [γ]=gijx˙ix˙jdt\ell[\gamma] = \int \sqrt{g_{ij}\dot{x}^i\dot{x}^j}\,dt. The Euler-Lagrange equations (with arclength parametrization) yield the geodesic equation: x¨k+Γijkx˙ix˙j=0\ddot{x}^k + \Gamma^k_{ij}\dot{x}^i\dot{x}^j = 0 where Γijk\Gamma^k_{ij} are Christoffel symbols. On the sphere S2S^2, geodesics are great circles; on the hyperbolic plane, they are semicircles orthogonal to the boundary.


Special Cases and Conservation Laws

Definition7.3First Integrals of the Euler-Lagrange Equation

(Beltrami identity) If LL does not depend explicitly on xx: LyLy=CL - y'\frac{\partial L}{\partial y'} = C (a first integral reducing the order). This is the Hamiltonian H=pq˙LH = p\dot{q} - L in mechanics. (Cyclic coordinates) If LL does not depend on yy: Ly=C\frac{\partial L}{\partial y'} = C (the conjugate momentum is conserved). These first integrals often reduce the Euler-Lagrange ODE from second order to first order, making explicit solutions possible.

RemarkHigher Derivatives and Multiple Integrals

For functionals involving higher derivatives J[y]=L(x,y,y,y)dxJ[y] = \int L(x,y,y',y'')\,dx, the Euler-Lagrange equation becomes LyddxLy+d2dx2Ly=0\frac{\partial L}{\partial y} - \frac{d}{dx}\frac{\partial L}{\partial y'} + \frac{d^2}{dx^2}\frac{\partial L}{\partial y''} = 0 (fourth-order ODE). For multiple integrals J[u]=L(x,y,u,ux,uy)dxdyJ[u] = \iint L(x,y,u,u_x,u_y)\,dx\,dy, the equation is LuxLuxyLuy=0\frac{\partial L}{\partial u} - \frac{\partial}{\partial x}\frac{\partial L}{\partial u_x} - \frac{\partial}{\partial y}\frac{\partial L}{\partial u_y} = 0. This encompasses minimal surface equations, plate bending, and field theories.