# Calculus of variations

### From Wikipedia, the free encyclopedia

**Calculus of variations** is a field of mathematics that deals with functionals, as opposed to ordinary calculus which deals with functions. Such functionals can for example be formed as integrals involving an unknown function and its derivatives. The interest is in *extremal* functions: those making the functional attain a maximum or minimum value.

Perhaps the simplest example of such a problem is to find the curve of shortest length connecting two points. If there are no constraints, the solution is obviously a straight line between the points. However, if the curve is constrained to lie on a surface in space, then the solution is less obvious, and possibly many solutions may exist. Such solutions are known as geodesics. A related problem is posed by Fermat's principle: light follows the path of shortest optical length connecting two points, where the optical length depends upon the material of the medium. One corresponding concept in mechanics is the principle of least action.

Many important problems involve functions of several variables. Solutions of boundary value problems for the Laplace equation satisfy the Dirichlet principle. Plateau's problem requires finding a surface of minimal area that spans a given contour in space: the solution or solutions may be found by dipping a wire frame in a solution of soap suds. Although such experiments are relatively easy to perform, their mathematical interpretation is far from simple: there may be more than one locally minimizing surface, and they may have non-trivial topology.

## Contents |

## [edit] Weak and strong extrema

The supremum norm (also called infinity norm) for real, continuous, bounded functions on a topological space *X* is defined as

- .

A functional *J*(*y*) defined on some appropriate space of functions *V* with norm is said to have a **weak minimum** at the function *y*_{0} if there exists some δ > 0 such that, for all functions *y* with ,

- .

**Weak** **maxima** are defined similarly, with the inequality in the last equation reversed. In most problems, *V* is the space of *r*-times continuously differentiable functions on a compact subset *E* of the real line, with its norm given by

- .

This norm is just the sum of the supremum norms of *y* and its derivatives.

A functional *J* is said to have a **strong minimum** at *y*_{0} if there exists some δ > 0 such that, for all functions *y* with , . **Strong maximum** is defined similarly, but with the inequality in the last equation reversed.

The difference between strong and weak extrema is that, for a strong extremum, *y*_{0} is a local maximum relative to the set of δ-close functions with respect to the supremum norm. In general this (supremum) norm is different from the norm that *V* has been endowed with. If *y*_{0} is a strong extremum for *J* then it is also a weak extremum, but the converse may not hold. Finding strong extrema is more difficult than finding weak extrema and in what follows it will be assumed that we are looking for weak extrema.

## [edit] The Euler–Lagrange equation

Under ideal conditions, the maxima and minima of a given function may be located by finding the points where its derivative vanishes. By analogy, solutions of smooth variational problems may be obtained by solving the associated Euler–Lagrange equation. In order to illustrate this process, consider the problem of finding the shortest curve in the plane that connects two points (*x*_{1},*y*_{1}) and (*x*_{2},*y*_{2}). The arc length is given by

with

and where *y* = *f*(*x*), *f*(*x*_{1}) = *y*_{1} and *f*(*x*_{2}) = *y*_{2}. The function *f* should have at least one derivative in order to satisfy the requirements for valid application of the function, further, if *f*_{0} is a local minimum and *f*_{1} is an arbitrary function that vanishes at the endpoints *x*_{1} and *x*_{2} and with at least one derivative, then we must have

for any number ε close to 0. Therefore, the derivative of *A*[*f*_{0} + ε*f*_{1}] with respect to ε (the **first variation of A**) must vanish at ε=0. Thus

for any choice of the function *f*_{1}. We may interpret this condition as the vanishing of all directional derivatives of *A*[*f*_{0}] in the space of differentiable functions, and this is formalized by requiring the Fréchet derivative of *A* to vanish at *f*_{0}. If we assume that *f*_{0} has two continuous derivatives (or if we consider weak derivatives), then we may use integration by parts:

with the substitution

then we have

but the first term is zero since *v*(*x*) = *f*_{1}(*x*) was chosen to vanish at *x*_{1} and *x*_{2} where the evaluation is taken. Therefore,

for any twice differentiable function *f*_{1} that vanishes at the endpoints of the interval.

We can now apply the fundamental lemma of calculus of variations: If

for any sufficiently differentiable function *f*_{1}(*x*) within the integration range that vanishes at the endpoints of the interval, then it follows that *H*(*x*) is identically zero on its domain.

Therefore,

It follows from this equation that

and hence the extremals are straight lines.

A similar calculation holds in the general case where

