Solution

ID: past-exam-of-the-mathematics-course-of-the-year-2-of-the-natural-sciences-course-of-the-university-of-cambridge/2016/paper-2/7/a/solution

For a zero-natural-length spring, extension is the full distance between its endpoints, so the squared spring lengths are quadratic functions of the Cartesian coordinates. The Lagrangian is
The gravitational potential energy has positive derivative in the upward coordinate, giving downward forces. Applying the Euler-Lagrange equations to all four coordinates gives
The two spring forces are equal and opposite on the two masses for the connecting spring, as required by Newton's third law.

New to topics? Read the docs here!