It is given that
∫cosec3 x dx
We can write it as
∫cosec3 x dx = ∫cosec x cosec2 x dx
So we get

By integration we get
= cosec x (- cot x) – ∫ (- cosec x cot x) (- cot x) dx
It can be written as
= – cosec x cot x – ∫ cosec x cot2 x dx
Here cot2 x = cosec2 x – 1
We get
= – cosec x cot x – ∫ cosec x (cosec2 x – 1) dx
By further simplification
= – cosec x cot x – ∫ cosec3 x dx + ∫ cosec x dx
We know that ∫ cosec3 x dx = 1
∫cosec3 x dx = – cosec x cot x – ∫ cosec3 x dx + ∫ cosec x dx
On further calculation
2 ∫cosec3 x dx = – cosec x cot x + ∫ cosec x dx
By integration we get
2 ∫cosec3 x dx = – cosec x cot x + log |tan x/2| + c
Here
∫cosec3 x dx = – 1/2 cosec x cot x + 1/2 log |tan x/2| + c