and *f* is required to have two continuous derivatives. Again, we find an extremal *f*_{0} by setting *f* = *f*_{0} + ε*f*_{1}, taking the derivative with respect to ε, and setting ε = 0 at the end:

where we have used the chain rule in the second line and integration by parts in the third. As before, the last term in the third line vanishes due to our choice of *f*_{1}. Finally, according to the fundamental lemma of calculus of variations, we find that *L* will satisfy the Euler–Lagrange equation

In general this gives a second-order ordinary differential equation which can be solved to obtain the extremal *f*. The Euler–Lagrange equation is a necessary, but not sufficient, condition for an extremal. Sufficient conditions for an extremal are discussed in the references.

## [edit] The Beltrami Identity

Frequently in physical problems, it turns out that . In that case, the Euler-Lagrange equation can be simplified using the Beltrami identity:

where *C* is a constant. The left hand side is the Legendre transformation of L with respect to f '.

## [edit] du Bois Reymond's theorem

The discussion thus far has assumed that extremal functions possess two continuous derivatives, although the existence of the integral *A* requires only first derivatives of trial functions. The condition that the first variation vanish at an extremal may be regarded as a **weak form** of the Euler-Lagrange equation. The theorem of du Bois Reymond asserts that this weak form implies the strong form. If *L* has continuous first and second derivatives with respect to all of its arguments, and if

then *f*_{0} has two continuous derivatives, and it satisfies the Euler-Lagrange equation.

## [edit] Fermat's principle

Fermat's principle states that light takes a path that (locally) minimizes the optical length between its endpoints. If the *x*-coordinate is chosen as the parameter along the path, and *y* = *f*(*x*) along the path, then the optical length is given by

where the refractive index *n*(*x*,*y*) depends upon the material. If we try *f*(*x*) = *f*_{0}(*x*) + ε*f*_{1}(*x*) then the first variation of *A* (the derivative of *A* with respect to ε) is

After integration by parts of the first term within brackets, we obtain the Euler-Lagrange equation

The light rays may be determined by integrating this equation.

### [edit] Snell's law

There is a discontinuity of the refractive index when light enters or leaves a lens. Let

where *n* _{−} and *n* _{+} are constants. Then the Euler-Lagrange equation holds as before in the region where *x*<0 or *x*>0, and in fact the path is a straight line there, since the refractive index is constant. At the *x*=0, *f* must be continuous, but *f'* may be discontinuous. After integration by parts in the separate regions and using the Euler-Lagrange equations, the first variation takes the form

The factor multiplying *n* _{−} is the sine of angle of the incident ray with the *x* axis, and the factor multiplying *n* _{+} is the sine of angle of the refracted ray with the *x* axis. Snell's law for refraction requires that these terms be equal. As this calculation demonstrates, Snell's law is equivalent to vanishing of the first variation of the optical path length.

### [edit] Fermat's principle in three dimensions

It is expedient to use vector notation: let *X* = (*x*_{1},*x*_{2},*x*_{3}), let *t* be a parameter, let *X*(*t*) be the parametric representation of a curve *C*, and let be its tangent vector. The optical length of the curve is given by

Note that this integral is invariant with respect to changes in the parametric representation of *C*. The Euler-Lagrange equations for a minimizing curve have the symmetric form

where

It follows from the definition that *P* satisfies

Therefore the integral may also be written as

This form suggests that if we can find a function ψ whose gradient is given by *P*, then the integral *A* is given by the difference of ψ at the endpoints of the interval of integration. Thus the problem of studying the curves that make the integral stationary can be related to the study of the level surfaces of ψ. In order to find such a function, we turn to the wave equation, which governs the propagation of light.

#### [edit] Connection with the wave equation

The wave equation for an inhomogeneous medium is

where *c* is the velocity, which generally depends upon *X*. Wave fronts for light are characteristic surfaces for this partial differential equation: they satisfy

We may look for solutions in the form

In that case, ψ satisfies

where *n* = 1 / *c*. According to the theory of first order partial differential equations, if then *P* satisfies

along a system of curves (**the light rays**) that are given by

These equations for solution of a first-order partial differential equation are identical to the Euler-Lagrange equations if we make the identification

We conclude that the function ψ is the value of the minimizing integral *A* as a function of the upper end point. That is, when a family of minimizing curves is constructed, the values of the optical length satisfy the characteristic equation corresponding the wave equation. Hence, solving the associated partial differential equation of first order is equivalent to finding families of solutions of the variational problem. This is the essential content of the Hamilton-Jacobi theory, which applies to more general variational problems.

## [edit] The action principle

The action was defined by Hamilton to be the time integral of the Lagrangian, L, which is defined as a difference of energies:

