contestada

A spring is stretched from x=0x=0 to x=dx=d, where x=0x=0 is the equilibrium position of the spring. It is then compressed from x=0x=0 to x=−dx=−d. What can be said about the energy required to stretch or compress the spring?