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

Exercise 7.5 · Q11: ∫5x(x+1)(x2−4) dx\int\frac{5x}{(x+1)(x^2-4)}\,dx

Exercise 7.5Integration by partial fractions · Section 7.5
The question

Integrate the rational function:

5x(x+1)(x2−4)\frac{5x}{(x+1)(x^2-4)}
Exam answer

Let I=∫5x(x+1)(x2−4) dxI = \displaystyle\int\frac{5x}{(x + 1)(x^2 - 4)}\,dx⁠.

(x+1)(x2−4)=(x+1)(x−2)(x+2)\begin{aligned} &(x + 1)(x^2 - 4) \\ &= (x + 1)(x - 2)(x + 2) \end{aligned}

Let

5x(x+1)(x−2)(x+2)=Ax+1+Bx−2+Cx+2\begin{aligned} &\frac{5x}{(x + 1)(x - 2)(x + 2)} \\ &= \frac{A}{x + 1} + \frac{B}{x - 2} + \frac{C}{x + 2} \end{aligned} ⇒ 5x=A(x−2)(x+2)+B(x+1)(x+2)+C(x+1)(x−2)\begin{aligned} \Rightarrow\ 5x &= A(x - 2)(x + 2) \\ &\quad + B(x + 1)(x + 2) \\ &\quad + C(x + 1)(x - 2) \end{aligned}

Putting x=−1x = -1⁠: −5=−3A-5 = -3A⁠, so A=53A = \frac53⁠.

Putting x=2x = 2⁠: 10=12B10 = 12B⁠, so B=56B = \frac56⁠.

Putting x=−2x = -2⁠: −10=4C-10 = 4C⁠, so C=−52C = -\frac52⁠.

∴ I=53∫dxx+1+56∫dxx−2−52∫dxx+2\begin{aligned} \therefore\ I &= \frac53\int\frac{dx}{x + 1} \\ &\quad + \frac56\int\frac{dx}{x - 2} \\ &\quad - \frac52\int\frac{dx}{x + 2} \end{aligned}

∴ I=53log⁡∣x+1∣−52log⁡∣x+2∣\therefore\ I = \dfrac53\log|x + 1| - \dfrac52\log|x + 2| +56log⁡∣x−2∣+c+ \dfrac56\log|x - 2| + c⁠.

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

The one idea this problem is built on

Factor the difference of squares x2−4=(x−2)(x+2)x^2 - 4 = (x-2)(x+2)⁠. The denominator is then three different linear factors, so the fraction is Ax+1+Bx−2+Cx+2\frac{A}{x+1} + \frac{B}{x-2} + \frac{C}{x+2} (Table 7.2, row 3), and each part integrates to a logarithm.

Given, to find, and the plan
Given
f(x)=5x(x+1)(x2−4)f(x) = \frac{5x}{(x+1)(x^2-4)}⁠, defined for every real xx except −1-1⁠, 22 and −2-2⁠.
To find
∫5x(x+1)(x2−4) dx\displaystyle\int\frac{5x}{(x+1)(x^2-4)}\,dx⁠.
Plan
(1) Factor; check the fraction is proper. (2) Write the form (Table 7.2, row 3). (3) Clear denominators. (4) Put x=−1,2,−2x = -1, 2, -2⁠. (5) Confirm by comparing coefficients. (6) Integrate. (7) Differentiate back.

Basics you need

1Difference of two squares

x2−4=x2−22=(x−2)(x+2)x^2 - 4 = x^2 - 2^2 = (x-2)(x+2)⁠. Basics: splitting fractions

2Table 7.2, row 3

Three different linear factors: Ax−a+Bx−b+Cx−c\frac{A}{x-a} + \frac{B}{x-b} + \frac{C}{x-c}⁠. Lesson: partial fractions

3The logarithm integral

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

