Calculus of Variations & Transversality

A derivation-first account of the first variation, Euler–Lagrange equation, natural and moving-endpoint boundary conditions, conserved quantities, constraints, and the second-order tests that distinguish an extremal from a minimum.

Calculus of variations asks for a function that minimizes a functional. Its central move is to perturb the entire candidate curve, compute the first-order change, and require that change to vanish for every admissible perturbation. The Euler–Lagrange equation is what remains in the interior; transversality conditions are what remain at free endpoints.

From a perturbed curve to the first variation #

Consider

J[y]=∫abF ⁣(x,y(x),y′(x))dx,J[y]=\int_a^b F\!\left(x,y(x),y'(x)\right)dx,

with fixed endpoints y(a)=yay(a)=y_a and y(b)=yby(b)=y_b. Let

yε(x)=y(x)+εη(x),y_\varepsilon(x)=y(x)+\varepsilon\eta(x),

where η\eta is any smooth variation satisfying η(a)=η(b)=0\eta(a)=\eta(b)=0. Define

g(ε)=J[yε].g(\varepsilon)=J[y_\varepsilon].

At a differentiable local minimum, g′(0)=0g'(0)=0. Differentiating under the integral gives the first variation

δJ[y;η]=ddεJ[y+εη]∣ε=0=∫ab(Fyη+Fy′η′)dx.\delta J[y;\eta] =\left.\frac{d}{d\varepsilon}J[y+\varepsilon\eta]\right|_{\varepsilon=0} =\int_a^b\left(F_y\eta+F_{y'}\eta'\right)dx.

Integrate the second term by parts:

δJ=[Fy′η]ab+∫ab(Fy−ddxFy′)η dx.\delta J =\left[F_{y'}\eta\right]_a^b +\int_a^b\left(F_y-\frac{d}{dx}F_{y'}\right)\eta\,dx.

The boundary term vanishes for fixed endpoints. Because the remaining integral must be zero for every such η\eta, the fundamental lemma yields

ddxFy′−Fy=0.\boxed{\frac{d}{dx}F_{y'}-F_y=0.}

This is the Euler–Lagrange equation. For a vector curve y∈Rny\in\mathbb R^n, it holds componentwise:

ddx∂F∂yi′−∂F∂yi=0,i=1,…,n.\frac{d}{dx}\frac{\partial F}{\partial y_i'} -\frac{\partial F}{\partial y_i}=0, \qquad i=1,\ldots,n.

What the equation does and does not prove #

The Euler–Lagrange equation is a necessary first-order condition. A solution is an extremal, not automatically a minimum. It may be a maximum, a saddle, or inadmissible once constraints and endpoints are enforced.

For example,

J[y]=12∫0T[(y′)2+ω2y2]dtJ[y]=\frac12\int_0^T\left[(y')^2+\omega^2y^2\right]dt

has

Fy=ω2y,Fy′=y′,F_y=\omega^2y,\qquad F_{y'}=y',

so every extremal satisfies

y′′−ω2y=0,y''-\omega^2y=0,

and therefore

y(t)=c1eωt+c2e−ωt.y(t)=c_1e^{\omega t}+c_2e^{-\omega t}.

The endpoint values determine c1,c2c_1,c_2. Because the integrand is jointly convex in (y,y′)(y,y'), that feasible extremal is also the unique global minimizer. Without convexity, the differential equation alone would not justify that conclusion.

Free endpoints create natural boundary conditions #

If y(b)y(b) is free while bb remains fixed, η(b)\eta(b) is arbitrary. The boundary term requires

Fy′(b)=0.F_{y'}(b)=0.

If y(a)y(a) is also free, then Fy′(a)=0F_{y'}(a)=0 as well. These are natural boundary conditions: they are not specified by the user but forced by stationarity.

When the terminal point may move in both coordinates, write its variation as (δb,δyb)(\delta b,\delta y_b). The terminal boundary contribution becomes

Fy′(b) δyb+[F−y′Fy′]x=bδb.F_{y'}(b)\,\delta y_b +\left[F-y'F_{y'}\right]_{x=b}\delta b.

For a completely free terminal point,

Fy′(b)=0,F(b)−y′(b)Fy′(b)=0.F_{y'}(b)=0, \qquad F(b)-y'(b)F_{y'}(b)=0.

If the endpoint must lie on a curve g(b,yb)=0g(b,y_b)=0, then allowable endpoint variations satisfy

gx δb+gy δyb=0.g_x\,\delta b+g_y\,\delta y_b=0.

Stationarity means the variational boundary covector is normal to that target curve. Equivalently, for some multiplier ν\nu,

Fy′(b)=νgy,F−y′Fy′=νgx.F_{y'}(b)=\nu g_y, \qquad F-y'F_{y'}=\nu g_x.

Transversality at a moving terminal point A candidate trajectory ends on a curved target set. A tangent endpoint variation lies along the target and the variational boundary covector points normal to it. candidate trajectory target set g = 0 tangent variation boundary covector (normal to target)
Transversality: allowable endpoint variations are tangent to the target set, so the boundary covector must be normal to it.

First integrals from missing coordinates #

Euler–Lagrange contains useful conservation laws.

If FF does not depend explicitly on yy, then Fy=0F_y=0 and

Fy′=constant.F_{y'}=\text{constant}.

If FF does not depend explicitly on xx, differentiate

F−y′Fy′F-y'F_{y'}

along an extremal. Euler–Lagrange cancels the remaining terms, giving the Beltrami identity

F−y′Fy′=constant.\boxed{F-y'F_{y'}=\text{constant}.}

This is the variational ancestor of Hamiltonian conservation for autonomous optimal-control problems.

Integral and pointwise constraints #

An isoperimetric constraint

∫abG(x,y,y′)dx=c\int_a^bG(x,y,y')dx=c

introduces a constant multiplier λ\lambda. Extremals satisfy Euler–Lagrange for the augmented integrand

F~=F+λG.\widetilde F=F+\lambda G.

A pointwise equality h(x,y)=0h(x,y)=0 requires a multiplier function λ(x)\lambda(x), because the restriction applies at every xx:

F~=F+λ(x)h(x,y).\widetilde F=F+\lambda(x)h(x,y).

Inequality constraints require complementary-slackness logic and can create boundary arcs. Simply assigning a large penalty to a violated constraint changes the problem; it does not reproduce an exact hard constraint.

Second variation and minimum tests #

The second variation is

δ2J[y;η]=∫ab(Fyyη2+2Fyy′ηη′+Fy′y′(η′)2)dx.\delta^2J[y;\eta] =\int_a^b \left( F_{yy}\eta^2 +2F_{yy'}\eta\eta' +F_{y'y'}(\eta')^2 \right)dx.

A necessary local-minimum condition is the Legendre condition

Fy′y′≥0F_{y'y'}\ge0

along the extremal; the strengthened form uses Fy′y′>0F_{y'y'}>0. This still may not be sufficient because the mixed and FyyF_{yy} terms can make the quadratic form negative for some extended variation. Conjugate-point or Jacobi analysis checks that global-in-the-interval failure mode.

For convex F(x,y,y′)F(x,y,y') and a convex feasible set, every stationary feasible curve is a global minimizer. Convexity is therefore much stronger than a local second-order test, but many control problems with nonlinear dynamics or nonconvex constraints do not have it.

From curves to controlled dynamics #

Introduce a state x1=yx_1=y, control u=y′u=y', and dynamics

x˙1=u.\dot x_1=u.

The variational integrand becomes a running cost. More general state equations constrain the permissible relation between a trajectory and its derivative, and bounded or discontinuous controls invalidate the naive assumption that every variation of uu is small and smooth. Needle variations solve that problem and lead to the Pontryagin maximum principle.

The central lesson survives the generalization: interior differential equations and endpoint transversality are two parts of one stationarity calculation. Dropping either part leaves the boundary-value problem incomplete.

Sources

  1. bookCalculus of Variations and Optimal Control Theory: A Concise Introductionpdfnotes

Searches titles, aliases, headings, summaries, and full text.↑↓ move ↵ open esc close