Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2006/ii/paper-1/15c/a/solution

Vary and independently, fixing the endpoint positions. Integration by parts gives
The boundary term vanishes, so arbitrary interior variations imply
In the Lagrangian principle only is varied independently, and ; here positions and momenta are independent paths in phase space. The extremality condition is stationarity of the action, not necessarily a minimum. Along Hamiltonian motion,
so an explicitly time-independent Hamiltonian is conserved.

New to topics? Read the docs here!