You can integrate any function of the form sinm x cosn x when m is odd, for any real value of n. For this procedure, keep in mind the handy trig identity sin2x + cos2x = 1. For example, here’s how you integrate

Peel off a sin x and place it next to the dx:
Apply the trig identity sin2x = 1 – cos2x to express the rest of the sines in the function as cosines:
Use the variable substitution u = cos x and du = –sin x dx:
Now that you have the function in terms of powers of u, the worst is over. You can expand the function out, turning it into a polynomial. This is just algebra:

To continue, use the Sum Rule and Constant Multiple Rule to separate this into four integrals. Don’t forget to distribute that minus sign to all four integrals!

At this point, you can evaluate each integral separately using the Power Rule:

Finally, use u = cos x to reverse the variable substitution:

Notice that when you substitute back in terms of x, the power goes next to the cos rather than next to the x, because you’re raising the entire function cos x to a power.
Similarly, you integrate any function of the form sinm x cosn x when n is odd, for any real value of m. These steps are practically the same as those in the previous example. For instance, here’s how you integrate sin–4x cos9x:
Peel off a cos x and place it next to the dx:
Apply the trig identity cos2x = 1 – sin2x to express the rest of the cosines in the function as sines:
Use the variable substitution u = sin x and du = cos x dx:
At this point, you can distribute the function and express it as a sum of powers of u.