Hamilton's principle/Mathematics/The second variation
Every result so far has been necessary and none has been sufficient. The Euler-Lagrange equation says the first variation vanishes; it says nothing about whether the extremal is a minimum, a maximum, or neither. The second variation is the tool that begins to answer that, and this page is where the volume's central distinction — stationary against least — acquires machinery rather than assertion.
Definition

With as on Hamilton's principle/Mathematics/The first variation, the second variation is
Taylor's theorem with the first variation vanishing gives
So the sign of controls the comparison, subject to the error term — and that qualification is where the difficulty lives.
Computing it

Differentiate under the integral twice and set :
with all second partials evaluated along the extremal. This is a quadratic functional of — the analogue of the Hessian in finite dimensions.
The cross term can be removed. Since , integrate the middle term by parts; the boundary term vanishes because does, and
Substituting into (3) gives the Legendre form
with
Two terms, two coefficients, both determined by the extremal.
Necessary conditions, and the trap
If is a weak local minimum then has a minimum at for every , so
This is necessary. The temptation is to reverse it and conclude that for all makes a minimum, by analogy with the finite-dimensional second derivative test.
That inference is false in infinite dimensions. The reason is the error term in (2). In finite dimensions a positive definite Hessian is bounded below by with , which dominates the remainder. On a function space, positivity of a quadratic functional does not give such a bound: the infimum of over can be zero without being attained. The remainder is then not dominated and no conclusion follows.
Repairing this is the whole content of the sufficiency theory. It needs a strengthened positivity, and that is what the Legendre and Jacobi conditions supply.
What the two coefficients contribute
and enter (5) very differently, and seeing why motivates the next two pages.
is local and dominant. can be made enormous while stays small — a rapid, low-amplitude wiggle. Any such makes the term overwhelm the term. So if anywhere, a wiggle localised there drives negative and (7) fails. This yields as a necessary condition, derived properly on Hamilton's principle/Mathematics/The Legendre condition.
is global and accumulative. With the first term is a penalty on bending and the second may be a reward, if . Over a short interval the penalty wins. Over a long enough interval the accumulated reward can win, and turns negative even though throughout. The length at which this happens is set by conjugate points, on Hamilton's principle/Mathematics/The Jacobi condition and conjugate points.
Interval length is therefore part of the answer. The same extremal can be a minimum on and fail to be one on with , with no change to and no change to the equation it satisfies. Nothing in the Euler-Lagrange equation sees this.
The accessory problem
Equation (5) is itself a variational problem, in the unknown . Its Euler-Lagrange equation is
called the Jacobi accessory equation. Analysing the second variation thus means solving a linear second-order equation derived from the original extremal — a striking reduction, and the reason the sufficiency theory is tractable at all.
Solutions of (8) are exactly the directions in which is stationary, and its zeros are the conjugate points.
A first sight of the failure
Take on with as the extremal, endpoints zero. Then and , so
Test with , which vanishes at both ends. Using ,
This is positive for and negative for . The extremal, the integrand and the Legendre coefficient are identical in both cases. Only the interval length changed.
At exactly, (10) vanishes for this : the second variation is degenerate, and is the point conjugate to the origin. Beyond it the zero solution is stationary and is not a minimum.
Equation (10) is the volume's first exhibited demonstration that stationary does not imply least. It is a computation, not an assertion, and the geometric version of the same phenomenon — a great-circle arc past its antipode — is worked on Hamilton's principle/Mathematics/The Jacobi condition and conjugate points.
Second variation with constraints
For constrained problems the second variation is that of the augmented integrand of Hamilton's principle/Mathematics/Lagrange multipliers, evaluated with the multipliers at their solution values, and it is tested only against variations satisfying the linearised constraint. Both restrictions matter; dropping either gives the wrong sign test.
Next
Hamilton's principle/Mathematics/The Legendre condition derives the local condition and shows exactly how much it does and does not buy.
References