
Arturo O. answered 05/09/18
Tutor
5.0
(66)
Experienced Physics Teacher for Physics Tutoring
Whenever you have a potential V(x) as a function of x, the force F(x) is
F(x) = -dV(x)/dx
Then
V(x) = -∫F(x)dx = -∫k(x - L)dx = -k(x - L)2/2 + c,
where c is a constant. To find c, you would need to state a known value of V0 at some reference point x0.