The calculus of variations studies extrema and stationary values of functionals. A functional assigns a number to a function, curve, or surface, such as its arc length or surface area. Johann Bernoulli's 1696 brachistochrone problem, which asks for a path of least descent time, was an early example (Gelfand and Fomin 1963, p. 3). Euler developed a general method for such problems, and Lagrange obtained the Euler-Lagrange differential equation by varying the unknown function (Kline 1990, pp. 579 and 582-584).
The fixed-endpoint problem in the calculus of variations is to find a function with specified endpoint values for
which the functional
|
(1)
|
is stationary, meaning that its first variation vanishes for every admissible perturbation. Here and the integrand
is called the Lagrangian
function. Varying
to
for a continuously
differentiable
with
gives the first variation
|
(2)
|
Here subscripts denote partial derivatives of
evaluated along
. For
and
twice continuously
differentiable, integration by parts moves
the derivative from
to
. The endpoint term vanishes,
leaving the integral of
. The fundamental
lemma of calculus of variations says that a continuous
factor whose integral against every smooth
of compact
support in
vanishes must itself vanish there. Stationarity therefore gives the Euler-Lagrange
differential equation
|
(3)
|
Solutions of this equation are called extremals. They can give a minimum, a maximum, or a saddle point. The second variation tests the second-order change: if it takes both signs, the extremal is a saddle point. A sign-definite second variation is strictly positive on every nonzero admissible perturbation, or strictly negative on every such perturbation. A positive semidefinite second variation is nonnegative but may vanish for nonzero perturbations, so it can leave the minimum test inconclusive. The signs are reversed for a maximum.
In an infinite-dimensional function space, strict positivity in each direction alone does not guarantee a local minimum
in a chosen norm. A sufficient set of uniformity conditions
is a coercive bound with the same
for all admissible
, together with a second-order expansion whose remainder
is
in that norm, meaning that the remainder divided by
tends to zero as
in little-O notation.
At a stationary function these conditions make
the positive quadratic term dominate the remainder throughout a sufficiently small
neighborhood, giving a strict local minimum
(Liberzon 2012, pp. 18-19).
If the endpoint values are free, the first variation also gives natural boundary conditions, which can include derivatives of a cost at the endpoints in the Bolza problem.
Fermat's principle states that a light ray between fixed endpoints makes the optical path length stationary. In a stationary, isotropic, nondispersive medium, this is equivalent to making travel time stationary. Thus both Fermat's principle and the brachistochrone problem use a travel time functional. A geodesic makes the arc length stationary, and the search for a minimal surface of revolution varies the surface area. In mechanics, a variational symmetry of the action integral can yield a conservation law through Noether's symmetry theorem.
A central geometric example in three dimensions is Plateau's problem, which asks for a surface of least surface area spanning a prescribed closed curve. It varies a surface rather than a function of a single variable. A smooth minimizing surface has zero mean curvature, but a minimal surface is stationary for surface area and need not be a global minimizer (Osserman 1986, pp. 143-145).
The calculus of variations in the large is a global approach to these problems. It uses the topology of the space of admissible curves to study the existence and multiplicity of extremals.
For variational problems specified by a Lagrangian function, a future version of the Wolfram Language will provide EulerLagrangeD and EulerLagrangeEquation to form the Euler-Lagrange derivative and the Euler-Lagrange differential equation, and EulerLagrangeSolve and NEulerLagrangeSolve to solve variational problems.