I have 2 questions where I have some difficulty in the solution method shown in the books.

In case of the question number 5 I DONOT understand why there is an $mga cos \theta$ in the equation of potential energy.
Here in the above question I think there should one more term $ mgl sin\alpha$ in the equation of V.
Please let me know if I an erring in any of the questions.

