I've recently discovered Wallis' formula to compute powers of cos and sine from $[0,\pi/2]$, However what If I have a function like $\cos^m (x)\sin^n(x)$ where both $m$ and $n$ are even, this function is even, so it must be symmetric to some axis.
If I want to compute the integral of this function but from $[0,k\pi]$. Can I use parity of the function to integrate from $0$ to $\pi/2$ and then use Wallis formula?
Also I've noticed that for $\cos^m (x)\sin^n(x)$ if one of $m$ or $n$ is odd then the integral on $[0,k\pi]$ is $0$, why is that?