Solution

  1. Factor the denominator; the fraction is proper

    (x+1)(x2−4)=(x+1)(x−2)(x+2).(x+1)(x^2-4) = (x+1)(x-2)(x+2).

    The numerator 5x5x has degree 1 and the denominator degree 3, so the fraction is proper. The roots −1-1⁠, 22⁠, −2-2 are different.

    Partial fractions need the denominator fully factored into linear (or irreducible quadratic) factors. x2−4x^2 - 4 still factors, so it must be split.
  2. Write the form of the decomposition

    5x(x+1)(x−2)(x+2)=Ax+1+Bx−2+Cx+2(1)\begin{aligned} &\frac{5x}{(x+1)(x-2)(x+2)} \\ &\quad = \frac{A}{x+1} + \frac{B}{x-2} + \frac{C}{x+2} \qquad (1) \end{aligned}
    One constant over each different linear factor.
    Table 7.2, row 3. Lesson: partial fractions
  3. Clear the denominators

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

    5x=A(x−2)(x+2)+B(x+1)(x+2)+C(x+1)(x−2).(2)\begin{aligned} 5x &= A(x-2)(x+2) \\ &\quad + B(x+1)(x+2) \\ &\quad + C(x+1)(x-2). \qquad (2) \end{aligned}
    (2) is a polynomial identity, so it holds for every real xx⁠, including the three roots.
    Remark after Example 11, Section 7.5.
  4. Find AA⁠, BB⁠, CC by putting in the roots

    x=−1x = -1⁠: −5=A(−3)(1)=−3A-5 = A(-3)(1) = -3A⁠, so A=53A = \frac53⁠.

    x=2x = 2⁠: 10=B(3)(4)=12B10 = B(3)(4) = 12B⁠, so B=1012=56B = \frac{10}{12} = \frac56⁠.

    x=−2x = -2⁠: −10=C(−1)(−4)=4C-10 = C(-1)(-4) = 4C⁠, so C=−104=−52C = -\frac{10}{4} = -\frac52⁠.

    At each root the other two terms contain a zero factor and vanish.
  5. Confirm by comparing coefficients

    Expand: (x−2)(x+2)=x2−4(x-2)(x+2) = x^2 - 4⁠, (x+1)(x+2)=x2+3x+2(x+1)(x+2) = x^2 + 3x + 2⁠, (x+1)(x−2)=x2−x−2(x+1)(x-2) = x^2 - x - 2⁠. The right side of (2) is

    (A+B+C)x2+(3B−C)x+(−4A+2B−2C).(A+B+C)x^2 + (3B - C)x + (-4A + 2B - 2C). x2:53+56−52=10+5−156=0,x:52+52=5,const:−203+53+5=0.\begin{aligned} x^2:&\quad \tfrac53 + \tfrac56 - \tfrac52 = \tfrac{10 + 5 - 15}{6} = 0, \\ x:&\quad \tfrac52 + \tfrac52 = 5, \\ \text{const}:&\quad -\tfrac{20}{3} + \tfrac53 + 5 = 0. \end{aligned}
    These match 0x2+5x+00x^2 + 5x + 0⁠, so the constants are right.
    Equal polynomials have equal coefficients. Basics: splitting fractions
  6. Integrate the three simple fractions

    ∫f(x) dx=53∫dxx+1+56∫dxx−2−52∫dxx+2=53log⁡∣x+1∣−52log⁡∣x+2∣+56log⁡∣x−2∣+C.\begin{aligned} \int f(x)\,dx &= \frac53\int\frac{dx}{x+1} + \frac56\int\frac{dx}{x-2} \\ &\quad - \frac52\int\frac{dx}{x+2} \\ &= \frac53\log|x+1| - \frac52\log|x+2| \\ &\quad + \frac56\log|x-2| + C. \end{aligned}
    Integral of a sum, constants outside (Properties (III), (IV), Section 7.2.1); each piece is ∫dxx+k=log⁡∣x+k∣\int\frac{dx}{x+k} = \log|x+k|⁠. The final CC is the arbitrary constant of integration, a new constant, not the C=−52C = -\frac52 of the decomposition.
    Standard formula (xii), Section 7.2. Basics: logarithms and 1/x
  7. Check: differentiate the answer

    F′(x)=53(x+1)−52(x+2)+56(x−2).F'(x) = \frac{5}{3(x+1)} - \frac{5}{2(x+2)} + \frac{5}{6(x-2)}.

    Over the common denominator 6(x+1)(x−2)(x+2)6(x+1)(x-2)(x+2) the numerator is

    10(x2−4)−15(x2−x−2)+5(x2+3x+2)=0x2+30x+0=30x,\begin{aligned} &10(x^2-4) - 15(x^2-x-2) + 5(x^2+3x+2) \\ &= 0x^2 + 30x + 0 = 30x, \end{aligned}

    so F′(x)=30x6(x+1)(x−2)(x+2)F'(x) = \frac{30x}{6(x+1)(x-2)(x+2)} =5x(x+1)(x2−4)= \frac{5x}{(x+1)(x^2-4)}⁠. ✓

    Each log term is multiplied by the two factors it lacks. The answer is valid on each interval avoiding −1-1⁠, 22⁠, −2-2⁠.
    ddxlog⁡∣x∣=1x\frac{d}{dx}\log|x| = \frac1x⁠, Section 7.2, list item (xii). Basics: integration undoes differentiation
