Solution

ID: past-exam-of-the-theoretical-physics-i-course-of-the-university-of-cambridge/2018/2/a/solution

Use the downward direction of the PDF diagram. The bob's Cartesian coordinates are
Thus
The hinge and rod are massless, so only the bob contributes kinetic energy:
Because gravity points along positive , its gravitational potential energy is . The zero-rest-length spring has elastic potential energy . Put and divide by the positive constant . The equivalent Lagrangian is
Multiplying the action by a nonzero constant leaves its stationary paths unchanged. This derivation is a direct use of kinetic energy from Cartesian position vectors; no independent kinetic term should be assigned to the massless support.

New to topics? Read the docs here!