If a spring extends by x on loading, then the energy stored by the spring is (if T is tension in the spring and k is spring constant)