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

Exercise 7.3 · Q13: ∫cos⁡2x−cos⁡2αcos⁡x−cos⁡α dx\int\frac{\cos 2x-\cos 2\alpha}{\cos x-\cos\alpha}\,dx

Exercise 7.3Integration using trigonometric identities · Section 7.3.2
The question

Find the integral of the function

cos⁡2x−cos⁡2αcos⁡x−cos⁡α.\frac{\cos 2x - \cos 2\alpha}{\cos x - \cos\alpha}.
Exam answer

Let I=∫cos⁡2x−cos⁡2αcos⁡x−cos⁡α dxI = \displaystyle\int\frac{\cos 2x - \cos 2\alpha}{\cos x - \cos\alpha}\,dx⁠.

Using cos⁡2θ=2cos⁡2θ−1\cos 2\theta = 2\cos^2\theta - 1⁠,

cos⁡2x−cos⁡2α=2cos⁡2x−2cos⁡2α=2(cos⁡x−cos⁡α)×(cos⁡x+cos⁡α)\begin{aligned} &\cos 2x - \cos 2\alpha \\ &= 2\cos^2 x - 2\cos^2\alpha \\ &= 2(\cos x - \cos\alpha) \\ &\qquad \times(\cos x + \cos\alpha) \end{aligned} ∴ I=∫2(cos⁡x+cos⁡α) dx=2∫cos⁡x dx+2cos⁡α∫dx\begin{aligned} \therefore\ I &= \int 2(\cos x + \cos\alpha)\,dx \\ &= 2\int\cos x\,dx + 2\cos\alpha\int dx \end{aligned}

∴ I=2(sin⁡x+xcos⁡α)+C\therefore\ I = 2(\sin x + x\cos\alpha) + C⁠.

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

The one idea this problem is built on

The double-angle identity cos⁡2θ=2cos⁡2θ−1\cos 2\theta = 2\cos^2\theta - 1 turns the numerator cos⁡2x−cos⁡2α\cos 2x - \cos 2\alpha into a difference of two squares, 2(cos⁡2x−cos⁡2α)2\left(\cos^2 x - \cos^2\alpha\right)⁠. That factorises as 2(cos⁡x−cos⁡α)(cos⁡x+cos⁡α)2(\cos x - \cos\alpha)(\cos x + \cos\alpha)⁠, the denominator cancels, and what is left, 2cos⁡x+2cos⁡α2\cos x + 2\cos\alpha⁠, is easy to integrate. Here α\alpha is a constant, so cos⁡α\cos\alpha is just a number.

Given, to find, and the plan
Given
f(x)=cos⁡2x−cos⁡2αcos⁡x−cos⁡αf(x) = \dfrac{\cos 2x - \cos 2\alpha}{\cos x - \cos\alpha}⁠, where α\alpha is a fixed real number. ff is defined wherever cos⁡x≠cos⁡α\cos x \ne \cos\alpha⁠.
To find
∫cos⁡2x−cos⁡2αcos⁡x−cos⁡α dx\displaystyle\int \frac{\cos 2x - \cos 2\alpha}{\cos x - \cos\alpha}\,dx⁠.
Plan
(1) Note where the integrand is defined. (2) Rewrite both double angles with cos⁡2θ=2cos⁡2θ−1\cos 2\theta = 2\cos^2\theta - 1⁠. (3) Factorise the difference of squares and cancel. (4) Integrate term by term. (5) Differentiate back.

Basics you need

1The double-angle identity for cosine

cos⁡2θ=2cos⁡2θ−1\cos 2\theta = 2\cos^2\theta - 1 for every real θ\theta⁠. The book recalls it in Example 7(i). Basics: trigonometric identities for integrals

2Difference of two squares

A2−B2=(A−B)(A+B)A^2 - B^2 = (A - B)(A + B)⁠. With A=cos⁡xA = \cos x and B=cos⁡αB = \cos\alpha it factorises the numerator.

3Two standard integrals

∫cos⁡x dx=sin⁡x+C\int\cos x\,dx = \sin x + C (standard formula (ii), Section 7.2) and ∫k dx=kx+C\int k\,dx = kx + C for a constant kk (from ∫dx=x+C\int dx = x + C⁠, formula (i)). Basics: integration undoes differentiation

4Constants stay constants

The variable of integration is xx⁠. Anything built only from α\alpha⁠, such as cos⁡α\cos\alpha or cos⁡2α\cos 2\alpha⁠, is a constant: it is not differentiated or integrated as if it moved with xx⁠.

