Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2020/ii/paper-4/15b/b/solution

The defining relations for a type-2 generating function give
Hence
The exact differential changes the action only by an endpoint term. Thus the transformed variational principle has canonical one-form and yields Hamilton's equations in with

New to topics? Read the docs here!