where *T* is the kinetic energy of a mechanical system and *U* is the potential energy. Hamilton's principle (or the action principle) states that the motion of a mechanical system is such that the action integral

is stationary with respect to variations in the path *X(t)*. The Euler-Lagrange equations for this system are known as Lagrange's equations:

and they are equivalent to Newton's equations of motion.

The conjugate momenta *P* are defined by

For example, if

then

Hamiltonian mechanics results if the conjugate momenta are introduced in place of , and the Lagrangian *L* is replaced by the Hamiltonian *H* defined by

The Hamiltonian is the total energy of the system: *H* = *T* + *U*. Analogy with Fermat's principle suggests that solutions of Lagrange's equations (the particle trajectories) may be described in terms of level surfaces of some function of *X*. This function is a solution of the Hamilton-Jacobi equation:

## [edit] Functions of several variables

Variational problems that involve multiple integrals arise in numerous applications. For example, if φ(*x*,*y*) denotes the displacement of a membrane above the domain *D* in the *x*,*y* plane, then its potential energy is proportional to its surface area:

**Plateau's problem** consists of finding a function that minimizes the surface area while assuming prescribed values on the boundary of *D*; the solutions are called **minimal surfaces**. The Euler-Lagrange equation for this problem is nonlinear:

See Courant (1950) for details.

### [edit] Dirichlet's principle

It is often sufficient to consider only small displacements of the membrane, whose energy difference from no displacement is approximated by

The functional *V* is to be minimized among all trial functions φ that assume prescribed values on the boundary of *D*. If *u* is the minimizing function and *v* is an arbitrary smooth function that vanishes on the boundary of *D*, then the first variation of *V*[*u* + ε*v*] must vanish:

Provided that u has two derivatives, we may apply the divergence theorem to obtain

where *C* is the boundary of *D*, *s* is arclength along *C* and is the normal derivative of *u* on *C*. Since *v* vanishes on *C* and the first variation vanishes, the result is

for all smooth functions v that vanish on the boundary of *D*. The proof for the case of one dimensional integrals may be adapted to this case to show that

- in
*D*.

The difficulty with this reasoning is the assumption that the minimizing function u must have two derivatives. Riemann argued that the existence of a smooth minimizing function was assured by the connection with the physical problem: membranes do indeed assume configurations with minimal potential energy. Riemann named this idea **Dirichlet's principle** in honor of his teacher Dirichlet. However Weierstrass gave an example of a variational problem with no solution: minimize

among all functions φ that satisfy and *W* can be made arbitrarily small by choosing piecewise linear functions that make a transition between -1 and 1 in a small neighborhood of the origin. However, there is no function that makes *W*=0. The resulting controversy over the validity of Dirichlet's principle is explained in http://turnbull.mcs.st-and.ac.uk/~history/Biographies/Riemann.html . Eventually it was shown that Dirichlet's principle is valid, but it requires a sophisticated application of the regularity theory for elliptic partial differential equations; see Jost and Li-Jost (1998).

### [edit] Generalization to other boundary value problems

A more general expression for the potential energy of a membrane is

This corresponds to an external force density *f*(*x*,*y*) in *D*, an external force *g*(*s*) on the boundary *C*, and elastic forces with modulus σ(*s*) acting on *C*. The function that minimizes the potential energy **with no restriction on its boundary values** will be denoted by *u*. Provided that *f* and *g* are continuous, regularity theory implies that the minimizing function *u* will have two derivatives. In taking the first variation, no boundary condition need be imposed on the increment *v*. The first variation of *V*[*u* + ε*v*] is given by

If we apply the divergence theorem, the result is

If we first set *v*=0 on *C*, the boundary integral vanishes, and we conclude as before that

in *D*. Then if we allow *v* to assume arbitrary boundary values, this implies that *u* must satisfy the boundary condition

on *C*. Note that this boundary condition is a consequence of the minimizing property of *u*: it is not imposed beforehand. Such conditions are called **natural boundary conditions**.

The preceding reasoning is not valid if σ vanishes identically on *C*. In such a case, we could allow a trial function , where *c* is a constant. For such a trial function,

By appropriate choice of *c*, *V* can assume any value unless the quantity inside the brackets vanishes. Therefore the variational problem is meaningless unless

This condition implies that net external forces on the system are in equilibrium. If these forces are in equilibrium, then the variational problem has a solution, but it is not unique, since an arbitrary constant may be added. Further details and examples are in Courant and Hilbert (1953).

## [edit] Eigenvalue problems

