I got this practice problem:
$$\int^\ 9sin(x) cos^{-3}(x)dx$$
so what I did is substitute u for cos(x), and du=-sin(x)dx
and I then got
$$\int^\ -9u^{-3}du$$
which is equal to
$$ \frac{9}2u^{-2}+C$$
I then substituted u=cosx back in and got
$$ \frac{9}2cos(x)^{-2}+C$$
But it is not right.
I don't see where I went wrong so if anyone can help me that would be great
There is nothing wrong with your answer.
$$\frac{9\cos^{-2}x}{2}=\frac{9}{2\cos^{2}x}=\frac{9}{2}\cdot\frac{1}{\cos^2x}=\frac{9\sec^2x}{2}$$ which is likely the answer in the book.