Result

For x≠−1,2,−2x \ne -1, 2, -2⁠:

∫5x dx(x+1)(x2−4)=53log⁡∣x+1∣−52log⁡∣x+2∣+56log⁡∣x−2∣+C.\begin{aligned} &\int\frac{5x\,dx}{(x+1)(x^2-4)} \\ &= \frac53\log|x+1| - \frac52\log|x+2| \\ &\quad + \frac56\log|x-2| + C. \end{aligned}

(Textbook answer: 53log⁡∣x+1∣−52log⁡∣x+2∣\frac53\log|x+1| - \frac52\log|x+2| +56log⁡∣x−2∣+C+ \frac56\log|x-2| + C⁠.)

Check it with numbers

Decomposition at x=3x = 3⁠: the integrand is 154⋅5=34\frac{15}{4\cdot 5} = \frac34⁠, and 5/34+5/61−5/25=512+1012−612=34\frac{5/3}{4} + \frac{5/6}{1} - \frac{5/2}{5} = \frac{5}{12} + \frac{10}{12} - \frac{6}{12} = \frac34⁠.

Area check on [3,4][3, 4]⁠, where the integrand is continuous: with FF our answer, F(4)−F(3)≈0.4937247F(4) - F(3) \approx 0.4937247⁠. Numerical integration from 3 to 4 also gives 0.49372470.4937247⁠.

Common mistakes
  1. Not factoring x2−4x^2 - 4⁠. Writing Ax+1+Bx+Cx2−4\frac{A}{x+1} + \frac{Bx+C}{x^2-4} is not wrong but leaves more work; x2−4x^2 - 4 is not irreducible.
  2. Mixing up which constant goes with which factor when writing the final logs; AA belongs to x+1x + 1⁠, BB to x−2x - 2⁠, CC to x+2x + 2⁠.
  3. Confusing the decomposition constant CC with the constant of integration. They are unrelated.
What to take away
  1. Factor every difference of squares before choosing the form.
  2. Three different linear factors: three constants, each found by its root.

Every fact used, and where it comes from

FactUsed inSource
x2−4=(x−2)(x+2)x^2 - 4 = (x-2)(x+2)Step 1Algebra (Basics)
Proper rational functionsStep 1Section 7.5
Form Ax−a+Bx−b+Cx−c\frac{A}{x-a} + \frac{B}{x-b} + \frac{C}{x-c}Step 2Table 7.2, row 3
The decomposition is an identitySteps 3, 4Remark after Example 11, Section 7.5
Equal polynomials have equal coefficientsStep 5Algebra (Basics)
Integral of a sum; constants outsideStep 6Properties (III), (IV), Section 7.2.1
∫dtt=log⁡∣t∣+C\int\frac{dt}{t} = \log|t| + CStep 6Standard formula (xii), Section 7.2
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 →