The first variation
The first variation of a functional is the derivative of that functional along a one-parameter family of paths, evaluated where the family passes through the path of interest. It is the exact analogue of the first derivative in ordinary calculus, and it plays the same role: it vanishes at an extremum, and its vanishing is necessary but not sufficient.
The variation defined

Take , and as on Hamilton's principle/Mathematics/Functionals and the space of paths. Fix and , and define the real function
is an ordinary function of one real variable. The first variation of at in the direction is
is stationary for if for every .
The definition is a reduction, and that is its whole value. A question about an infinite-dimensional set of competing paths becomes a question about the derivative of one real function at one point.
Computing it

Differentiate (1) under the integral sign. The hypotheses on from the previous page license this: and its first partials are continuous on a compact set, so the difference quotients converge uniformly.
where both partials are evaluated at . Setting ,
with and now evaluated along itself. Equation (4) is the first variation in its raw form. Both and appear, which is the obstacle: they are not independent, so no conclusion about the integrand follows yet.
Removing the derivative of the variation

Integrate the second term by parts:
The boundary term vanishes, because and therefore . This is the only place the fixed endpoints are used, and it is where they earn their keep. Substituting into (4),
Only now appears, and it appears multiplied by an expression that does not involve at all. Write
so that . Noether calls the Lagrange expression and it recurs under that name on Hamilton's principle/Mathematics/Noether's first theorem.
What has and has not been shown
Stationarity says (6) vanishes for every admissible . It does not yet say . An integral can vanish because its integrand vanishes, or because positive and negative contributions cancel. Ruling out the second possibility is a separate theorem, and it is the subject of Hamilton's principle/Mathematics/The fundamental lemma.
Two further cautions.
Stationary is not extremal. constrains only to first order. Whether minimises, maximises, or does neither depends on and beyond, treated on Hamilton's principle/Mathematics/The second variation.
The family is a probe, not a physical path. The paths for generally violate the equations of motion. They are comparison curves, and Hamilton described them in exactly those terms: geometrically imaginable, but dynamically impossible motion.[1]
The notation
The classical literature writes for and for the first variation, and manipulates as an operator commuting with and with . Hamilton's papers are written this way throughout; his fundamental formula reads
The operator notation is compact and correct, and this volume uses it in the history track where the sources use it. The -family notation is used in the mathematics track because it makes the hypotheses visible: it is clear what is differentiated, with respect to what, and where the result is evaluated.
Variations at free endpoints
If one or both endpoint values are not prescribed, is enlarged and the boundary term in (5) no longer vanishes. It then supplies an extra condition on the extremal, called a natural boundary condition. That case is worked on Hamilton's principle/Mathematics/Boundary terms and natural boundary conditions.
Next
Hamilton's principle/Mathematics/The fundamental lemma proves that a continuous whose integral against every admissible vanishes must itself vanish identically.