An L-shaped bar of mass M is pivoted at one of its end so that it can freely rotate in a vertical plane, as shown in the figure.

(a) Find the value of θ0 at equilibrium.
(b) If it is slightly displaced from its equilibrium position, find the frequency of oscillation.