I'm solving an exercise about small oscillations and I have a doubt about coordinates that I have to use.
This is the text of the exercise: "A bar has mass M and lenght l. Its extremity A is hooked to a coil (with lenght at rest $l_0$), its extremity B is hooked to the point O that is the origin of axes. "
I have considered three coordinates: $x$, $y$ (that are the coords of the extremity A on the x-axes and y-axes) and $\theta$ that is the angle that the bar forms with a parallel to the y-axes.
I have to find the points of equilibrium.
I have written the coordinates of the center of mass of the bar as: $M=(x+l/2 \sin \theta, -y-l/2 \cos \theta)$ and the potential energy as $ V=\frac{1}{2}k(x^2+y^2)-Mg(y+\frac{l}{2}\cos \theta)$
Then I have posed $gradV=0$ and I have obtained:
$y=\frac{Mg}{k}$
$x=0$
$\theta=0, \pi$
My doubt is about the result of y.. I was waiting for a negative value.. could you "clarify" my ideas and tell me where I'm making a mistake?