$${A = -\frac{k}{2} (x_2^2 - x_1^2)}$$