$${\frac{kx^2}{2}}$$