a rod is placed vertically in x-y plane.A slight disturbance tilts its in such a way that it makes an angle(90-theta) with the horizontal

calculate acceleration of centre of mass


i have used components method by dividing g into gcostheta and gsin theta

not getting can yu please help