Definition
Functionals and the first variation
Adapted
Defines functionals on spaces of curves, the admissible variations and the first variation, proves that the first variation vanishes at an extremum, and proves the fundamental lemma that turns this into a pointwise equation.
Prerequisites: Taylor's theorem
A functional is a rule that assigns a real number to each function in some class. The class used throughout this chapter is , the continuously differentiable real functions on a closed interval, with the norm
The typical functional is an integral functional
where the integrand is a given function of three real variables. We write and for its partial derivatives in the second and third slots; following custom, is also written .
-
The admissible functions are the that satisfy the side conditions of the problem, for instance the fixed end values , . They do not form a vector space: the sum of two admissible functions has the wrong end values.
-
An admissible variation (or direction) at is a function such that is admissible for all small . For fixed end values these are exactly the functions in
-
The first variation of at in the direction is
whenever this derivative exists. The function is stationary if for every admissible variation .
-
has a weak local minimum at an admissible if there is with for every admissible with ; a weak local maximum is defined in the same way. If the comparison is made with the smaller norm instead, the extremum is called strong. Every strong extremum is a weak one, so a necessary condition for weak extrema also holds for strong ones.
Let have continuous first partial derivatives on , and let .
-
First variation of an integral functional. The derivative exists and
It is linear in .
-
Necessary condition. If has a weak local extremum at an admissible , then for every admissible variation .
-
Fundamental lemma. Let be an integer and continuous on . If for every with , then for all .
Restricting to the straight line in function space turns it into an ordinary function of one real variable. An extremum of is then an extremum of that function at , so its derivative, the first variation, must vanish. The fundamental lemma says that a continuous function which integrates to zero against every test function must vanish identically: if it were positive somewhere, a test function concentrated there would detect it.
Part 1. Write and fix with . For each , the mean value theorem (the case of Taylor's theorem) applied to on the interval between and gives a with
All arguments with lie in a compact box , because are bounded. and are continuous, hence uniformly continuous on . The arguments above differ from by at most , so the right-hand side converges to uniformly in as . Uniform convergence lets us pass the limit through the integral, which gives the formula. Linearity in is visible in the formula.
Part 2. Suppose is a weak local minimum (for a maximum replace by ) and let be an admissible variation. For small the function is admissible, and is below the radius of the definition. Hence for all small : the real function has an interior local minimum at . Since is differentiable at by part 1, , that is, .
Part 3. Suppose, for a contradiction, that for some ; replacing by we may take . By continuity there is an interval with on which . Define
At the polynomial branch has a zero of order , so it and its first derivatives vanish there, matching the zero branch; the same holds at . So , , and on . Then
contradicting the hypothesis. Hence .
Where the hypotheses are used.
- Continuity of , is what makes the difference quotients converge uniformly in part 1. It is also why the problem is posed in with the norm : an integrand that depends on needs to be controlled. Arc length is an example. A zigzag curve can be uniformly within of a straight segment yet be much longer, so arc length is not continuous for the max norm, although it is continuous for .
- Admissibility of for small of both signs is used in part 2. If only were allowed (a one-sided constraint such as that is active somewhere), we would get only .
- Continuity of is used in part 3 to make positive on a whole interval. Without it the lemma fails: the function equal to at and elsewhere integrates to zero against every but is not zero. For merely integrable the conclusion becomes " except on a set that does not affect integrals".
- The class of test functions can be shrunk to functions vanishing near and , or to infinitely differentiable ones, since the used in part 3 can be replaced by a smooth bump on . The vanishing of is a statement about every admissible direction; it says nothing about second-order behaviour, which decides between minimum, maximum and saddle (see the second variation).
Take on functions with , . Is a candidate for a minimum?
Here , so and . For the admissible variation , which has , part 1 gives
As a check, expand directly: , so
whose derivative at is , as computed. Since , part 2 says is not an extremum. Indeed gives .
When the first variation can be written as for a continuous , physicists call the functional derivative . It plays the role of the gradient. In density-functional theory the ground-state density makes the energy functional stationary under a particle-number constraint. In statistical field theory the mean field solves for the free-energy functional . In data assimilation for weather prediction, the adjoint model computes the functional derivative of a misfit functional with respect to the initial state. In each case the fundamental lemma is what turns " for all " into a pointwise equation.