8-6 asendusega

$${\Delta U = - \int_{x_i}^{x_f} (-kx)\, dx = \frac{1}{2} k [x^2]_{x_i}^{x_f}}$$