This is around capturing intergals in the form of: .

If m and n are 1, then we can solve this with u-substitution where u=sin(x) or u=cos(x). If m and n are 2, then we can use to figure it out.

If m is odd, you can rewrite it as m=2k+1.

This means that for the original formula:

If n is odd, we don’t have to do the power reduction to convert to cos.

If both are even, then we can reduce the integrand with this:

.. then go back through the process as necessary.