Solution:
Key idea: When the power of sinx is odd, we keep one sinx for the differential and write the rest with sin2x=1−cos2x; then the substitution t=cosx gives a polynomial in t.
Step 1 — Rewrite the integrand.
We split off one factor sinx.
sin3xcos4x=sin2xcos4x⋅sinx
We replace sin2x by 1−cos2x.
sin2xcos4x⋅sinx=(1−cos2x)cos4xsinx
Step 2 — Substitute.
We put cosx equal to t.
t=cosx
Differentiating both sides gives the new differential.
dt=−sinxdx
So the factor sinxdx is −dt.
sinxdx=−dt
Step 3 — Integrate in terms of t.
The integrand becomes −(1−t2)t4, which we expand and integrate term by term.
∫sin3xcos4xdx=−∫(1−t2)t4dt
−∫(1−t2)t4dt=−∫(t4−t6)dt
−∫(t4−t6)dt=−5t5+7t7+C
Step 4 — Return to x.
We put back t=cosx.
−5t5+7t7+C=71cos7x−51cos5x+C
Therefore, ∫sin3xcos4xdx=71cos7x−51cos5x+C.