How do I integrate the function f(x)=cos(x)/(sin^2(x))+sin(x)?