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

Example 8: ∫dxx2−16\int\frac{dx}{x^2 - 16} and ∫dx2x−x2\int\frac{dx}{\sqrt{2x - x^2}}

ExamplesIntegrals of some particular functions · Section 7.4
The question

Find the following integrals:

(i) ∫dxx2−16\displaystyle\int\frac{dx}{x^2 - 16}    (ii) ∫dx2x−x2\displaystyle\int\frac{dx}{\sqrt{2x - x^2}}

Exam answer

(i) Let I=∫dxx2−16=∫dxx2−42I = \displaystyle\int\frac{dx}{x^2 - 16} = \int\frac{dx}{x^2 - 4^2}⁠.

Using ∫dxx2−a2\displaystyle\int\frac{dx}{x^2 - a^2} =12alog⁡∣x−ax+a∣+C= \frac{1}{2a}\log\left|\frac{x - a}{x + a}\right| + C⁠,

I=12×4log⁡∣x−4x+4∣+CI = \frac{1}{2\times 4}\log\left|\frac{x - 4}{x + 4}\right| + C

∴ I=18log⁡∣x−4x+4∣+C\therefore\ I = \frac18\log\left|\frac{x - 4}{x + 4}\right| + C⁠.

(ii) Let I=∫dx2x−x2I = \displaystyle\int\frac{dx}{\sqrt{2x - x^2}}⁠.

2x−x2=−(x2−2x)=−[(x−1)2−1]=1−(x−1)2\begin{aligned} 2x - x^2 &= -(x^2 - 2x) \\ &= -\left[(x - 1)^2 - 1\right] \\ &= 1 - (x - 1)^2 \end{aligned}

Put x−1=tx - 1 = t⁠. Then dx=dtdx = dt⁠.

Using ∫dta2−t2=sin⁡−1ta+C\displaystyle\int\frac{dt}{\sqrt{a^2 - t^2}} = \sin^{-1}\frac ta + C⁠,

I=∫dt1−t2=sin⁡−1t+CI = \int\frac{dt}{\sqrt{1 - t^2}} = \sin^{-1}t + C

∴ I=sin⁡−1(x−1)+C\therefore\ I = \sin^{-1}(x - 1) + C⁠.

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

The one idea this problem is built on

Section 7.4 lists six ready-made integrals for the shapes x2±a2x^2 \pm a^2⁠, a2−x2a^2 - x^2 and their square roots. The work is to recognise the shape: (i) is already x2−a2x^2 - a^2 with a=4a = 4⁠; (ii) becomes 1−t21 - t^2 once we complete the square under the root and shift the variable.

Given, to find, and the plan
Given
(i) 1x2−16\frac{1}{x^2 - 16}⁠, x≠±4x \ne \pm 4⁠; (ii) 12x−x2\frac{1}{\sqrt{2x - x^2}}⁠, which needs 2x−x2>02x - x^2 > 0⁠.
To find
Both indefinite integrals.
Plan
(i) Write 16=4216 = 4^2 and use 7.4 (1). (ii) Complete the square, 2x−x2=1−(x−1)22x - x^2 = 1 - (x - 1)^2⁠; put t=x−1t = x - 1⁠; use 7.4 (5) with a=1a = 1⁠. Differentiate both answers back.

Basics you need

1Formula 7.4 (1)

∫dxx2−a2=12alog⁡∣x−ax+a∣+C\displaystyle\int\frac{dx}{x^2 - a^2} = \frac{1}{2a}\log\left|\frac{x - a}{x + a}\right| + C⁠. It comes from splitting 1x2−a2=12a(1x−a−1x+a)\frac{1}{x^2 - a^2} = \frac{1}{2a}\left(\frac{1}{x - a} - \frac{1}{x + a}\right)⁠. Basics: splitting fractions

2Formula 7.4 (5)

∫dxa2−x2=sin⁡−1xa+C\displaystyle\int\frac{dx}{\sqrt{a^2 - x^2}} = \sin^{-1}\frac xa + C⁠, for −a<x<a-a < x < a⁠. Lesson: integrals of particular functions

3Completing the square

x2−2x=(x−1)2−1x^2 - 2x = (x - 1)^2 - 1⁠: add and subtract the square of half the coefficient of xx⁠. Basics: completing the square

4Log laws

log⁡∣p∣−log⁡∣q∣=log⁡∣pq∣\log|p| - \log|q| = \log\left|\frac pq\right|⁠. Basics: logarithms and 1/x

