Fundamental lemma of the calculus of variations

In mathematics, specifically in the calculus of variations, a variation $&delta;f$ of a function $f$ can be concentrated on an arbitrarily small interval, but not a single point. Accordingly, the necessary condition of extremum (functional derivative equal zero) appears in a weak formulation (variational form) integrated with an arbitrary function $&delta;f$. The fundamental lemma of the calculus of variations is typically used to transform this weak formulation into the strong formulation (differential equation), free of the integration with arbitrary function. The proof usually exploits the possibility to choose $&delta;f$ concentrated on an interval on which $f$ keeps sign (positive or negative). Several versions of the lemma are in use. Basic versions are easy to formulate and prove. More powerful versions are used when needed.

Basic version

 * If a continuous function $$f$$ on an open interval $$(a,b)$$ satisfies the equality
 * $$ \int_a^b f(x)h(x)\,\mathrm{d}x = 0 $$
 * for all compactly supported smooth functions $$h$$ on $$(a,b)$$, then $$f$$ is identically zero.

Here "smooth" may be interpreted as "infinitely differentiable", but often is interpreted as "twice continuously differentiable" or "continuously differentiable" or even just "continuous", since these weaker statements may be strong enough for a given task. "Compactly supported" means "vanishes outside $$[c,d]$$ for some $$c$$, $$d$$ such that $$a 0$$. Then take an $$h$$ that is positive on $$c, d$$ and zero elsewhere, for example


 * $$h(x) = \begin{cases}

\exp\left(-\frac{1}{(x-c)(d-x)}\right),& c < x < d \\ 0,& \mathrm{otherwise} \end{cases}$$.

Note this bump function satisfies the properties in the statement, including $$C^\infty$$. Since


 * $$\int_a^b f(x)h(x) dx > 0,$$

we reach a contradiction.

Version for two given functions

 * If a pair of continuous functions f, g on an interval (a,b) satisfies the equality
 * $$ \int_a^b ( f(x) \, h(x) + g(x) \, h'(x) ) \, \mathrm{d}x = 0 $$
 * for all compactly supported smooth functions h on (a,b), then g is differentiable, and g' = f everywhere.

The special case for g = 0 is just the basic version.

Here is the special case for f = 0 (often sufficient).


 * If a continuous function g on an interval (a,b) satisfies the equality
 * $$ \int_a^b g(x) \, h'(x) \, \mathrm{d}x = 0 $$
 * for all smooth functions h on (a,b) such that $$h(a)=h(b)=0$$, then g is constant.

If, in addition, continuous differentiability of g is assumed, then integration by parts reduces both statements to the basic version; this case is attributed to Joseph-Louis Lagrange, while the proof of differentiability of g is due to Paul du Bois-Reymond.

Versions for discontinuous functions
The given functions (f, g) may be discontinuous, provided that they are locally integrable (on the given interval). In this case, Lebesgue integration is meant, the conclusions hold almost everywhere (thus, in all continuity points), and differentiability of g is interpreted as local absolute continuity (rather than continuous differentiability). Sometimes the given functions are assumed to be piecewise continuous, in which case Riemann integration suffices, and the conclusions are stated everywhere except the finite set of discontinuity points.

Higher derivatives

 * If a tuple of continuous functions $$f_0,f_1,\dots,f_n$$ on an interval (a,b) satisfies the equality
 * $$ \int_a^b ( f_0(x) \, h(x) + f_1(x) \, h'(x) + \dots + f_n(x) \, h^{(n)}(x) ) \, \mathrm{d}x = 0 $$
 * for all compactly supported smooth functions h on (a,b), then there exist continuously differentiable functions $$ u_0,u_1,\dots,u_{n-1} $$ on (a,b) such that

\begin{align} f_0 &= u'_0, \\ f_1 &= u_0 + u'_1, \\ f_2 &= u_1 + u'_2 \\ \vdots \\ f_{n-1} &= u_{n-2} + u'_{n-1}, \\ f_n &= u_{n-1} \end{align} $$
 * everywhere.

This necessary condition is also sufficient, since the integrand becomes $$ (u_0 h)' + (u_1 h')' + \dots + (u_{n-1} h^{(n-1)})'. $$

The case n = 1 is just the version for two given functions, since $$ f=f_0=u'_0 $$ and $$ f_1=u_0, $$ thus, $$ f_0-f'_1 = 0. $$

In contrast, the case n=2 does not lead to the relation $$ f_0 - f'_1 + f''_2 = 0, $$ since the function $$ f_2 = u_1 $$ need not be differentiable twice. The sufficient condition $$ f_0 - f'_1 + f''_2 = 0 $$ is not necessary. Rather, the necessary and sufficient condition may be written as $$ f_0 - (f_1 - f'_2)' = 0 $$ for n=2, $$ f_0 - (f_1 - (f_2-f'_3)')' = 0 $$ for n=3, and so on; in general, the brackets cannot be opened because of non-differentiability.

Vector-valued functions
Generalization to vector-valued functions $$(a,b)\to\mathbb{R}^d$$ is straightforward; one applies the results for scalar functions to each coordinate separately, or treats the vector-valued case from the beginning.

Multivariable functions

 * If a continuous multivariable function f on an open set $$\Omega\subset\mathbb{R}^d$$ satisfies the equality
 * $$ \int_\Omega f(x) \, h(x) \, \mathrm{d}x = 0 $$
 * for all compactly supported smooth functions h on Ω, then f is identically zero.

Similarly to the basic version, one may consider a continuous function f on the closure of Ω, assuming that h vanishes on the boundary of Ω (rather than compactly supported).

Here is a version for discontinuous multivariable functions.


 * Let $$\Omega\subset\mathbb{R}^d$$ be an open set, and $$f\in L^2(\Omega)$$ satisfy the equality
 * $$ \int_\Omega f(x) \, h(x) \, \mathrm{d}x = 0 $$
 * for all compactly supported smooth functions h on Ω. Then f=0 (in L2, that is, almost everywhere).

Applications
This lemma is used to prove that extrema of the functional
 * $$ J[y] = \int_{x_0}^{x_1} L(t,y(t),\dot y(t)) \, \mathrm{d}t $$

are weak solutions $$y:[x_0,x_1]\to V$$ (for an appropriate vector space $$V$$) of the Euler–Lagrange equation
 * $$ {\partial L(t,y(t),\dot y(t)) \over \partial y} = {\mathrm{d} \over \mathrm{d}t} {\partial L(t,y(t),\dot y(t)) \over \partial \dot y} .$$

The Euler–Lagrange equation plays a prominent role in classical mechanics and differential geometry.