A mass m attached to an ideal horizontal spring of constant k is released from rest at a displacement x=2A from the equilibrium position, where A is the amplitude of the resulting motion.
(a) Calculate the potential energy of the system at the moment of release as a fraction of the total mechanical energy.
(b) Determine the speed of the mass when it subsequently passes through the equilibrium position.