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

Exercise 7.5 · Q2: ∫1x2−9 dx\int\frac{1}{x^2-9}\,dx

Exercise 7.5Integration by partial fractions · Section 7.5
The question

Integrate the rational function:

1x2−9\frac{1}{x^2-9}
Exam answer

Let I=∫dxx2−9I = \displaystyle\int\frac{dx}{x^2 - 9}⁠.

[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=∫dxx2−32=12⋅3log⁡∣x−3x+3∣+C\begin{aligned} I &= \int\frac{dx}{x^2 - 3^2} \\ &= \frac{1}{2\cdot 3}\log\left|\frac{x - 3}{x + 3}\right| + C \end{aligned}

∴ I=16log⁡∣x−3x+3∣+C\therefore\ I = \dfrac16\log\left|\dfrac{x - 3}{x + 3}\right| + C⁠.

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

The one idea this problem is built on

The denominator is a difference of squares, x2−9=(x−3)(x+3)x^2 - 9 = (x-3)(x+3)⁠: two different linear factors. So the fraction splits as Ax−3+Bx+3\frac{A}{x-3} + \frac{B}{x+3}⁠, and each part integrates to a logarithm. The result is the special formula (1) of Section 7.4, here derived by partial fractions.

Given, to find, and the plan
Given
f(x)=1x2−9f(x) = \frac{1}{x^2-9}⁠, defined for every real xx except x=3x = 3 and x=−3x = -3⁠.
To find
∫dxx2−9\displaystyle\int\frac{dx}{x^2-9}⁠.
Plan
(1) Factor the denominator; check the fraction is proper. (2) Write the form (Table 7.2, row 1). (3) Clear denominators. (4) Find AA⁠, BB by putting x=3x = 3 and x=−3x = -3⁠; confirm by coefficients. (5) Integrate and combine the logs. (6) Compare with formula (1) of Section 7.4. (7) Differentiate back.

Basics you need

1Difference of two squares

p2−q2=(p−q)(p+q)p^2 - q^2 = (p-q)(p+q)⁠, so x2−9=(x−3)(x+3)x^2 - 9 = (x-3)(x+3)⁠. Basics: splitting fractions

2Table 7.2, row 1

For a≠ba \ne b⁠: px+q(x−a)(x−b)=Ax−a+Bx−b\frac{px+q}{(x-a)(x-b)} = \frac{A}{x-a} + \frac{B}{x-b}⁠. Lesson: partial fractions

3The logarithm integral

∫dxx+k=log⁡∣x+k∣+C\int\frac{dx}{x+k} = \log|x+k| + C (put t=x+kt = x+k in standard formula (xii), Section 7.2). Basics: logarithms and 1/x

4Formula (1) of Section 7.4

∫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| + C⁠. We use it only as a cross-check. Lesson: integrals of particular functions

Solution

  1. Factor the denominator; the fraction is proper

    x2−9=x2−32=(x−3)(x+3).x^2 - 9 = x^2 - 3^2 = (x-3)(x+3).

    The numerator 1 has degree 0 and the denominator has degree 2, so the fraction is proper. The two linear factors are different (a=3a = 3⁠, b=−3b = -3⁠).

    Table 7.2 needs the denominator written as a product of factors, and a proper fraction. Both conditions are now visible.
  2. Write the form of the decomposition

    1(x−3)(x+3)=Ax−3+Bx+3(1)\frac{1}{(x-3)(x+3)} = \frac{A}{x-3} + \frac{B}{x+3} \qquad (1)
    One unknown constant over each different linear factor, exactly as in row 1 of Table 7.2 (here p=0p = 0⁠, q=1q = 1⁠).
    Table 7.2, row 1. Lesson: partial fractions
  3. Clear the denominators

    Multiply (1) by (x−3)(x+3)(x-3)(x+3)⁠:

    1=A(x+3)+B(x−3).(2)1 = A(x+3) + B(x-3). \qquad (2)
    (1) is an identity for x≠±3x \ne \pm 3⁠, so the polynomials in (2) agree at infinitely many points and are therefore equal for every xx⁠, including x=±3x = \pm 3⁠.
    Remark after Example 11, Section 7.5.
  4. Find AA and BB

    Put x=3x = 3 in (2): 1=A(6)+01 = A(6) + 0⁠, so A=16A = \frac16⁠.

    Put x=−3x = -3 in (2): 1=0+B(−6)1 = 0 + B(-6)⁠, so B=−16B = -\frac16⁠.

    Confirm by comparing coefficients. The right side of (2) is (A+B)x+(3A−3B)(A+B)x + (3A - 3B)⁠, and the left side is 0⋅x+10\cdot x + 1⁠:

    coefficient of x:A+B=16−16=0,constant term:3A−3B=12+12=1.\begin{aligned} \text{coefficient of } x:&\quad A + B = \tfrac16 - \tfrac16 = 0, \\ \text{constant term}:&\quad 3A - 3B = \tfrac12 + \tfrac12 = 1. \end{aligned}
    Putting in a root kills one bracket and isolates the other constant. Comparing coefficients is the book's method; doing both catches arithmetic slips.
  5. Integrate the two simple fractions

    1x2−9=16⋅1x−3−16⋅1x+3,\frac{1}{x^2-9} = \frac16\cdot\frac{1}{x-3} - \frac16\cdot\frac{1}{x+3}, ∫dxx2−9=16∫dxx−3−16∫dxx+3=16log⁡∣x−3∣−16log⁡∣x+3∣+C=16log⁡∣x−3x+3∣+C.\begin{aligned} \int\frac{dx}{x^2-9} &= \frac16\int\frac{dx}{x-3} - \frac16\int\frac{dx}{x+3} \\ &= \frac16\log|x-3| - \frac16\log|x+3| + C \\ &= \frac16\log\left|\frac{x-3}{x+3}\right| + C. \end{aligned}
    Integral of a sum, constants outside (Properties (III), (IV)); each piece is ∫dxx+k=log⁡∣x+k∣\int\frac{dx}{x+k} = \log|x+k|⁠. Finally log⁡∣p∣−log⁡∣q∣=log⁡∣pq∣\log|p| - \log|q| = \log\left|\frac pq\right|⁠.
    Standard formula (xii), Section 7.2. Basics: logarithms and 1/x
  6. Cross-check with formula (1) of Section 7.4

    With a=3a = 3⁠, formula (1) gives

    ∫dxx2−32=12⋅3log⁡∣x−3x+3∣+C,\int\frac{dx}{x^2-3^2} = \frac{1}{2\cdot 3}\log\left|\frac{x-3}{x+3}\right| + C,

    which is exactly our answer, since 12⋅3=16\frac{1}{2\cdot 3} = \frac16⁠.

    The book proves formula (1) by this very decomposition. Seeing the two routes agree confirms both the constants and the order of the quotient x−3x+3\frac{x-3}{x+3}⁠.
  7. Check: differentiate the answer

    ddx(16log⁡∣x−3∣−16log⁡∣x+3∣)=16(1x−3−1x+3)=16⋅(x+3)−(x−3)(x−3)(x+3)=16⋅6x2−9=1x2−9. ✓\begin{aligned} &\frac{d}{dx}\Big(\tfrac16\log|x-3| - \tfrac16\log|x+3|\Big) \\ &= \frac16\left(\frac{1}{x-3} - \frac{1}{x+3}\right) \\ &= \frac16\cdot\frac{(x+3) - (x-3)}{(x-3)(x+3)} \\ &= \frac16\cdot\frac{6}{x^2-9} = \frac{1}{x^2-9}. \ \checkmark \end{aligned}
    The derivative returns the integrand, so the antiderivative is right. It is valid on each interval avoiding x=3x = 3 and x=−3x = -3⁠.
    ddxlog⁡∣x∣=1x\frac{d}{dx}\log|x| = \frac1x⁠, Section 7.2, list item (xii). Basics: integration undoes differentiation
Result

For x≠±3x \ne \pm 3⁠:

∫dxx2−9=16log⁡∣x−3x+3∣+C.\int\frac{dx}{x^2-9} = \frac16\log\left|\frac{x-3}{x+3}\right| + C.

(Textbook answer: 16log⁡∣x−3x+3∣+C\frac16\log\left|\frac{x-3}{x+3}\right| + C⁠.)

Check it with numbers

Decomposition at x=0x = 0⁠: the integrand is 1−9=−19\frac{1}{-9} = -\frac19⁠, and 16⋅1−3−16⋅13=−118−118=−19\frac16\cdot\frac{1}{-3} - \frac16\cdot\frac13 = -\frac1{18} - \frac1{18} = -\frac19⁠.

Area check on [0,2][0, 2]⁠, inside (−3,3)(-3, 3) where the integrand is continuous (and negative): with F(x)=16log⁡∣x−3x+3∣F(x) = \frac16\log\left|\frac{x-3}{x+3}\right|⁠,

F(2)−F(0)=16log⁡15−16log⁡1=−16log⁡5≈−0.2682397.\begin{aligned} F(2) - F(0) &= \tfrac16\log\tfrac15 - \tfrac16\log 1 \\ &= -\tfrac16\log 5 \approx -0.2682397. \end{aligned}

Numerical integration of 1x2−9\frac{1}{x^2-9} from 0 to 2 also gives −0.2682397-0.2682397⁠. The value is negative because the curve lies below the xx-axis there.

Common mistakes
  1. Turning the quotient upside down. The constant on x−3x - 3 is positive, so x−3x - 3 goes on top: log⁡∣x−3x+3∣\log\left|\frac{x-3}{x+3}\right|⁠.
  2. Forgetting the 16\frac16⁠. It comes from 2a=62a = 6⁠; log⁡∣x−3x+3∣\log\left|\frac{x-3}{x+3}\right| alone differentiates to 6x2−9\frac{6}{x^2-9}⁠.
  3. Using tan⁡−1\tan^{-1}⁠. The tan⁡−1\tan^{-1} formula is for x2+a2x^2 + a^2⁠, not x2−a2x^2 - a^2⁠.
What to take away
  1. A difference of squares in the denominator gives two different linear factors.
  2. Partial fractions reproduce ∫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| + C⁠.
  3. When a special formula applies, it is a quick check on the partial-fraction work.

Every fact used, and where it comes from

FactUsed inSource
p2−q2=(p−q)(p+q)p^2 - q^2 = (p-q)(p+q)Step 1Algebra (Basics)
Proper rational functionsStep 1Section 7.5
px+q(x−a)(x−b)=Ax−a+Bx−b\frac{px+q}{(x-a)(x-b)} = \frac{A}{x-a} + \frac{B}{x-b}Step 2Table 7.2, row 1
The decomposition is an identitySteps 3, 4Remark after Example 11, Section 7.5
Integral of a sum; constants outsideStep 5Properties (III), (IV), Section 7.2.1
∫dtt=log⁡∣t∣+C\int\frac{dt}{t} = \log|t| + CStep 5Standard formula (xii), Section 7.2
∫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| + CStep 6Section 7.4, formula (1)
ddxlog⁡∣x∣=1x\frac{d}{dx}\log|x| = \frac1xStep 7Section 7.2, list item (xii)
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 →