This question was asked in Example 3

Y=tan-¹(cosecx cotx)

Rekha Bagul's image