This is an approach that enables one to optimize an integral peformance measure of a path whose endpoints are given.
A path is this instance is a sufficiently smooth real-valued function defined on an bounded interval
such that
. The performance measure is described as an integral
where prime denoted total derivative with respect to . Any pair of admissible paths
are related by
where
is a smooth path whose endpoints are such that
. Suppose
is an optimal path. Given a zero-endpoint path
, the behavior of the performance measure for small pertubations is given by
Since is optimal,
. This gives, on using integration by parts,
Due to the boundary constraints on the path ,
Since this condition is satisfied for all such , it follows that the integrand is zero, that is
This is the celebrated Euler-Lagrange equation. If the Lagrangian does not explicitly depend on
, then using the chain rule of differentiation of products,
Hence for some constant
. This condition may be simpler to use in some instances.
Shortest Distance Between Points
For one of the simplest application of this result, consider the minimization of length of a curve between two points in the plane, . The Lagrangian is the arc length, which is given by
and does not explicitly depend on
. Hence using the EL equation specialized to this case,
Hence is a constant and so the shortest distance between two points is a straight line.
Shortest Travel Time Between Points
This is the celebrated Brachistochrone problem. Consider a fixed-mass particle forced to travel in a gravity field without friction along a smooth curve connecting two points. The speed of the particle at any depth is given by
. The speed of the particle is aligned with the tangent of the curve. Therefore in time
the particle travels
. Hence starting at position
at time 0, the particle will reach position
at time
where
The EL equation yields the requirement which can be solved standard ode techniques.
