To take $$\int{\cot^5(x)}dx$$
I substitute $\csc(x)=u$, $du=-\csc(x)\cot(x)dx$
and then it seems like $$du = -u\cot(x)dx \quad\implies\quad \cot(x)dx=-\frac{du}{u} \tag1$$ is it not?
but then $$\begin{align} \int{\cot^5(x)}dx &= \int{[\cot^2(x)]^2}\,\cot(x)dx \tag2\\ &=\int{(u^2-1)^2\cdot\frac{-du}{u}} \tag3\\ &=-\int{\frac{u^4-2u^2+1}{u}du} \tag4\\ &=-\frac14\csc^4(x)+\csc^2(x)-\log(\csc(x)) +C \tag5 \end{align}$$
which seems wrong.
I feel like my substitution is a sham, but I don't understand why. Where is my mistake?
(note: I know that the correct solution is to substitute $\sin(x)$, don't bother. )