This question was asked in Ex 13.1, 17

Find the derivative of cosec x

Shiny Shaji's image