Rigid Body

When the center-of-mass of the small cylinder deviates by from the vertical position, it rotates by around its center of mass. The energy is therefore given as follows

Complete the solution.