Question
Question: A mass $m$ on a frictionless table is attached to a hanging mass by a spring (of spring constant $K$...
A mass m on a frictionless table is attached to a hanging mass by a spring (of spring constant K and natural length l0) and a cord through a hole in the table. If the hanging mass remains stationary and the mass m moves on a circular path with angular velocity ω the radius of its circular path is

K−mω2Kl0−Mg
Solution
The mass m is undergoing circular motion with angular velocity ω at a radius r. The forces acting on mass m in the radial direction are the tension in the spring and the tension in the cord. Both forces are directed towards the center of the circular path.
The tension in the cord is equal to the weight of the hanging mass, which is Tc=Mg. This force acts radially inwards.
The spring has a natural length l0 and spring constant K. When the mass m is at a distance r from the center, the extension or compression of the spring is (r−l0). If r>l0, the spring is stretched, and it exerts an inward force Ts=K(r−l0). If r<l0, the spring is compressed, and it exerts an outward force Ts=K(l0−r).
For circular motion, the net radial force must provide the centripetal force, which is Fc=mω2r.
Case 1: Spring is stretched (r>l0). The net inward force is Ts+Tc=K(r−l0)+Mg. Equating this to the centripetal force: K(r−l0)+Mg=mω2r Kr−Kl0+Mg=mω2r Rearranging the terms to solve for r: Kr−mω2r=Kl0−Mg r(K−mω2)=Kl0−Mg
Case 2: Spring is compressed (r<l0). The net inward force is Tc−Ts=Mg−K(l0−r). Equating this to the centripetal force: Mg−K(l0−r)=mω2r Mg−Kl0+Kr=mω2r Rearranging the terms to solve for r: Kr−mω2r=Kl0−Mg r(K−mω2)=Kl0−Mg
In both cases, the equation for r is the same: r(K−mω2)=Kl0−Mg
If K−mω2=0, we can solve for r: r=K−mω2Kl0−Mg
This expression can also be written as: r=−(mω2−K)−(Mg−Kl0)=mω2−KMg−Kl0
The final answer is K−mω2Kl0−Mg.