A body of mass 2 kg suspended through a vertical spring executes simple harmonic motion of period 4s. If the oscillations are stopped and the body hangs in equilibrium, find the potential energy stored in the spring.

We know, time period of simple harmonic motion is


Given , we get




But force F is proportional to displacement x,




Therefore, Potential energy is given by



1