We have a mas m attached to a vertical spring of length (l+x) where l is the natural length.
Find the Lagrangian and the hamiltonian of the system if it moves like a pendulum
The Attempt at a Solution
we know that the lagrangian of a system is defined as:
would you chose your variables the same way?