One end of an unstretched vertical spring is attached to the ceiling and an object attached to the other end is slowly lower to its equilibrium position. If S is the gain in spring energy