Spring Potential Energy

The potential energy of a spring is given by:

U = ½ kx2