Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2022/iii/paper-344/3/b/solution

The functional derivative of the action is
For the Hamiltonian function
and a time-independent Lagrangian,
Therefore

New to topics? Read the docs here!