$${W_e = – \frac{1}{2} kx^2}$$