Solution

  1. Where is the integrand defined?

    The only danger is the denominator. We need

    cos⁡x−cos⁡α≠0,that is,cos⁡x≠cos⁡α.\cos x - \cos\alpha \ne 0, \quad\text{that is,}\quad \cos x \ne \cos\alpha.

    Since cos⁡x=cos⁡α\cos x = \cos\alpha exactly when x=2nπ±αx = 2n\pi \pm \alpha (nn an integer), the integrand is defined for all real xx except these points. We work on any interval that avoids them.

    An indefinite integral is an antiderivative on an interval where the integrand exists. Recording the excluded points first also tells us when the cancellation in Step 3 is allowed: we may divide by cos⁡x−cos⁡α\cos x - \cos\alpha only because it is not zero there.
    General solution of cos⁡x=cos⁡α\cos x = \cos\alpha⁠: x=2nπ±αx = 2n\pi \pm \alpha (Class XI, trigonometric equations).
  2. Rewrite both double angles

    Apply cos⁡2θ=2cos⁡2θ−1\cos 2\theta = 2\cos^2\theta - 1 once with θ=x\theta = x and once with θ=α\theta = \alpha⁠:

    cos⁡2x−cos⁡2α=(2cos⁡2x−1)−(2cos⁡2α−1)=2cos⁡2x−2cos⁡2α=2(cos⁡2x−cos⁡2α).\begin{aligned} \cos 2x - \cos 2\alpha &= \left(2\cos^2 x - 1\right) - \left(2\cos^2\alpha - 1\right) \\ &= 2\cos^2 x - 2\cos^2\alpha \\ &= 2\left(\cos^2 x - \cos^2\alpha\right). \end{aligned}
    The denominator is written in cos⁡x\cos x and cos⁡α\cos\alpha⁠, so we want the numerator in the same "language". Of the three forms of cos⁡2θ\cos 2\theta⁠, the one using only cos⁡θ\cos\theta is 2cos⁡2θ−12\cos^2\theta - 1⁠. The two −1-1s cancel, which is what makes this form so convenient here.
    cos⁡2θ=2cos⁡2θ−1\cos 2\theta = 2\cos^2\theta - 1 (Example 7(i), Section 7.3.2). Basics: trigonometric identities for integrals
  3. Factorise and cancel

    Use A2−B2=(A−B)(A+B)A^2 - B^2 = (A - B)(A + B) with A=cos⁡xA = \cos x⁠, B=cos⁡αB = \cos\alpha⁠:

    cos⁡2x−cos⁡2α=2(cos⁡2x−cos⁡2α)=2(cos⁡x−cos⁡α)(cos⁡x+cos⁡α).\begin{aligned} \cos 2x - \cos 2\alpha &= 2(\cos^2 x - \cos^2\alpha) \\ &= 2(\cos x - \cos\alpha)(\cos x + \cos\alpha). \end{aligned}

    Therefore, for every xx with cos⁡x≠cos⁡α\cos x \ne \cos\alpha⁠,

    f(x)=2(cos⁡x−cos⁡α)(cos⁡x+cos⁡α)cos⁡x−cos⁡α=2(cos⁡x+cos⁡α)=2cos⁡x+2cos⁡α.\begin{aligned} f(x) &= \frac{2(\cos x - \cos\alpha)(\cos x + \cos\alpha)}{\cos x - \cos\alpha} \\ &= 2(\cos x + \cos\alpha) \\ &= 2\cos x + 2\cos\alpha. \end{aligned}
    The factor cos⁡x−cos⁡α\cos x - \cos\alpha appears on top and bottom, and it is non-zero on our domain (Step 1), so it cancels. A fraction we could not integrate directly has become a sum of a cosine and a constant.
    Cancelling a common factor is valid only where that factor is non-zero.
  4. Integrate term by term

    ∫(2cos⁡x+2cos⁡α) dx=2∫cos⁡x dx+2cos⁡α∫dx=2sin⁡x+2xcos⁡α+C=2(sin⁡x+xcos⁡α)+C.\begin{aligned} \int (2\cos x + 2\cos\alpha)\,dx &= 2\int\cos x\,dx + 2\cos\alpha\int dx \\ &= 2\sin x + 2x\cos\alpha + C \\ &= 2(\sin x + x\cos\alpha) + C. \end{aligned}
    Property (V) splits the integral of a linear combination into the same combination of integrals. 2cos⁡α2\cos\alpha is a constant multiplier (it does not depend on xx⁠), so it comes outside, and ∫dx=x\int dx = x⁠. Formula (ii) gives ∫cos⁡x dx=sin⁡x\int\cos x\,dx = \sin x⁠.
    Property (V), Section 7.2.1; standard formulae (i) and (ii), Section 7.2. Lesson: integration as anti-differentiation
  5. Check: differentiate the answer back

    α\alpha is a constant, so ddx(xcos⁡α)=cos⁡α\frac{d}{dx}(x\cos\alpha) = \cos\alpha⁠. Then

    ddx[2sin⁡x+2xcos⁡α]=2cos⁡x+2cos⁡α=2(cos⁡2x−cos⁡2α)cos⁡x−cos⁡α=cos⁡2x−cos⁡2αcos⁡x−cos⁡α.\begin{aligned} \frac{d}{dx}\left[2\sin x + 2x\cos\alpha\right] &= 2\cos x + 2\cos\alpha \\ &= \frac{2(\cos^2 x - \cos^2\alpha)}{\cos x - \cos\alpha} \\ &= \frac{\cos 2x - \cos 2\alpha}{\cos x - \cos\alpha}. \end{aligned}

    The second line multiplies and divides by cos⁡x−cos⁡α\cos x - \cos\alpha (allowed, it is non-zero), and the third line is Step 2 read backwards. We are back at the integrand, so the answer is correct on every interval where cos⁡x≠cos⁡α\cos x \ne \cos\alpha⁠.

    ddxsin⁡x=cos⁡x\frac{d}{dx}\sin x = \cos x (list in Section 7.2, (ii)); Property (I), Section 7.2.1. Basics: integration undoes differentiation
