In This post you will get answer of Q.
A rod of length L and mass m is kept vertically on the ground. Its potential energy is
Solution:
The potential energy of the rod will be according to the position of the centre of mass of the rod, which is $ frac{L}{2} $ unit above the ground. So, potential energy of the rod $ =mgfrac{L}{2} $
Solution: