This question was asked in Ex 7.3, 5
It is by substitution not by trigonometry?

Mayank Yadav's image