Solution

ID: past-exam-of-the-classical-mechanics-course-of-the-university-of-oxford/2023/3/c/iii/solution

For a time-dependent type-two generating function for a canonical transformation, the differential identity
gives , with the partial derivative taken at fixed . Here has no explicit time dependence, so the Hamiltonian correction is
As always, adding a function of time alone to the new Hamiltonian leaves Hamilton's equations unchanged. Choosing a time-independent type-two generating function for a canonical transformation fixes that irrelevant freedom and gives the displayed .

New to topics? Read the docs here!