Class 12 Maths, Worked in Full Past papersGet updates
Chapter 7 · Integrals

Exercise 7.3 · Q7: ∫sin⁡4xsin⁡8x dx\int\sin 4x\sin 8x\,dx

Exercise 7.3Integration using trigonometric identities · Section 7.3.2
The question

Find the integral of the function

sin⁡4xsin⁡8x.\sin 4x\sin 8x.
Exam answer

Let I=∫sin⁡4xsin⁡8x dxI = \displaystyle\int \sin 4x\sin 8x\,dx⁠.

Using 2sin⁡Asin⁡B2\sin A\sin B =cos⁡(A−B)−cos⁡(A+B)= \cos(A - B) - \cos(A + B)⁠,

sin⁡4xsin⁡8x=12(cos⁡(−4x)−cos⁡12x)=12(cos⁡4x−cos⁡12x)\begin{aligned} &\sin 4x\sin 8x \\ &= \frac12\big(\cos(-4x) - \cos 12x\big) \\ &= \frac12(\cos 4x - \cos 12x) \end{aligned} ∴ I=12∫(cos⁡4x−cos⁡12x) dx=12(sin⁡4x4−sin⁡12x12)+C\begin{aligned} \therefore\ I &= \frac12\int(\cos 4x - \cos 12x)\,dx \\ &= \frac12\left(\frac{\sin 4x}{4} - \frac{\sin 12x}{12}\right) + C \end{aligned}

∴ I=12[14sin⁡4x−112sin⁡12x]\therefore\ I = \dfrac12\Big[\dfrac14\sin 4x - \dfrac{1}{12}\sin 12x\Big] +C+ C⁠.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

A product of two sines becomes a difference of cosines: 2sin⁡Asin⁡B=cos⁡(A−B)−cos⁡(A+B)2\sin A\sin B = \cos(A-B) - \cos(A+B)⁠. Single cosines of multiples of xx integrate straight away.

Given, to find, and the plan
Given
sin⁡4xsin⁡8x\sin 4x\sin 8x⁠, defined for every real xx⁠.
To find
∫sin⁡4xsin⁡8x dx\displaystyle\int \sin 4x\sin 8x\,dx⁠.
Plan
(1) Derive and apply the product-to-sum identity for two sines. (2) Integrate the two cosines. (3) Differentiate back to check.

Basics you need

1Compound-angle formulas for cosine

cos⁡(A−B)=cos⁡Acos⁡B+sin⁡Asin⁡B\cos(A-B) = \cos A\cos B + \sin A\sin B and cos⁡(A+B)=cos⁡Acos⁡B−sin⁡Asin⁡B\cos(A+B) = \cos A\cos B - \sin A\sin B⁠. Basics: trigonometric identities for integrals

2Cosine is even

cos⁡(−θ)=cos⁡θ\cos(-\theta) = \cos\theta for every θ\theta⁠.

3Cosine of a multiple of xx

∫cos⁡mx dx=1msin⁡mx+C\int\cos mx\,dx = \frac1m\sin mx + C⁠, m≠0m \ne 0 (substitution t=mxt = mx⁠, Section 7.3.1). Basics: substitution

4Checking an integral

F(x)+CF(x) + C is right exactly when F′(x)F'(x) is the integrand (Property (I), Section 7.2.1). Basics: integration undoes differentiation

Solution

  1. The identity for a product of two sines

    Subtract the two formulas of Basic 1; the cos⁡Acos⁡B\cos A\cos B terms cancel:

    cos⁡(A−B)−cos⁡(A+B)=2sin⁡Asin⁡B.\cos(A-B) - \cos(A+B) = 2\sin A\sin B.

    With A=4xA = 4x⁠, B=8xB = 8x⁠: A−B=−4xA - B = -4x⁠, A+B=12xA + B = 12x⁠, and cos⁡(−4x)=cos⁡4x\cos(-4x) = \cos 4x⁠. So

    sin⁡4xsin⁡8x=12[cos⁡4x−cos⁡12x].\sin 4x\sin 8x = \tfrac12\big[\cos 4x - \cos 12x\big].
    The difference angle is negative here, but cosine is even, so the sign of the angle does not matter. (That is why the order of AA and BB never matters in this identity, unlike the sine-cosine one in Question 2.) The minus sign between the cosines does matter: it comes from subtracting the formulas.
    Compound-angle formulas (Class XI trigonometry). Basics: trigonometric identities
  2. Integrate the two cosines

    ∫sin⁡4xsin⁡8x dx=12∫cos⁡4x dx−12∫cos⁡12x dx=12[14sin⁡4x−112sin⁡12x]+C.\begin{aligned} &\int \sin 4x\sin 8x\,dx \\ &= \frac12\int\cos 4x\,dx - \frac12\int\cos 12x\,dx \\ &= \frac12\Big[\frac14\sin 4x - \frac{1}{12}\sin 12x\Big] + C. \end{aligned}
    Each ∫cos⁡mx dx=1msin⁡mx\int\cos mx\,dx = \frac1m\sin mx⁠: the substitution t=mxt = mx makes dx=dtmdx = \frac{dt}{m}⁠. Here m=4m = 4 and m=12m = 12⁠.
    Properties (III), (IV), Section 7.2.1; ∫cos⁡x dx=sin⁡x+C\int\cos x\,dx = \sin x + C (Section 7.2). Lesson: integration by substitution
  3. Check: differentiate the answer back

    Let F(x)=18sin⁡4x−124sin⁡12xF(x) = \frac18\sin 4x - \frac{1}{24}\sin 12x (the answer with the 12\frac12 multiplied in). By the chain rule,

    F′(x)=12[cos⁡4x−cos⁡12x]=sin⁡4xsin⁡8x,\begin{aligned} F'(x) &= \tfrac12\big[\cos 4x - \cos 12x\big] \\ &= \sin 4x\sin 8x, \end{aligned}

    by Step 1. The answer is correct for every real xx⁠.

    Chain rule, Theorem 4, Section 5.3.1. Basics: integration undoes differentiation
