Solution:
Key idea: We lower the power step by step. First we write sin6x as (sin3x)2, and sin3x=43sinx−sin3x, from the triple-angle formula for sin3x. The square is then written with sin2θ=21−cos2θ and 2sinAsinB=cos(A−B)−cos(A+B), so only cosines of multiple angles are left. C is the constant of integration.
Step 1 — Square the formula for sin3x.
We square 43sinx−sin3x and expand.
sin6x=16(3sinx−sin3x)2
sin6x=169sin2x−6sinxsin3x+sin23x
Step 2 — Change each term of the numerator to multiple angles.
We use the double-angle formula for the squares and the product formula for the middle term.
9sin2x=29(1−cos2x)
6sinxsin3x=3(cos2x−cos4x)
sin23x=21(1−cos6x)
Step 3 — Collect the numerator.
We subtract the middle term and add like terms: the constants give 29+21, and the cos2x terms give −29−3.
9sin2x−6sinxsin3x+sin23x=5−215cos2x+3cos4x−21cos6x
Dividing by 16, and writing everything over 32, gives the integrand as a sum of cosines.
sin6x=321(10−15cos2x+6cos4x−cos6x)
Step 4 — Integrate.
Each cosine is integrated by dividing by its coefficient of x.
∫sin6xdx=321[10x−215sin2x+46sin4x−61sin6x]+C
∫sin6xdx=321[10x−215sin2x+23sin4x−61sin6x]+C
Watch out: The middle term is −6sinxsin3x, and 6sinxsin3x=3(cos2x−cos4x), so the cos4x term ends up with a plus sign.
Therefore, ∫sin6xdx=321[10x−215sin2x+23sin4x−61sin6x]+C.