Part (i): ∫dxx2−16\int\frac{dx}{x^2 - 16}

  1. Recognise the shape x2−a2x^2 - a^2

    ∫dxx2−16=∫dxx2−42,a=4.\int\frac{dx}{x^2 - 16} = \int\frac{dx}{x^2 - 4^2}, \qquad a = 4.

    The integrand exists for x≠4x \ne 4 and x≠−4x \ne -4⁠.

    16 is a perfect square, 424^2⁠, so the denominator is a difference of squares, exactly the shape of formula 7.4 (1).
  2. Apply formula 7.4 (1)

    ∫dxx2−42=12⋅4log⁡∣x−4x+4∣+C=18log⁡∣x−4x+4∣+C.\begin{aligned} \int\frac{dx}{x^2 - 4^2} &= \frac{1}{2\cdot 4}\log\left|\frac{x - 4}{x + 4}\right| + C \\ &= \frac18\log\left|\frac{x - 4}{x + 4}\right| + C. \end{aligned}
    With a=4a = 4⁠, the factor 12a\frac{1}{2a} is 18\frac18⁠. Behind the formula: 1x2−16=18(1x−4−1x+4)\frac{1}{x^2 - 16} = \frac18\left(\frac{1}{x - 4} - \frac{1}{x + 4}\right)⁠, and each piece integrates to a logarithm; the two logs combine into the log of a quotient.
  3. Check: differentiate the answer

    ddx 18(log⁡∣x−4∣−log⁡∣x+4∣)=18(1x−4−1x+4)=18⋅(x+4)−(x−4)x2−16=1x2−16. ✓\begin{aligned} &\frac{d}{dx}\,\frac18\big(\log|x - 4| - \log|x + 4|\big) \\ &= \frac18\left(\frac{1}{x - 4} - \frac{1}{x + 4}\right) \\ &= \frac18\cdot\frac{(x + 4) - (x - 4)}{x^2 - 16} = \frac{1}{x^2 - 16}. \ \checkmark \end{aligned}

    Valid for every x≠±4x \ne \pm 4⁠.

    Splitting the log of a quotient into a difference of logs makes the differentiation a two-term job; (x+4)−(x−4)=8(x + 4) - (x - 4) = 8 cancels the 18\frac18⁠.

Part (ii): ∫dx2x−x2\int\frac{dx}{\sqrt{2x - x^2}}

  1. Complete the square under the root

    2x−x2=−(x2−2x)=−[(x−1)2−1]=1−(x−1)2.\begin{aligned} 2x - x^2 &= -(x^2 - 2x) \\ &= -\big[(x - 1)^2 - 1\big] \\ &= 1 - (x - 1)^2. \end{aligned}
    As written, 2x−x22x - x^2 matches none of the six shapes. Completing the square writes it as "a constant minus a square", which is the a2−x2a^2 - x^2 shape of formula 7.4 (5) with a=1a = 1⁠.
  2. Where the integrand exists

    We need 2x−x2>02x - x^2 > 0⁠, that is x(2−x)>0x(2 - x) > 0⁠, so 0<x<20 < x < 2⁠. Equivalently (x−1)2<1(x - 1)^2 < 1⁠, that is −1<x−1<1-1 < x - 1 < 1⁠.

    The square root must be of a positive number, and it is in a denominator, so it cannot be 0. This range is exactly where sin⁡−1(x−1)\sin^{-1}(x - 1) is defined with a finite derivative, so the answer will be valid on the whole domain.
  3. Shift: t=x−1t = x - 1

    Put t=x−1t = x - 1⁠; then dt=dxdt = dx⁠, and tt runs over (−1,1)(-1, 1)⁠:

    ∫dx1−(x−1)2=∫dt1−t2.\int\frac{dx}{\sqrt{1 - (x - 1)^2}} = \int\frac{dt}{\sqrt{1 - t^2}}.
    A shift by a constant does not change dxdx⁠, so the substitution only renames the inside of the square.
    Substitution, Section 7.3.1. Basics: substitution
  4. Apply formula 7.4 (5) with a=1a = 1 and return to xx

    ∫dt1−t2=sin⁡−1t+C=sin⁡−1(x−1)+C.\begin{aligned} \int\frac{dt}{\sqrt{1 - t^2}} &= \sin^{-1}t + C \\ &= \sin^{-1}(x - 1) + C. \end{aligned}
    With a=1a = 1⁠, formula 7.4 (5) is the same as standard formula (viii) of Section 7.2: ddtsin⁡−1t=11−t2\frac{d}{dt}\sin^{-1}t = \frac{1}{\sqrt{1 - t^2}} for −1<t<1-1 < t < 1⁠.
  5. Check: differentiate the answer

    ddxsin⁡−1(x−1)=11−(x−1)2⋅1=12x−x2. ✓\begin{aligned} \frac{d}{dx}\sin^{-1}(x - 1) &= \frac{1}{\sqrt{1 - (x - 1)^2}}\cdot 1 \\ &= \frac{1}{\sqrt{2x - x^2}}. \ \checkmark \end{aligned}

    Valid for 0<x<20 < x < 2⁠.

    Chain rule with inner x−1x - 1 (derivative 1); then Part (ii), Step 1 read backwards.
