Part of a series of articles about |
Calculus |
---|
The calculus of variations (or variational calculus) is a field of mathematical analysis that uses variations, which are small changes in functions and functionals, to find maxima and minima of functionals: mappings from a set of functions to the real numbers.[lower-alpha 1] Functionals are often expressed as definite integrals involving functions and their derivatives. Functions that maximize or minimize functionals may be found using the Euler–Lagrange equation of the calculus of variations.
A simple example of such a problem is to find the curve of shortest length connecting two points. If there are no constraints, the solution is 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, which depends upon the material of the medium. One corresponding concept in mechanics is the principle of least/stationary action.
Many important problems involve functions of several variables. Solutions of boundary value problems for the Laplace equation satisfy the Dirichlet's principle. Plateau's problem requires finding a surface of minimal area that spans a given contour in space: a solution can often be found by dipping a frame in soapy water. Although such experiments are relatively easy to perform, their mathematical formulation is far from simple: there may be more than one locally minimizing surface, and they may have non-trivial topology.
The calculus of variations may be said to begin with Newton's minimal resistance problem in 1687, followed by the brachistochrone curve problem raised by Johann Bernoulli (1696).[2] It immediately occupied the attention of Jakob Bernoulli and the Marquis de l'Hôpital, but Leonhard Euler first elaborated the subject, beginning in 1733. Lagrange was influenced by Euler's work to contribute significantly to the theory. After Euler saw the 1755 work of the 19-year-old Lagrange, Euler dropped his own partly geometric approach in favor of Lagrange's purely analytic approach and renamed the subject the calculus of variations in his 1756 lecture Elementa Calculi Variationum.[3][4][lower-alpha 2]
Legendre (1786) laid down a method, not entirely satisfactory, for the discrimination of maxima and minima. Isaac Newton and Gottfried Leibniz also gave some early attention to the subject.[5] To this discrimination Vincenzo Brunacci (1810), Carl Friedrich Gauss (1829), Siméon Poisson (1831), Mikhail Ostrogradsky (1834), and Carl Jacobi (1837) have been among the contributors. An important general work is that of Sarrus (1842) which was condensed and improved by Cauchy (1844). Other valuable treatises and memoirs have been written by Strauch (1849), Jellett (1850), Otto Hesse (1857), Alfred Clebsch (1858), and Lewis Buffett Carll (1885), but perhaps the most important work of the century is that of Weierstrass. His celebrated course on the theory is epoch-making, and it may be asserted that he was the first to place it on a firm and unquestionable foundation. The 20th and the 23rd Hilbert problem published in 1900 encouraged further development.[5]
In the 20th century David Hilbert, Oskar Bolza, Gilbert Ames Bliss, Emmy Noether, Leonida Tonelli, Henri Lebesgue and Jacques Hadamard among others made significant contributions.[5] Marston Morse applied calculus of variations in what is now called Morse theory.[6] Lev Pontryagin, Ralph Rockafellar and F. H. Clarke developed new mathematical tools for the calculus of variations in optimal control theory.[6] The dynamic programming of Richard Bellman is an alternative to the calculus of variations.[7][8][9][lower-alpha 3]
The calculus of variations is concerned with the maxima or minima (collectively called extrema) of functionals. A functional maps functions to scalars, so functionals have been described as "functions of functions." Functionals have extrema with respect to the elements [math]\displaystyle{ y }[/math] of a given function space defined over a given domain. A functional [math]\displaystyle{ J[y] }[/math] is said to have an extremum at the function [math]\displaystyle{ f }[/math] if [math]\displaystyle{ \Delta J = J[y] - J[f] }[/math] has the same sign for all [math]\displaystyle{ y }[/math] in an arbitrarily small neighborhood of [math]\displaystyle{ f. }[/math][lower-alpha 4] The function [math]\displaystyle{ f }[/math] is called an extremal function or extremal.[lower-alpha 5] The extremum [math]\displaystyle{ J[f] }[/math] is called a local maximum if [math]\displaystyle{ \Delta J \leq 0 }[/math] everywhere in an arbitrarily small neighborhood of [math]\displaystyle{ f, }[/math] and a local minimum if [math]\displaystyle{ \Delta J \geq 0 }[/math] there. For a function space of continuous functions, extrema of corresponding functionals are called strong extrema or weak extrema, depending on whether the first derivatives of the continuous functions are respectively all continuous or not.[11]
Both strong and weak extrema of functionals are for a space of continuous functions but strong extrema have the additional requirement that the first derivatives of the functions in the space be continuous. Thus a strong extremum is also a weak extremum, but the converse may not hold. Finding strong extrema is more difficult than finding weak extrema.[12] An example of a necessary condition that is used for finding weak extrema is the Euler–Lagrange equation.[13][lower-alpha 6]
Finding the extrema of functionals is similar to finding the maxima and minima of functions. The maxima and minima of a function may be located by finding the points where its derivative vanishes (i.e., is equal to zero). The extrema of functionals may be obtained by finding functions for which the functional derivative is equal to zero. This leads to solving the associated Euler–Lagrange equation.[lower-alpha 7]
Consider the functional [math]\displaystyle{ J[y] = \int_{x_1}^{x_2} L\left(x,y(x),y'(x)\right)\, dx \, . }[/math] where
If the functional [math]\displaystyle{ J[y] }[/math] attains a local minimum at [math]\displaystyle{ f, }[/math] and [math]\displaystyle{ \eta(x) }[/math] is an arbitrary function that has at least one derivative and vanishes at the endpoints [math]\displaystyle{ x_1 }[/math] and [math]\displaystyle{ x_2, }[/math] then for any number [math]\displaystyle{ \varepsilon }[/math] close to 0, [math]\displaystyle{ J[f] \le J[f + \varepsilon \eta] \, . }[/math]
The term [math]\displaystyle{ \varepsilon \eta }[/math] is called the variation of the function [math]\displaystyle{ f }[/math] and is denoted by [math]\displaystyle{ \delta f. }[/math][1][lower-alpha 8]
Substituting [math]\displaystyle{ f + \varepsilon \eta }[/math] for [math]\displaystyle{ y }[/math] in the functional [math]\displaystyle{ J[y], }[/math] the result is a function of [math]\displaystyle{ \varepsilon, }[/math]
[math]\displaystyle{ \Phi(\varepsilon) = J[f+\varepsilon\eta] \, . }[/math] Since the functional [math]\displaystyle{ J[y] }[/math] has a minimum for [math]\displaystyle{ y = f }[/math] the function [math]\displaystyle{ \Phi(\varepsilon) }[/math] has a minimum at [math]\displaystyle{ \varepsilon = 0 }[/math] and thus,[lower-alpha 9] [math]\displaystyle{ \Phi'(0) \equiv \left.\frac{d\Phi}{d\varepsilon}\right|_{\varepsilon = 0} = \int_{x_1}^{x_2} \left.\frac{dL}{d\varepsilon}\right|_{\varepsilon = 0} dx = 0 \, . }[/math]
Taking the total derivative of [math]\displaystyle{ L\left[x, y, y'\right], }[/math] where [math]\displaystyle{ y = f + \varepsilon \eta }[/math] and [math]\displaystyle{ y' = f' + \varepsilon \eta' }[/math] are considered as functions of [math]\displaystyle{ \varepsilon }[/math] rather than [math]\displaystyle{ x, }[/math] yields [math]\displaystyle{ \frac{dL}{d\varepsilon}=\frac{\partial L}{\partial y}\frac{dy}{d\varepsilon} + \frac{\partial L}{\partial y'}\frac{dy'}{d\varepsilon} }[/math] and because [math]\displaystyle{ \frac{dy}{d \varepsilon} = \eta }[/math] and [math]\displaystyle{ \frac{d y'}{d \varepsilon} = \eta', }[/math] [math]\displaystyle{ \frac{dL}{d\varepsilon}=\frac{\partial L}{\partial y}\eta + \frac{\partial L}{\partial y'}\eta'. }[/math]
Therefore, [math]\displaystyle{ \begin{align} \int_{x_1}^{x_2} \left.\frac{dL}{d\varepsilon}\right|_{\varepsilon = 0} dx & = \int_{x_1}^{x_2} \left(\frac{\partial L}{\partial f} \eta + \frac{\partial L}{\partial f'} \eta'\right)\, dx \\ & = \int_{x_1}^{x_2} \frac{\partial L}{\partial f} \eta \, dx + \left.\frac{\partial L}{\partial f'} \eta \right|_{x_1}^{x_2} - \int_{x_1}^{x_2} \eta \frac{d}{dx}\frac{\partial L}{\partial f'} \, dx \\ & = \int_{x_1}^{x_2} \left(\frac{\partial L}{\partial f} \eta - \eta \frac{d}{dx}\frac{\partial L}{\partial f'} \right)\, dx\\ \end{align} }[/math] where [math]\displaystyle{ L\left[x, y, y'\right] \to L\left[x, f, f'\right] }[/math] when [math]\displaystyle{ \varepsilon = 0 }[/math] and we have used integration by parts on the second term. The second term on the second line vanishes because [math]\displaystyle{ \eta = 0 }[/math] at [math]\displaystyle{ x_1 }[/math] and [math]\displaystyle{ x_2 }[/math] by definition. Also, as previously mentioned the left side of the equation is zero so that [math]\displaystyle{ \int_{x_1}^{x_2} \eta (x) \left(\frac{\partial L}{\partial f} - \frac{d}{dx}\frac{\partial L}{\partial f'} \right) \, dx = 0 \, . }[/math]
According to the fundamental lemma of calculus of variations, the part of the integrand in parentheses is zero, i.e. [math]\displaystyle{ \frac{\partial L}{\partial f} -\frac{d}{dx} \frac{\partial L}{\partial f'}=0 }[/math] which is called the Euler–Lagrange equation. The left hand side of this equation is called the functional derivative of [math]\displaystyle{ J[f] }[/math] and is denoted [math]\displaystyle{ \delta J/\delta f(x). }[/math]
In general this gives a second-order ordinary differential equation which can be solved to obtain the extremal function [math]\displaystyle{ f(x). }[/math] The Euler–Lagrange equation is a necessary, but not sufficient, condition for an extremum [math]\displaystyle{ J[f]. }[/math] A sufficient condition for a minimum is given in the section Variations and sufficient condition for a minimum.
In order to illustrate this process, consider the problem of finding the extremal function [math]\displaystyle{ y = f(x), }[/math] which is the shortest curve that connects two points [math]\displaystyle{ \left(x_1, y_1\right) }[/math] and [math]\displaystyle{ \left(x_2, y_2\right). }[/math] The arc length of the curve is given by [math]\displaystyle{ A[y] = \int_{x_1}^{x_2} \sqrt{1 + [ y'(x) ]^2} \, dx \, , }[/math] with [math]\displaystyle{ y'(x) = \frac{dy}{dx} \, , \ \ y_1=f(x_1) \, , \ \ y_2=f(x_2) \, . }[/math] Note that assuming y is a function of x loses generality; ideally both should be a function of some other parameter. This approach is good solely for instructive purposes.
The Euler–Lagrange equation will now be used to find the extremal function [math]\displaystyle{ f(x) }[/math] that minimizes the functional [math]\displaystyle{ A[y]. }[/math] [math]\displaystyle{ \frac{\partial L}{\partial f} -\frac{d}{dx} \frac{\partial L}{\partial f'}=0 }[/math] with [math]\displaystyle{ L = \sqrt{1 + [ f'(x) ]^2} \, . }[/math]
Since [math]\displaystyle{ f }[/math] does not appear explicitly in [math]\displaystyle{ L, }[/math] the first term in the Euler–Lagrange equation vanishes for all [math]\displaystyle{ f(x) }[/math] and thus, [math]\displaystyle{ \frac{d}{dx} \frac{\partial L}{\partial f'} = 0 \, . }[/math] Substituting for [math]\displaystyle{ L }[/math] and taking the derivative, [math]\displaystyle{ \frac{d}{dx} \ \frac{f'(x)} {\sqrt{1 + [f'(x)]^2}} \ = 0 \, . }[/math]
Thus [math]\displaystyle{ \frac{f'(x)}{\sqrt{1+[f'(x)]^2}} = c \, , }[/math] for some constant [math]\displaystyle{ c. }[/math] Then [math]\displaystyle{ \frac{[f'(x)]^2}{1+[f'(x)]^2} = c^2 \, , }[/math] where [math]\displaystyle{ 0 \le c^2\lt 1. }[/math] Solving, we get [math]\displaystyle{ [f'(x)]^2=\frac{c^2}{1-c^2} }[/math] which implies that [math]\displaystyle{ f'(x)=m }[/math] is a constant and therefore that the shortest curve that connects two points [math]\displaystyle{ \left(x_1, y_1\right) }[/math] and [math]\displaystyle{ \left(x_2, y_2\right) }[/math] is [math]\displaystyle{ f(x) = m x + b \qquad \text{with} \ \ m = \frac{y_2 - y_1}{x_2 - x_1} \quad \text{and} \quad b = \frac{x_2 y_1 - x_1 y_2}{x_2 - x_1} }[/math] and we have thus found the extremal function [math]\displaystyle{ f(x) }[/math] that minimizes the functional [math]\displaystyle{ A[y] }[/math] so that [math]\displaystyle{ A[f] }[/math] is a minimum. The equation for a straight line is [math]\displaystyle{ y = f(x). }[/math] In other words, the shortest distance between two points is a straight line.[lower-alpha 10]
In physics problems it may be the case that [math]\displaystyle{ \frac{\partial L}{\partial x} = 0, }[/math] meaning the integrand is a function of [math]\displaystyle{ f(x) }[/math] and [math]\displaystyle{ f'(x) }[/math] but [math]\displaystyle{ x }[/math] does not appear separately. In that case, the Euler–Lagrange equation can be simplified to the Beltrami identity[16] [math]\displaystyle{ L - f' \frac{\partial L}{\partial f'} = C \, , }[/math] where [math]\displaystyle{ C }[/math] is a constant. The left hand side is the Legendre transformation of [math]\displaystyle{ L }[/math] with respect to [math]\displaystyle{ f'(x). }[/math]
The intuition behind this result is that, if the variable [math]\displaystyle{ x }[/math] is actually time, then the statement [math]\displaystyle{ \frac{\partial L}{\partial x} = 0 }[/math] implies that the Lagrangian is time-independent. By Noether's theorem, there is an associated conserved quantity. In this case, this quantity is the Hamiltonian, the Legendre transform of the Lagrangian, which (often) coincides with the energy of the system. This is (minus) the constant in Beltrami's identity.
If [math]\displaystyle{ S }[/math] depends on higher-derivatives of [math]\displaystyle{ y(x), }[/math] that is, if [math]\displaystyle{ S = \int_{a}^{b} f(x, y(x), y'(x), \dots, y^{(n)}(x)) dx, }[/math] then [math]\displaystyle{ y }[/math] must satisfy the Euler–Poisson equation,[17] [math]\displaystyle{ \frac{\partial f}{\partial y} - \frac{d}{dx} \left( \frac{\partial f}{\partial y'} \right) + \dots + (-1)^{n} \frac{d^n}{dx^n} \left[ \frac{\partial f}{\partial y^{(n)}} \right]= 0. }[/math]
The discussion thus far has assumed that extremal functions possess two continuous derivatives, although the existence of the integral [math]\displaystyle{ J }[/math] requires only first derivatives of trial functions. The condition that the first variation vanishes 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 [math]\displaystyle{ L }[/math] has continuous first and second derivatives with respect to all of its arguments, and if [math]\displaystyle{ \frac{\partial^2 L}{\partial f'^2} \ne 0, }[/math] then [math]\displaystyle{ f }[/math] has two continuous derivatives, and it satisfies the Euler–Lagrange equation.
Hilbert was the first to give good conditions for the Euler–Lagrange equations to give a stationary solution. Within a convex area and a positive thrice differentiable Lagrangian the solutions are composed of a countable collection of sections that either go along the boundary or satisfy the Euler–Lagrange equations in the interior.
However Lavrentiev in 1926 showed that there are circumstances where there is no optimum solution but one can be approached arbitrarily closely by increasing numbers of sections. The Lavrentiev Phenomenon identifies a difference in the infimum of a minimization problem across different classes of admissible functions. For instance the following problem, presented by Manià in 1934:[18] [math]\displaystyle{ L[x] = \int_0^1 (x^3-t)^2 x'^6, }[/math] [math]\displaystyle{ {A} = \{x \in W^{1,1}(0,1) : x(0)=0,\ x(1)=1\}. }[/math]
Clearly, [math]\displaystyle{ x(t) = t^{\frac{1}{3}} }[/math]minimizes the functional, but we find any function [math]\displaystyle{ x \in W^{1, \infty} }[/math] gives a value bounded away from the infimum.
Examples (in one-dimension) are traditionally manifested across [math]\displaystyle{ W^{1,1} }[/math] and [math]\displaystyle{ W^{1,\infty}, }[/math] but Ball and Mizel[19] procured the first functional that displayed Lavrentiev's Phenomenon across [math]\displaystyle{ W^{1,p} }[/math] and [math]\displaystyle{ W^{1,q} }[/math] for [math]\displaystyle{ 1 \leq p \lt q \lt \infty. }[/math] There are several results that gives criteria under which the phenomenon does not occur - for instance 'standard growth', a Lagrangian with no dependence on the second variable, or an approximating sequence satisfying Cesari's Condition (D) - but results are often particular, and applicable to a small class of functionals.
Connected with the Lavrentiev Phenomenon is the repulsion property: any functional displaying Lavrentiev's Phenomenon will display the weak repulsion property.[20]
For example, if [math]\displaystyle{ \varphi(x, y) }[/math] denotes the displacement of a membrane above the domain [math]\displaystyle{ D }[/math] in the [math]\displaystyle{ x,y }[/math] plane, then its potential energy is proportional to its surface area: [math]\displaystyle{ U[\varphi] = \iint_D \sqrt{1 +\nabla \varphi \cdot \nabla \varphi} \,dx\,dy. }[/math] Plateau's problem consists of finding a function that minimizes the surface area while assuming prescribed values on the boundary of [math]\displaystyle{ D }[/math]; the solutions are called minimal surfaces. The Euler–Lagrange equation for this problem is nonlinear: [math]\displaystyle{ \varphi_{xx}(1 + \varphi_y^2) + \varphi_{yy}(1 + \varphi_x^2) - 2\varphi_x \varphi_y \varphi_{xy} = 0. }[/math] See Courant (1950) for details.
It is often sufficient to consider only small displacements of the membrane, whose energy difference from no displacement is approximated by [math]\displaystyle{ V[\varphi] = \frac{1}{2}\iint_D \nabla \varphi \cdot \nabla \varphi \, dx\, dy. }[/math] The functional [math]\displaystyle{ V }[/math] is to be minimized among all trial functions [math]\displaystyle{ \varphi }[/math] that assume prescribed values on the boundary of [math]\displaystyle{ D. }[/math] If [math]\displaystyle{ u }[/math] is the minimizing function and [math]\displaystyle{ v }[/math] is an arbitrary smooth function that vanishes on the boundary of [math]\displaystyle{ D, }[/math] then the first variation of [math]\displaystyle{ V[u + \varepsilon v] }[/math] must vanish: [math]\displaystyle{ \left.\frac{d}{d\varepsilon} V[u + \varepsilon v]\right|_{\varepsilon=0} = \iint_D \nabla u \cdot \nabla v \, dx\,dy = 0. }[/math] Provided that u has two derivatives, we may apply the divergence theorem to obtain [math]\displaystyle{ \iint_D \nabla \cdot (v \nabla u) \,dx\,dy = \iint_D \nabla u \cdot \nabla v + v \nabla \cdot \nabla u \,dx\,dy = \int_C v \frac{\partial u}{\partial n} \, ds, }[/math] where [math]\displaystyle{ C }[/math] is the boundary of [math]\displaystyle{ D, }[/math] [math]\displaystyle{ s }[/math] is arclength along [math]\displaystyle{ C }[/math] and [math]\displaystyle{ \partial u / \partial n }[/math] is the normal derivative of [math]\displaystyle{ u }[/math] on [math]\displaystyle{ C. }[/math] Since [math]\displaystyle{ v }[/math] vanishes on [math]\displaystyle{ C }[/math] and the first variation vanishes, the result is [math]\displaystyle{ \iint_D v\nabla \cdot \nabla u \,dx\,dy =0 }[/math] for all smooth functions v that vanish on the boundary of [math]\displaystyle{ D. }[/math] The proof for the case of one dimensional integrals may be adapted to this case to show that [math]\displaystyle{ \nabla \cdot \nabla u= 0 }[/math]in [math]\displaystyle{ D. }[/math]
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 the Dirichlet principle in honor of his teacher Peter Gustav Lejeune Dirichlet. However Weierstrass gave an example of a variational problem with no solution: minimize [math]\displaystyle{ W[\varphi] = \int_{-1}^{1} (x\varphi')^2 \, dx }[/math] among all functions [math]\displaystyle{ \varphi }[/math] that satisfy [math]\displaystyle{ \varphi(-1)=-1 }[/math] and [math]\displaystyle{ \varphi(1)=1. }[/math] [math]\displaystyle{ W }[/math] 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 [math]\displaystyle{ W=0. }[/math][lower-alpha 11] 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).
A more general expression for the potential energy of a membrane is [math]\displaystyle{ V[\varphi] = \iint_D \left[ \frac{1}{2} \nabla \varphi \cdot \nabla \varphi + f(x,y) \varphi \right] \, dx\,dy \, + \int_C \left[ \frac{1}{2} \sigma(s) \varphi^2 + g(s) \varphi \right] \, ds. }[/math] This corresponds to an external force density [math]\displaystyle{ f(x,y) }[/math] in [math]\displaystyle{ D, }[/math] an external force [math]\displaystyle{ g(s) }[/math] on the boundary [math]\displaystyle{ C, }[/math] and elastic forces with modulus [math]\displaystyle{ \sigma(s) }[/math]acting on [math]\displaystyle{ C. }[/math] The function that minimizes the potential energy with no restriction on its boundary values will be denoted by [math]\displaystyle{ u. }[/math] Provided that [math]\displaystyle{ f }[/math] and [math]\displaystyle{ g }[/math] are continuous, regularity theory implies that the minimizing function [math]\displaystyle{ u }[/math] will have two derivatives. In taking the first variation, no boundary condition need be imposed on the increment [math]\displaystyle{ v. }[/math] The first variation of [math]\displaystyle{ V[u + \varepsilon v] }[/math] is given by [math]\displaystyle{ \iint_D \left[ \nabla u \cdot \nabla v + f v \right] \, dx\, dy + \int_C \left[ \sigma u v + g v \right] \, ds = 0. }[/math] If we apply the divergence theorem, the result is [math]\displaystyle{ \iint_D \left[ -v \nabla \cdot \nabla u + v f \right] \, dx \, dy + \int_C v \left[ \frac{\partial u}{\partial n} + \sigma u + g \right] \, ds =0. }[/math] If we first set [math]\displaystyle{ v = 0 }[/math] on [math]\displaystyle{ C, }[/math] the boundary integral vanishes, and we conclude as before that [math]\displaystyle{ - \nabla \cdot \nabla u + f =0 }[/math] in [math]\displaystyle{ D. }[/math] Then if we allow [math]\displaystyle{ v }[/math] to assume arbitrary boundary values, this implies that [math]\displaystyle{ u }[/math] must satisfy the boundary condition [math]\displaystyle{ \frac{\partial u}{\partial n} + \sigma u + g =0, }[/math] on [math]\displaystyle{ C. }[/math] This boundary condition is a consequence of the minimizing property of [math]\displaystyle{ u }[/math]: it is not imposed beforehand. Such conditions are called natural boundary conditions.
The preceding reasoning is not valid if [math]\displaystyle{ \sigma }[/math] vanishes identically on [math]\displaystyle{ C. }[/math] In such a case, we could allow a trial function [math]\displaystyle{ \varphi \equiv c, }[/math] where [math]\displaystyle{ c }[/math] is a constant. For such a trial function, [math]\displaystyle{ V[c] = c\left[ \iint_D f \, dx\,dy + \int_C g \, ds \right]. }[/math] By appropriate choice of [math]\displaystyle{ c, }[/math] [math]\displaystyle{ V }[/math] can assume any value unless the quantity inside the brackets vanishes. Therefore, the variational problem is meaningless unless [math]\displaystyle{ \iint_D f \, dx\,dy + \int_C g \, ds =0. }[/math] 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).
Both one-dimensional and multi-dimensional eigenvalue problems can be formulated as variational problems.
The Sturm–Liouville eigenvalue problem involves a general quadratic form [math]\displaystyle{ Q[y] = \int_{x_1}^{x_2} \left[ p(x) y'(x)^2 + q(x) y(x)^2 \right] \, dx, }[/math] where [math]\displaystyle{ y }[/math]is restricted to functions that satisfy the boundary conditions [math]\displaystyle{ y(x_1)=0, \quad y(x_2)=0. }[/math] Let [math]\displaystyle{ R }[/math] be a normalization integral [math]\displaystyle{ R[y] =\int_{x_1}^{x_2} r(x)y(x)^2 \, dx. }[/math] The functions [math]\displaystyle{ p(x) }[/math] and [math]\displaystyle{ r(x) }[/math] are required to be everywhere positive and bounded away from zero. The primary variational problem is to minimize the ratio [math]\displaystyle{ Q/R }[/math] among all [math]\displaystyle{ y }[/math] satisfying the endpoint conditions, which is equivalent to minimizing [math]\displaystyle{ Q[y] }[/math] under the constraint that [math]\displaystyle{ R[y] }[/math] is constant. It is shown below that the Euler–Lagrange equation for the minimizing [math]\displaystyle{ u }[/math] is [math]\displaystyle{ -(p u')' +q u -\lambda r u = 0, }[/math] where [math]\displaystyle{ \lambda }[/math] is the quotient [math]\displaystyle{ \lambda = \frac{Q[u]}{R[u]}. }[/math] It can be shown (see Gelfand and Fomin 1963) that the minimizing [math]\displaystyle{ u }[/math] has two derivatives and satisfies the Euler–Lagrange equation. The associated [math]\displaystyle{ \lambda }[/math] will be denoted by [math]\displaystyle{ \lambda_1 }[/math]; it is the lowest eigenvalue for this equation and boundary conditions. The associated minimizing function will be denoted by [math]\displaystyle{ u_1(x). }[/math] This variational characterization of eigenvalues leads to the Rayleigh–Ritz method: choose an approximating [math]\displaystyle{ u }[/math] 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 [math]\displaystyle{ Q }[/math] under the additional constraint [math]\displaystyle{ \int_{x_1}^{x_2} r(x) u_1(x) y(x) \, dx = 0. }[/math] 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 [math]\displaystyle{ y }[/math] vanish at the endpoints, we may not impose any condition at the endpoints, and set [math]\displaystyle{ Q[y] = \int_{x_1}^{x_2} \left[ p(x) y'(x)^2 + q(x)y(x)^2 \right] \, dx + a_1 y(x_1)^2 + a_2 y(x_2)^2, }[/math] where [math]\displaystyle{ a_1 }[/math] and [math]\displaystyle{ a_2 }[/math] are arbitrary. If we set [math]\displaystyle{ y = u + \varepsilon v }[/math]the first variation for the ratio [math]\displaystyle{ Q/R }[/math] is [math]\displaystyle{ V_1 = \frac{2}{R[u]} \left( \int_{x_1}^{x_2} \left[ p(x) u'(x)v'(x) + q(x)u(x)v(x) -\lambda r(x) u(x) v(x) \right] \, dx + a_1 u(x_1)v(x_1) + a_2 u(x_2)v(x_2) \right), }[/math] where λ is given by the ratio [math]\displaystyle{ Q[u]/R[u] }[/math] as previously. After integration by parts, [math]\displaystyle{ \frac{R[u]}{2} V_1 = \int_{x_1}^{x_2} v(x) \left[ -(p u')' + q u -\lambda r u \right] \, dx + v(x_1)[ -p(x_1)u'(x_1) + a_1 u(x_1)] + v(x_2) [p(x_2) u'(x_2) + a_2 u(x_2)]. }[/math] If we first require that [math]\displaystyle{ v }[/math] vanish at the endpoints, the first variation will vanish for all such [math]\displaystyle{ v }[/math] only if [math]\displaystyle{ -(p u')' + q u -\lambda r u =0 \quad \hbox{for} \quad x_1 \lt x \lt x_2. }[/math] If [math]\displaystyle{ u }[/math] satisfies this condition, then the first variation will vanish for arbitrary [math]\displaystyle{ v }[/math] only if [math]\displaystyle{ -p(x_1)u'(x_1) + a_1 u(x_1)=0, \quad \hbox{and} \quad p(x_2) u'(x_2) + a_2 u(x_2)=0. }[/math] 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.
Eigenvalue problems in higher dimensions are defined in analogy with the one-dimensional case. For example, given a domain [math]\displaystyle{ D }[/math] with boundary [math]\displaystyle{ B }[/math] in three dimensions we may define [math]\displaystyle{ Q[\varphi] = \iiint_D p(X) \nabla \varphi \cdot \nabla \varphi + q(X) \varphi^2 \, dx \, dy \, dz + \iint_B \sigma(S) \varphi^2 \, dS, }[/math] and [math]\displaystyle{ R[\varphi] = \iiint_D r(X) \varphi(X)^2 \, dx \, dy \, dz. }[/math] Let [math]\displaystyle{ u }[/math] be the function that minimizes the quotient [math]\displaystyle{ Q[\varphi] / R[\varphi], }[/math] with no condition prescribed on the boundary [math]\displaystyle{ B. }[/math] The Euler–Lagrange equation satisfied by [math]\displaystyle{ u }[/math] is [math]\displaystyle{ -\nabla \cdot (p(X) \nabla u) + q(x) u - \lambda r(x) u=0, }[/math] where [math]\displaystyle{ \lambda = \frac{Q[u]}{R[u]}. }[/math] The minimizing [math]\displaystyle{ u }[/math] must also satisfy the natural boundary condition [math]\displaystyle{ p(S) \frac{\partial u}{\partial n} + \sigma(S) u = 0, }[/math] on the boundary [math]\displaystyle{ B. }[/math] 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).
Fermat's principle states that light takes a path that (locally) minimizes the optical length between its endpoints. If the [math]\displaystyle{ x }[/math]-coordinate is chosen as the parameter along the path, and [math]\displaystyle{ y=f(x) }[/math] along the path, then the optical length is given by [math]\displaystyle{ A[f] = \int_{x_0}^{x_1} n(x,f(x)) \sqrt{1 + f'(x)^2} dx, }[/math] where the refractive index [math]\displaystyle{ n(x,y) }[/math] depends upon the material. If we try [math]\displaystyle{ f(x) = f_0 (x) + \varepsilon f_1 (x) }[/math] then the first variation of [math]\displaystyle{ A }[/math] (the derivative of [math]\displaystyle{ A }[/math] with respect to ε) is [math]\displaystyle{ \delta A[f_0,f_1] = \int_{x_0}^{x_1} \left[ \frac{ n(x,f_0) f_0'(x) f_1'(x)}{\sqrt{1 + f_0'(x)^2}} + n_y (x,f_0) f_1 \sqrt{1 + f_0'(x)^2} \right] dx. }[/math]
After integration by parts of the first term within brackets, we obtain the Euler–Lagrange equation [math]\displaystyle{ -\frac{d}{dx} \left[\frac{ n(x,f_0) f_0'}{\sqrt{1 + f_0'^2}} \right] + n_y (x,f_0) \sqrt{1 + f_0'(x)^2} = 0. }[/math]
The light rays may be determined by integrating this equation. This formalism is used in the context of Lagrangian optics and Hamiltonian optics.
There is a discontinuity of the refractive index when light enters or leaves a lens. Let [math]\displaystyle{ n(x,y) = \begin{cases} n_{(-)} & \text{if} \quad x\lt 0, \\ n_{(+)} & \text{if} \quad x\gt 0, \end{cases} }[/math] where [math]\displaystyle{ n_{(-)} }[/math] and [math]\displaystyle{ n_{(+)} }[/math] are constants. Then the Euler–Lagrange equation holds as before in the region where [math]\displaystyle{ x \lt 0 }[/math] or [math]\displaystyle{ x \gt 0, }[/math] and in fact the path is a straight line there, since the refractive index is constant. At the [math]\displaystyle{ x = 0, }[/math] [math]\displaystyle{ f }[/math] must be continuous, but [math]\displaystyle{ f' }[/math] may be discontinuous. After integration by parts in the separate regions and using the Euler–Lagrange equations, the first variation takes the form [math]\displaystyle{ \delta A[f_0,f_1] = f_1(0)\left[ n_{(-)}\frac{f_0'(0^-)}{\sqrt{1 + f_0'(0^-)^2}} - n_{(+)}\frac{f_0'(0^+)}{\sqrt{1 + f_0'(0^+)^2}} \right]. }[/math]
The factor multiplying [math]\displaystyle{ n_{(-)} }[/math] is the sine of angle of the incident ray with the [math]\displaystyle{ x }[/math] axis, and the factor multiplying [math]\displaystyle{ n_{(+)} }[/math] is the sine of angle of the refracted ray with the [math]\displaystyle{ x }[/math] 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.
It is expedient to use vector notation: let [math]\displaystyle{ X = (x_1,x_2,x_3), }[/math] let [math]\displaystyle{ t }[/math] be a parameter, let [math]\displaystyle{ X(t) }[/math] be the parametric representation of a curve [math]\displaystyle{ C, }[/math] and let [math]\displaystyle{ \dot X(t) }[/math] be its tangent vector. The optical length of the curve is given by [math]\displaystyle{ A[C] = \int_{t_0}^{t_1} n(X) \sqrt{ \dot X \cdot \dot X} \, dt. }[/math]
Note that this integral is invariant with respect to changes in the parametric representation of [math]\displaystyle{ C. }[/math] The Euler–Lagrange equations for a minimizing curve have the symmetric form [math]\displaystyle{ \frac{d}{dt} P = \sqrt{ \dot X \cdot \dot X} \, \nabla n, }[/math] where [math]\displaystyle{ P = \frac{n(X) \dot X}{\sqrt{\dot X \cdot \dot X} }. }[/math]
It follows from the definition that [math]\displaystyle{ P }[/math] satisfies [math]\displaystyle{ P \cdot P = n(X)^2. }[/math]
Therefore, the integral may also be written as [math]\displaystyle{ A[C] = \int_{t_0}^{t_1} P \cdot \dot X \, dt. }[/math]
This form suggests that if we can find a function [math]\displaystyle{ \psi }[/math] whose gradient is given by [math]\displaystyle{ P, }[/math] then the integral [math]\displaystyle{ A }[/math] is given by the difference of [math]\displaystyle{ \psi }[/math] 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 [math]\displaystyle{ \psi. }[/math]In order to find such a function, we turn to the wave equation, which governs the propagation of light. This formalism is used in the context of Lagrangian optics and Hamiltonian optics.
The wave equation for an inhomogeneous medium is [math]\displaystyle{ u_{tt} = c^2 \nabla \cdot \nabla u, }[/math] where [math]\displaystyle{ c }[/math] is the velocity, which generally depends upon [math]\displaystyle{ X. }[/math] Wave fronts for light are characteristic surfaces for this partial differential equation: they satisfy [math]\displaystyle{ \varphi_t^2 = c(X)^2 \, \nabla \varphi \cdot \nabla \varphi. }[/math]
We may look for solutions in the form [math]\displaystyle{ \varphi(t,X) = t - \psi(X). }[/math]
In that case, [math]\displaystyle{ \psi }[/math] satisfies [math]\displaystyle{ \nabla \psi \cdot \nabla \psi = n^2, }[/math] where [math]\displaystyle{ n=1/c. }[/math] According to the theory of first-order partial differential equations, if [math]\displaystyle{ P = \nabla \psi, }[/math] then [math]\displaystyle{ P }[/math] satisfies [math]\displaystyle{ \frac{dP}{ds} = n \, \nabla n, }[/math] along a system of curves (the light rays) that are given by [math]\displaystyle{ \frac{dX}{ds} = P. }[/math]
These equations for solution of a first-order partial differential equation are identical to the Euler–Lagrange equations if we make the identification [math]\displaystyle{ \frac{ds}{dt} = \frac{\sqrt{ \dot X \cdot \dot X} }{n}. }[/math]
We conclude that the function [math]\displaystyle{ \psi }[/math] is the value of the minimizing integral [math]\displaystyle{ A }[/math] 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.
In classical mechanics, the action, [math]\displaystyle{ S, }[/math] is defined as the time integral of the Lagrangian, [math]\displaystyle{ L. }[/math] The Lagrangian is the difference of energies, [math]\displaystyle{ L = T - U, }[/math] where [math]\displaystyle{ T }[/math] is the kinetic energy of a mechanical system and [math]\displaystyle{ U }[/math] its potential energy. Hamilton's principle (or the action principle) states that the motion of a conservative holonomic (integrable constraints) mechanical system is such that the action integral [math]\displaystyle{ S = \int_{t_0}^{t_1} L(x, \dot x, t) \, dt }[/math] is stationary with respect to variations in the path [math]\displaystyle{ x(t). }[/math] The Euler–Lagrange equations for this system are known as Lagrange's equations: [math]\displaystyle{ \frac{d}{dt} \frac{\partial L}{\partial \dot x} = \frac{\partial L}{\partial x}, }[/math] and they are equivalent to Newton's equations of motion (for such systems).
The conjugate momenta [math]\displaystyle{ P }[/math] are defined by [math]\displaystyle{ p = \frac{\partial L}{\partial \dot x}. }[/math] For example, if [math]\displaystyle{ T = \frac{1}{2} m \dot x^2, }[/math] then [math]\displaystyle{ p = m \dot x. }[/math] Hamiltonian mechanics results if the conjugate momenta are introduced in place of [math]\displaystyle{ \dot x }[/math] by a Legendre transformation of the Lagrangian [math]\displaystyle{ L }[/math] into the Hamiltonian [math]\displaystyle{ H }[/math] defined by [math]\displaystyle{ H(x, p, t) = p \,\dot x - L(x,\dot x, t). }[/math] The Hamiltonian is the total energy of the system: [math]\displaystyle{ H = T + U. }[/math] 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 [math]\displaystyle{ X. }[/math] This function is a solution of the Hamilton–Jacobi equation: [math]\displaystyle{ \frac{\partial \psi}{\partial t} + H\left(x,\frac{\partial \psi}{\partial x},t\right) = 0. }[/math]
Further applications of the calculus of variations include the following:
Calculus of variations is concerned with variations of functionals, which are small changes in the functional's value due to small changes in the function that is its argument. The first variation[lower-alpha 12] is defined as the linear part of the change in the functional, and the second variation[lower-alpha 13] is defined as the quadratic part.[22]
For example, if [math]\displaystyle{ J[y] }[/math] is a functional with the function [math]\displaystyle{ y = y(x) }[/math] as its argument, and there is a small change in its argument from [math]\displaystyle{ y }[/math] to [math]\displaystyle{ y + h, }[/math] where [math]\displaystyle{ h = h(x) }[/math] is a function in the same function space as [math]\displaystyle{ y, }[/math] then the corresponding change in the functional is[lower-alpha 14] [math]\displaystyle{ \Delta J[h] = J[y+h] - J[y]. }[/math]
The functional [math]\displaystyle{ J[y] }[/math] is said to be differentiable if [math]\displaystyle{ \Delta J[h] = \varphi [h] + \varepsilon \|h\|, }[/math] where [math]\displaystyle{ \varphi[h] }[/math] is a linear functional,[lower-alpha 15] [math]\displaystyle{ \|h\| }[/math] is the norm of [math]\displaystyle{ h, }[/math][lower-alpha 16] and [math]\displaystyle{ \varepsilon \to 0 }[/math] as [math]\displaystyle{ \|h\| \to 0. }[/math] The linear functional [math]\displaystyle{ \varphi[h] }[/math] is the first variation of [math]\displaystyle{ J[y] }[/math] and is denoted by,[26] [math]\displaystyle{ \delta J[h] = \varphi[h]. }[/math]
The functional [math]\displaystyle{ J[y] }[/math] is said to be twice differentiable if [math]\displaystyle{ \Delta J[h] = \varphi_1 [h] + \varphi_2 [h] + \varepsilon \|h\|^2, }[/math] where [math]\displaystyle{ \varphi_1[h] }[/math] is a linear functional (the first variation), [math]\displaystyle{ \varphi_2[h] }[/math] is a quadratic functional,[lower-alpha 17] and [math]\displaystyle{ \varepsilon \to 0 }[/math] as [math]\displaystyle{ \|h\| \to 0. }[/math] The quadratic functional [math]\displaystyle{ \varphi_2[h] }[/math] is the second variation of [math]\displaystyle{ J[y] }[/math] and is denoted by,[28] [math]\displaystyle{ \delta^2 J[h] = \varphi_2[h]. }[/math]
The second variation [math]\displaystyle{ \delta^2 J[h] }[/math] is said to be strongly positive if [math]\displaystyle{ \delta^2J[h] \ge k \|h\|^2, }[/math] for all [math]\displaystyle{ h }[/math] and for some constant [math]\displaystyle{ k \gt 0 }[/math].[29]
Using the above definitions, especially the definitions of first variation, second variation, and strongly positive, the following sufficient condition for a minimum of a functional can be stated.
Original source: https://en.wikipedia.org/wiki/Calculus of variations.
Read more |