# I must be missing something

So I've gotten the integral that i'm doing now down to:

int(cos(x)/sin^2(x) dx)

I looked it up on one of those online integral calculators to get me on the right track, and the answer is:

-1/sin(x)

It seems so simple, what am I missing?

$$\int \frac{du}{u^2} = \int u^{-2}du$$