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 equation now named for them by varying the unknown function (Kline 1990, pp. 579 and 582-584).
A basic problem is to find a function with specified endpoint values for which the functional
|
(1)
|
is stationary, where 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)
|
This equation determines candidates for a minimum or maximum. 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.
The brachistochrone problem and Fermat's principle both 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.
The calculus of variations in the large 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.