1. The problem statement, all variables and given/known data We have a mas m attached to a vertical spring of length (l+x) where l is the natural length. 2. Relevant equations Find the Lagrangian and the hamiltonian of the system if it moves like a pendulum 3. The attempt at a solution we know that the lagrangian of a system is defined as: L=T-V T=mv2/2 V=mgy-[kr2/2] where x1=(l+x)sinθ y1=(l+x)cosθ would you chose your variables the same way?