Find $\int-\csc^2x\cot xdx$
Using $\int f'f^{n}dx=\frac{f^{n+1}}{n+1}$ rule, I am getting two answers for the above question. Considering that the derivatives of $\csc x$ and $\cot x$ are $-\csc x\cot x$ and $-\csc^2x$ respectively, depending on which one of $\cot x$ or $\csc x$ i take as my $f$ I'm getting the answers as $(\cot^2x)/2 + c$ or $(\csc^2x)/2+c$ . Which one of my above answers is incorrect and why?