A ball of mass m is attached to the lower end of a light vertical spring of force constant k. The upper end of the spring is fixed. The ball is released from rest with the spring at its normal (unstretched) length, and comes to rest again after descending through a distance x. Given acceleration due to gravity =g.