Result ∫cos⁡2x−cos⁡2αcos⁡x−cos⁡α dx=2(sin⁡x+xcos⁡α)+C,\int\frac{\cos 2x - \cos 2\alpha}{\cos x - \cos\alpha}\,dx = 2(\sin x + x\cos\alpha) + C,

valid on any interval on which cos⁡x≠cos⁡α\cos x \ne \cos\alpha⁠. (Textbook answer: 2(sin⁡x+xcos⁡α)+C2(\sin x + x\cos\alpha) + C⁠.)

Check it with numbers

Take α=π3\alpha = \frac{\pi}{3}⁠, so cos⁡α=12\cos\alpha = \frac12⁠, cos⁡2α=−12\cos 2\alpha = -\frac12⁠, and F(x)=2sin⁡x+xF(x) = 2\sin x + x⁠. Look near x=1x = 1 with h=0.0001h = 0.0001⁠:

  • F(1.0001)≈2.683150022F(1.0001) \approx 2.683150022 and F(0.9999)≈2.682733901F(0.9999) \approx 2.682733901⁠.
  • Slope estimate: F(1.0001)−F(0.9999)0.0002≈2.080605\dfrac{F(1.0001) - F(0.9999)}{0.0002} \approx 2.080605⁠.
  • Integrand at x=1x = 1⁠: cos⁡2≈−0.4161468365\cos 2 \approx -0.4161468365 and cos⁡1≈0.5403023059\cos 1 \approx 0.5403023059⁠, so −0.4161468365+0.50.5403023059−0.5\dfrac{-0.4161468365 + 0.5}{0.5403023059 - 0.5} ≈2.080605\approx 2.080605⁠. (Subtracting 0.5 leaves fewer significant figures in the denominator, which is why the cosines are given to ten decimal places.)

They agree. (Also 2cos⁡1+1≈2.0806052\cos 1 + 1 \approx 2.080605⁠, the simplified form from Step 3.)

Common mistakes
  1. Treating α\alpha as a variable. ∫cos⁡α dx=xcos⁡α\int\cos\alpha\,dx = x\cos\alpha⁠, not sin⁡α\sin\alpha⁠. The integration is with respect to xx only.
  2. Using cos⁡2θ=cos⁡2θ−sin⁡2θ\cos 2\theta = \cos^2\theta - \sin^2\theta⁠. It is true, but it brings in sines that do not cancel against the denominator. Choose the form that matches the denominator.
  3. Dropping the factor 2. 2cos⁡2x−2cos⁡2α2\cos^2 x - 2\cos^2\alpha is 2(cos⁡2x−cos⁡2α)2(\cos^2 x - \cos^2\alpha)⁠; losing the 2 halves the answer.
  4. Cancelling without a condition. The cancellation holds only where cos⁡x≠cos⁡α\cos x \ne \cos\alpha⁠; at those points the original integrand is not defined.
What to take away
  1. Before integrating a trigonometric fraction, rewrite numerator and denominator in the same functions; a factor often cancels.
  2. cos⁡2θ=2cos⁡2θ−1\cos 2\theta = 2\cos^2\theta - 1 turns a difference of double angles into a difference of squares.
  3. Letters other than the variable of integration are constants: they ride along as multipliers.

Every fact used, and where it comes from

FactUsed inSource
cos⁡x=cos⁡α  ⟺  x=2nπ±α\cos x = \cos\alpha \iff x = 2n\pi \pm \alphaStep 1Class XI, trigonometric equations
cos⁡2θ=2cos⁡2θ−1\cos 2\theta = 2\cos^2\theta - 1Steps 2, 5Recalled in Example 7(i), Section 7.3.2 (Basics: trigonometric identities)
A2−B2=(A−B)(A+B)A^2 - B^2 = (A - B)(A + B)Step 3Algebra
∫\int of a linear combinationStep 4Property (V), Section 7.2.1
∫dx=x+C\int dx = x + C⁠, ∫cos⁡x dx=sin⁡x+C\int\cos x\,dx = \sin x + CStep 4Standard formulae (i), (ii), Section 7.2
Differentiation undoes integrationStep 5Property (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 →