What is the derivative of $y$?
$$y=\ln(\cot^{-1}\ x)$$
If I take out the exponent $-1$, so
$$y=-\ln(\cot\ x)$$
Getting the derivative would be $$dy=-\frac{1}{\cot\ x}\ (-\csc^{2}\ x)\ dx$$
$$dy=\frac{1}{\sin\ x\ \cos\ x}\ dx$$
But if we don't take out the exponent, the derivative would be $$dy=\frac{1}{\cot^{-1}\ x}\ (\frac{-1}{1+x^{2}})\ dx$$ $$dy=-\frac{1}{(\cot^{-1}\ x)\ (1+x^{2})}\ dx$$
But if I assign a value for $x$, I get different values.
Which is the correct derivative? Or did I miss a step in derivation? Did I just possibly plugged in wrong values that's why I get different values for the two derivatives?
