Integral of cos(x)/sin^2(x). - Math Help Forum
Of course, if m is odd, you can do the same thing, switching "sine" and "cosine". This also works if either m or n (or both) are negative but gives a "rational function" integtral rather than a polynomial integral. The specific formulas others gave may be...