Both one-dimensional and multi-dimensional **eigenvalue problems** can be formulated as variational problems.

### [edit] Sturm-Liouville problems

The Sturm-Liouville eigenvalue problem involves a general quadratic form

where φ is restricted to functions that satisfy the boundary conditions

Let *R* be a normalization integral

The functions *p*(*x*) and *r*(*x*) are required to be everywhere positive and bounded away from zero. The primary variational problem is to minimize the ratio *Q/R* among all φ satisfying the endpoint conditions. It is shown below that the Euler-Lagrange equation for the minimizing *u* is

where λ is the quotient

It can be shown (see Gelfand and Fomin 1963) that the minimizing *u* has two derivatives and satisfies the Euler-Lagrange equation. The associated λ will be denoted by λ_{1}; it is the lowest eigenvalue for this equation and boundary conditions. The associated minimizing function will be denoted by *u*_{1}(*x*). This variational characterization of eigenvalues leads to the Rayleigh-Ritz method: choose an approximating *u* as a linear combination of basis functions (for example trigonometric functions) and carry out a finite-dimensional minimization among such linear combinations. This method is often surprisingly accurate.

The next smallest eigenvalue and eigenfunction can be obtained by minimizing *Q* under the additional constraint

This procedure can be extended to obtain the complete sequence of eigenvalues and eigenfunctions for the problem.

The variational problem also applies to more general boundary conditions. Instead of requiring that φ vanish at the endpoints, we may not impose any condition at the endpoints, and set

where *a*_{1} and *a*_{2} are arbitrary. If we set the first variation for the ratio *Q* / *R* is

where λ is given by the ratio *Q*[*u*] / *R*[*u*] as previously. After integration by parts,

If we first require that *v* vanish at the endpoints, the first variation will vanish for all such *v* only if

If *u* satisfies this condition, then the first variation will vanish for arbitrary *v* only if

These latter conditions are the **natural boundary conditions** for this problem, since they are not imposed on trial functions for the minimization, but are instead a consequence of the minimization.

### [edit] Eigenvalue problems in several dimensions

Eigenvalue problems in higher dimensions are defined in analogy with the one-dimensional case. For example, given a domain *D* with boundary *B* in three dimensions we may define

and

Let *u* be the function that minimizes the quotient with no condition prescribed on the boundary *B*. The Euler-Lagrange equation satisfied by *u* is

where

The minimizing *u* must also satisfy the natural boundary condition

on the boundary *B*. This result depends upon the regularity theory for elliptic partial differential equations; see Jost and Li-Jost (1998) for details. Many extensions, including completeness results, asymptotic properties of the eigenvalues and results concerning the nodes of the eigenfunctions are in Courant and Hilbert (1953).

## [edit] See also

- First variation
- Isoperimetric inequality
- Variational principle
- Fermat's principle
- Principle of least action
- Infinite-dimensional optimization
- Functional analysis
- Perturbation methods
- Young measure
- Optimal control

## [edit] Reference books

- Gelfand, I.M. and Fomin, S.V.: Calculus of Variations, Dover Publ., 2000.
- Lebedev, L.P. and Cloud, M.J.: The Calculus of Variations and Functional Analysis with Optimal Control and Applications in Mechanics, World Scientific, 2003, pages 1-98.
- Charles Fox: An Introduction to the Calculus of Variations, Dover Publ., 1987.
- Forsyth, A.R.: Calculus of Variations, Dover, 1960.
- Sagan, Hans: Introduction to the Calculus of Variations, Dover, 1992.
- Weinstock, Robert: Calculus of Variations with Applications to Physics and Engineering, Dover, 1974.
- Clegg, J.C.: Calculus of Variations, Interscience Publishers Inc., 1968.
- Courant, R.: Dirichlet's principle, conformal mapping and minimal surfaces. Interscience, 1950.
- Courant, R. and D. Hilbert: Methods of Mathematical Physics, Vol I. Interscience Press, 1953.
- Elsgolc, L.E.: Calculus of Variations, Pergamon Press Ltd., 1962.
- Jost, J. and X. Li-Jost: Calculus of Variations. Cambridge University Press, 1998.

## [edit] References

- Johan Byström, Lars-Erik Persson, and Fredrik Strömberg,
*Chapter III: Introduction to the calculus of variations*(undated). - Calculus of variations on PlanetMath.
- Eric W. Weisstein,
*Calculus of Variations*at MathWorld. - Calculus of variations example problems.
- Chapter 8: Calculus of Variations, from
*Optimization for Engineering Systems*, by Ralph W. Pike, Louisiana State University.