This has puzzled me quite a bit . To illustrate my doubt we can take a situation where I take a block and an ideal spring and hang them in a vertical line the spring attached to the ceiling .(the spring is in its natural state initially) Now if I were asked to find the maximum elongation of this spring.
My initial approach I equate the forces,so,
$Mg=kx$
Implying , $x=Mg/k$
But using Work energy theorem , $Mgx-(1/2)kx^2=(1/2) m(0)^2-(1/2) m(0)^2$
But this gives $x=2Mg/k$
How come this disparity?
II) Will the conditions of equilibrium points change when the spring is gradually released in one case and suddenly released in other case? Will the elongation change in the above cases?