The moment of inertia of the rod about O is 21mℓ2. The maximum angular speed of the rod is when the rod is instantaneously vertical. The energy of the rod in this conditions is 21Iω2 where I is the moment of inertia of the rod about O. when the rod is in its extreme portion, its angular velocity is zero momentarily. In this case, the center of mass is raised through h, so the increase in potential energy is mgh. This is equal to kinetic energy 21Iω2. ∴mgh=21Iω2=21(31ml2)ω2⇒h=6gℓ2ω2