Result

(i) ∫dxx2−16=18log⁡∣x−4x+4∣+C\displaystyle\int\frac{dx}{x^2 - 16} = \frac18\log\left|\frac{x - 4}{x + 4}\right| + C⁠, x≠±4x \ne \pm 4⁠.

(ii) ∫dx2x−x2=sin⁡−1(x−1)+C\displaystyle\int\frac{dx}{\sqrt{2x - x^2}} = \sin^{-1}(x - 1) + C⁠, 0<x<20 < x < 2⁠.

These agree with the textbook's solution.

Check it with numbers

By Section 7.8, ∫abf(x) dx=F(b)−F(a)\int_a^b f(x)\,dx = F(b) - F(a)⁠. The middle column is a computer's sum of very many thin strips, found without our answers:

PartIntervalSum of thin stripsF(b)−F(a)F(b) - F(a)
(i)[5,6][5, 6]0.07347330.073473318log⁡95≈0.0734733\frac18\log\frac{9}{5} \approx 0.0734733
(ii)[12,32][\frac12, \frac32]1.04719761.0471976π6−(−π6)=π3\frac{\pi}{6} - (-\frac{\pi}{6}) = \frac{\pi}{3}

In (i), F(6)−F(5)=18(log⁡210−log⁡19)=18log⁡95F(6) - F(5) = \frac18\left(\log\frac{2}{10} - \log\frac19\right) = \frac18\log\frac95⁠. In (ii), π3≈1.0471976\frac{\pi}{3} \approx 1.0471976⁠.

Common mistakes
  1. Using tan⁡−1\tan^{-1} for 1x2−16\frac{1}{x^2 - 16}⁠. tan⁡−1\tan^{-1} belongs to x2+a2x^2 + a^2⁠; a minus sign gives logarithms.
  2. Swapping the quotient. For x2−a2x^2 - a^2 it is x−ax+a\frac{x - a}{x + a}⁠; x+ax−a\frac{x + a}{x - a} belongs to a2−x2a^2 - x^2 (formula 7.4 (2)).
  3. Sign error completing the square: 2x−x2=1−(x−1)22x - x^2 = 1 - (x - 1)^2⁠, not (x−1)2−1(x - 1)^2 - 1⁠.
What to take away
  1. Match the denominator to one of the six shapes of Section 7.4 before integrating.
  2. A quadratic ax2+bx+cax^2 + bx + c that is not yet in shape becomes one after completing the square and shifting t=x+b2at = x + \frac{b}{2a}⁠.
  3. State the domain: here x≠±4x \ne \pm 4⁠, and 0<x<20 < x < 2⁠.

Every fact used, and where it comes from

FactUsed inSource
∫dxx2−a2=12alog⁡∣x−ax+a∣+C\int\frac{dx}{x^2 - a^2} = \frac{1}{2a}\log\left|\frac{x - a}{x + a}\right| + CPart (i), Step 2Formula 7.4 (1), Section 7.4 (Lesson: integrals of particular functions)
∫dxa2−x2=sin⁡−1xa+C\int\frac{dx}{\sqrt{a^2 - x^2}} = \sin^{-1}\frac xa + CPart (ii), Step 4Formula 7.4 (5), Section 7.4
ddxsin⁡−1x=11−x2\frac{d}{dx}\sin^{-1}x = \frac{1}{\sqrt{1 - x^2}}Part (ii), Steps 4, 5Standard formula (viii), Section 7.2
Completing the squarePart (ii), Step 1Algebra (Basics: completing the square)
ddxlog⁡∣x∣=1x\frac{d}{dx}\log|x| = \frac1x⁠; log of a quotientPart (i), Step 3Standard formula (xii), Section 7.2
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 →