Let us denote
$$I_{m,n} = \int \sin^m{x} \cos^n{x}\ dx$$
where $m,n$ are integers (possibly negative or zeros).
There are some well-known recurrent formulas for $I_{m,n}$
So... as an example I was trying to solve this particular integral
$$\int \frac{dx} {\sin^5{x}}$$
using these recurrent formulas and I finally got this answer
(the computations were not very long, just 1 or 2 A4 sheets):
$$F(x) = \frac{5}{8} \ln {|\tan \frac{x}{2}|} - \frac{5}{24} \cdot \frac{\cos{x}}{\sin^2{x}} - \frac{1}{6} \cdot \frac{\cos{x}}{\sin^4{x}}$$
But WA is not giving me a simple expression when I differentiate $F(x)$
Is my answer incorrect? How do I check it with some tool other than WA?
Any ideas how to verify?
EDIT: Now I fixed the issues in my calculations and I am getting this answer.
$$\frac{3}{8}\ln|\tan(\frac{x}{2})|-\frac{3}{8}\frac{\cos(x)}{\sin^{2}(x)}-\frac{1}{4}\frac{\cos(x)}{\sin^{4}(x)}$$
But it still does not match with the WA answer...
Which one is correct here?