Solution

ID: past-exam-of-the-physics-1-paper-of-the-university-of-oxford/2017/10/c/i/solution

Model the cart as a particle on a fixed plane curve, remaining constrained to the track. Its vertical velocity is , so its kinetic energy, gravitational potential energy and Lagrangian are
Consequently the canonical momentum conjugate to the horizontal coordinate is
It is not simply the horizontal component of the mechanical momentum, because a change in also moves the cart vertically. Differentiate carefully in the Euler-Lagrange equation:
Subtracting yields
The term involving accounts for the changing track geometry. An independent check is conservation of energy:

New to topics? Read the docs here!