Using BY PART METHOD. Using the superiority list as ILATE (Inverse Logarithm Algebra Trigonometric Exponential). Taking the first function to the one which comes first in the list.
Here x is the first function, and cosec2x is the second function.
Using Integration by part
![](https://www.sarthaks.com/?qa=blob&qa_blobid=3914801868296317754)