An deal spring having force constant k is suspended from the rigid support and a block of mass Mis attached to its lower end. The mass is released from the natural length of the spring. Then the maximum extension in the spring is
Potential energy=12kx2=Mgx⇒x=2Mgk