Result ∫sin⁡4xsin⁡8x dx=12[14sin⁡4x−112sin⁡12x]+C,\int \sin 4x\sin 8x\,dx = \frac12\Big[\frac14\sin 4x - \frac{1}{12}\sin 12x\Big] + C,

that is 18sin⁡4x−124sin⁡12x+C\frac18\sin 4x - \frac{1}{24}\sin 12x + C⁠, valid for all real xx⁠. This is exactly the textbook answer.

Check it with numbers

The identity at x=1x = 1⁠: sin⁡4sin⁡8\sin 4\sin 8 ≈(−0.7568025)(0.9893582)\approx (-0.7568025)(0.9893582) ≈−0.7487488\approx -0.7487488⁠, and 12[cos⁡4−cos⁡12]\frac12[\cos 4 - \cos 12] ≈12[−0.6536436−0.8438540]\approx \frac12[-0.6536436 - 0.8438540] ≈−0.7487488\approx -0.7487488⁠.

The derivative at x=1x = 1⁠, h=0.001h = 0.001⁠: F(1.001)≈−0.0729926977F(1.001) \approx -0.0729926977⁠, F(0.999)≈−0.0714952221F(0.999) \approx -0.0714952221⁠, slope ≈−0.748738\approx -0.748738⁠, against the integrand −0.748749-0.748749⁠: agreement to four significant figures (the gap is the error of the difference quotient; sin⁡12x\sin 12x varies quickly).

Common mistakes
  1. Getting the order of the cosines wrong. 2sin⁡Asin⁡B=cos⁡(A−B)−cos⁡(A+B)2\sin A\sin B = \cos(A-B) - \cos(A+B)⁠. Test: with A=BA = B it gives 2sin⁡2A=1−cos⁡2A2\sin^2 A = 1 - \cos 2A⁠, which is true; the reversed order would give 2sin⁡2A=cos⁡2A−12\sin^2 A = \cos 2A - 1⁠, which is never positive, so it cannot be right.
  2. Writing cos⁡(−4x)=−cos⁡4x\cos(-4x) = -\cos 4x⁠. Cosine is even.
  3. Forgetting to divide by 12 in ∫cos⁡12x dx\int\cos 12x\,dx⁠.
What to take away
  1. sin⁡⋅sin⁡\sin\cdot\sin and cos⁡⋅cos⁡\cos\cdot\cos become sums of cosines; sin⁡⋅cos⁡\sin\cdot\cos becomes a sum of sines.
  2. Check any product-to-sum identity with A=BA = B⁠.
  3. Question 6 uses the same identity as its first move.

Every fact used, and where it comes from

FactUsed inSource
cos⁡(A∓B)=cos⁡Acos⁡B±sin⁡Asin⁡B\cos(A\mp B) = \cos A\cos B \pm \sin A\sin BStep 1Compound-angle formulas (Class XI trigonometry)
2sin⁡Asin⁡B=cos⁡(A−B)−cos⁡(A+B)2\sin A\sin B = \cos(A-B) - \cos(A+B)Steps 1, 3Derived in Step 1
cos⁡(−θ)=cos⁡θ\cos(-\theta) = \cos\thetaStep 1Cosine is even (Class XI)
∫cos⁡mx dx=1msin⁡mx+C\int\cos mx\,dx = \frac1m\sin mx + CStep 2Standard formula for cos⁡x\cos x (Section 7.2) with t=mxt = mx (Section 7.3.1)
Chain rule; differentiation undoes integrationStep 3Theorem 4, Section 5.3.1; Property (I), Section 7.2.1
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →