[Physics] Gravitational PE lost v Elastic PE gained in mass – spring

energy-conservationnewtonian-gravitynewtonian-mechanicspotential energyspring

If a spring has a load $m$ added to it (and so is extended by $x$), the gravitational potential energy lost by the mass will be $mgx$. The elastic potential energy gained by the spring is $\frac{1}{2}\,k x^2$; however $mg = kx$ at the equilbrium rest point, so the gravitational potential energy lost could be written as $kx^2$ .

Surely the gravitational potential energy lost by the mass should equal the elastic potential energy gained by the spring? I realise I've done something wrong here – what is it please?

Best Answer

In SHM there is no damping so the oscillation would go on forever.In order to bring the system to equilibrium an external force would be needed and the energy stored in the spring would be diissipated to overcome this force.The energy mgx where x is the point of equilibrium to which the system has been brought by an external force equals 1/2 kx^2 (stored in the spring)+ the energy dissipated to bring the oscillation to a halt.The distance h where the energy mgh is converted totally to spring energy 1/2kh^2 is the point where the mass is at the maximum distance from equilibrium and instantaneosly at rest just before reversing direction.But this is mot equilibrium and here mgis not = kh.