This question was asked in Ex 13.2, 10

Cot x by first principle

 

Aman Sharma's image