Solution:
Key idea: A product of two sines or cosines has no standard form, so we change it into a sum with the product formulas 2cosAcosB=cos(A+B)+cos(A−B) and 2sinAsinB=cos(A−B)−cos(A+B). Each term is then integrated by dividing by the coefficient of x. C is the constant of integration.
Step 1 — Part (i): change cos4xcos3x into a sum.
We use the cosine product formula with A=4x and B=3x.
cos4xcos3x=21[cos(4x+3x)+cos(4x−3x)]
cos4xcos3x=21(cos7x+cosx)
Step 2 — Part (i): integrate.
The first term has coefficient 7, so it is divided by 7.
∫cos4xcos3xdx=21(7sin7x+sinx)+C
Step 3 — Part (ii): change sin4xsin8x into a sum.
We use the sine product formula with A=4x and B=8x, and cos(−4x)=cos4x because cosine is an even function.
sin4xsin8x=21[cos(4x−8x)−cos(4x+8x)]
sin4xsin8x=21(cos4x−cos12x)
Step 4 — Part (ii): integrate.
The coefficients of x are 4 and 12.
∫sin4xsin8xdx=21(4sin4x−12sin12x)+C
∫sin4xsin8xdx=81sin4x−241sin12x+C
Therefore, (i) 21(7sin7x+sinx)+C; (ii) 81sin4x−241sin12x+C.