In the figure shown, the spring deflects by δ to position A ( the equilibrium position) when a mass m is kept on it. During free vibration, the mass is at position B at some instant. The change in potential energy of the spring mass system from position A to position B is