Solution:
Key idea: In ∫sinmxcosnxdx with an odd power of sinx, we keep one sinx aside for d(cosx) and change the rest into cosines with sin2x=1−cos2x; the substitution t=cosx then gives a polynomial in t.
Step 1 — Separate one factor of sin x.
We write sin3x as sin2x⋅sinx and replace sin2x by 1−cos2x.
I=∫sin2xcos4xsinxdx
I=∫(1−cos2x)cos4xsinxdx
Step 2 — Substitute t = cos x.
Put t=cosx, so dt=−sinxdx. This means sinxdx=−dt.
I=−∫(1−t2)t4dt
I=−∫(t4−t6)dt
Step 3 — Integrate the polynomial.
We use the power rule on each term.
I=−(5t5−7t7)+C
I=7t7−5t5+C
Step 4 — Return to x.
We put back t=cosx.
I=7cos7x−5cos5x+C
Watch out: The minus sign from dt=−sinxdx is easy to lose. Differentiating the answer gives back sin3xcos4x only when it is kept.
Therefore, ∫sin3xcos4xdx=7cos7x−5cos5x+C.