A body of mass
m hangs by an inextensible string that passes over a smooth mass less pulley that is fitted with a light spring of stiffness
k as shown in the figure. If the body is released from rest and the spring is relaxed, find the maximum elongation of the spring.