Solution

ID: past-exam-of-the-physics-1-paper-of-the-university-of-oxford/2014-resit/5/solution

Measure the vertical displacement downward from the spring's unstretched position. The kinetic energy is , while the spring and gravitational potential energies are and . Thus the Lagrangian is
Applying the Euler-Lagrange equation, , gives
Gravity shifts the equilibrium to . For displacement from that equilibrium, the equation of motion becomes , giving simple harmonic motion with angular frequency . Choosing an upward coordinate instead reverses the gravitational term, but leaves the equilibrium-relative angular frequency unchanged.

New to topics? Read the docs here!