A uniform rod of length $2 a$ is held with onc end resting on a smooth horizontal table making an angle $\alpha$ with the vertical. Show that when the rod is released, its angular velocity when it makes an angle $\theta$ with the vertical is given by
$$
\omega-\left[\frac{6 g}{a} \frac{(\cos \alpha-\cos \theta)}{\left(1+3 \sin ^{2} \theta\right)}\right]^{1 / 2}
$$