# Is there a conservative force acting on a spring that oscillates in SHM?

If I were to stretch a spring, then I am doing positive work in order to increase the potential energy stored in the spring. Since the equation for the potential energy in this case is given by
$U\left(x\right)=\frac{1}{2}k{x}^{2}$
i.e, the potential energy depends only on the displacement from a reference point. Then would there be a conservative force doing negative work on the spring in order to increase the potential energy or not since $U\propto {x}^{2}$ rather than x?
You can still ask an expert for help

• Questions are typically answered in as fast as 30 minutes

Solve your problem for the price of one coffee

• Math expert for every subject
• Pay only if we can solve it

devilvunga
The force pulling the spring back into equilibrium (due to the tension in the spring) is a conservative force - the very definition of a conservative force is that it's minus the gradient of some potential, i.e. $\stackrel{\to }{F}\left(x,y,z\right)=-\mathrm{\nabla }U\left(x,y,z\right)$. In the case of a spring in the xy-plane being stretched along the x axis, the equation reduces to $\stackrel{\to }{F}=-\frac{\text{d}U}{\text{d}x}\stackrel{\to }{{e}_{x}}$, which is indeed the case, since the right hand side is $-kx\stackrel{\to }{{e}_{x}}$ so that $\stackrel{\to }{F}=-kx\stackrel{\to }{{e}_{x}}$, Hooke's law.
Another way to define a conservative force is that must equal zero. In other words, the work of this force along a random closed path must equal zero. This certainly is the case, since along any path, the work done by the spring force is independent of the path in between the end points.
At any rate, the work done by the spring would indeed be minus the work done by you, since your force is anti-parallel to the spring's force.