I can do these now but I am stuck on this indefinite integration.

$\displaystyle \int \frac{cos x}{sin^2 x} dx$

So I thought try letting u = sinx. du/dx = cosx. And then.

$\displaystyle \int \frac{1}{u^2} du$

$\displaystyle = 2 ln |sinx| + c$

But that is not correct answer. Can anyone please guide me.

Angus