$${\frac{k x^2}{2}}$$