Fig. Shows a plot of the conservation force F in a unidimensional field. The plot representing the function corresponding to the potential energy (U) in the fields is
f(x)=−dUdx(x) or U(x)=−∫F(x) dx
Here, F(x) = -kx, where k is a positive constant.