Solution

ID: past-exam-of-the-classical-mechanics-course-of-part-b-of-the-physics-course-of-the-university-of-oxford/2016/3/a/solution

For an action functional , vary a path while fixing its endpoint coordinates. Integration by parts gives
The endpoint term vanishes. Since the interior variations are arbitrary, stationarity gives
Define canonical momentum . For a regular velocity Hessian, these relations can be inverted for , and the Legendre transform defines
Its differential is . Inserting the Euler-Lagrange equations already suggests the canonical equations.
To derive them directly from an principle of stationary action, vary the first-order action with independent and fixed endpoint . Integrating by parts gives
Therefore
The endpoint momenta need not be fixed. A singular velocity Hessian instead requires a constrained Hamiltonian formulation; the ordinary Legendre inversion is an assumption, not an identity valid for every Lagrangian.

New to topics? Read the docs here!