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

Exercise 7.5 · Q9: ∫3x+5x3−x2−x+1 dx\int\frac{3x+5}{x^3-x^2-x+1}\,dx

Exercise 7.5Integration by partial fractions · Section 7.5
The question

Integrate the rational function:

3x+5x3−x2−x+1\frac{3x+5}{x^3-x^2-x+1}
Exam answer

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

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

Let

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

Putting x=1x = 1⁠: 8=2B8 = 2B⁠, so B=4B = 4⁠.

Putting x=−1x = -1⁠: 2=4C2 = 4C⁠, so C=12C = \frac12⁠.

Comparing coefficients of x2x^2⁠: A+C=0A + C = 0⁠, so A=−12A = -\frac12⁠.

∴ I=−12∫dxx−1+4∫dx(x−1)2+12∫dxx+1=−12log⁡∣x−1∣−4x−1+12log⁡∣x+1∣+c\begin{aligned} \therefore\ I &= -\frac12\int\frac{dx}{x - 1} \\ &\quad + 4\int\frac{dx}{(x - 1)^2} \\ &\quad + \frac12\int\frac{dx}{x + 1} \\ &= -\frac12\log|x - 1| - \frac{4}{x - 1} \\ &\quad + \frac12\log|x + 1| + c \end{aligned}

∴ I=12log⁡∣x+1x−1∣\therefore\ I = \dfrac12\log\left|\dfrac{x + 1}{x - 1}\right| −4x−1+c- \dfrac{4}{x - 1} + c⁠.

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

The one idea this problem is built on

First factorise the cubic by grouping: x3−x2−x+1=(x−1)2(x+1)x^3 - x^2 - x + 1 = (x-1)^2(x+1)⁠. The factor x−1x - 1 is repeated, so the decomposition is Ax−1+B(x−1)2+Cx+1\frac{A}{x-1} + \frac{B}{(x-1)^2} + \frac{C}{x+1} (Table 7.2, row 4). The squared term integrates by the power rule.

Given, to find, and the plan
Given
f(x)=3x+5x3−x2−x+1f(x) = \frac{3x+5}{x^3-x^2-x+1}⁠, defined except where the denominator is 0, that is x=1x = 1 and x=−1x = -1 (found in Step 1).
To find
∫3x+5x3−x2−x+1 dx\displaystyle\int\frac{3x+5}{x^3-x^2-x+1}\,dx⁠.
Plan
(1) Factorise the denominator by grouping. (2) Write the form (Table 7.2, row 4). (3) Clear denominators. (4) Put x=1x = 1⁠, x=−1x = -1⁠; compare x2x^2 coefficients; check. (5) Integrate. (6) Differentiate back.

Basics you need

1Factorising by grouping

Pair the terms so each pair has a common factor, then take out the common bracket: x2(x−1)−1(x−1)=(x−1)(x2−1)x^2(x-1) - 1(x-1) = (x-1)(x^2-1)⁠. Basics: splitting fractions

2Table 7.2, row 4

px2+qx+r(x−a)2(x−b)\frac{px^2+qx+r}{(x-a)^2(x-b)} =Ax−a+B(x−a)2+Cx−b= \frac{A}{x-a} + \frac{B}{(x-a)^2} + \frac{C}{x-b}⁠. Lesson: partial fractions

3Power rule and the logarithm

∫dx(x−1)2=−1x−1+C\int\frac{dx}{(x-1)^2} = -\frac{1}{x-1} + C (standard formula (i) with t=x−1t = x - 1⁠, n=−2n = -2⁠); ∫dxx+k=log⁡∣x+k∣+C\int\frac{dx}{x+k} = \log|x+k| + C (formula (xii)). Basics: powers of x

Solution

  1. Factorise the denominator by grouping

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

    The numerator 3x+53x + 5 has degree 1 and the denominator degree 3, so the fraction is proper.

    The first two terms share x2x^2⁠; the last two share −1-1⁠; both leave the bracket x−1x - 1⁠. Then x2−1=(x−1)(x+1)x^2 - 1 = (x-1)(x+1) is a difference of squares. Check: x=1x = 1 gives 1−1−1+1=01 - 1 - 1 + 1 = 0 and x=−1x = -1 gives −1−1+1+1=0-1 - 1 + 1 + 1 = 0⁠, so both are roots.
    Algebra; Section 7.5. Basics: splitting fractions
  2. Write the form of the decomposition

    3x+5(x−1)2(x+1)=Ax−1+B(x−1)2+Cx+1(1)\begin{aligned} &\frac{3x+5}{(x-1)^2(x+1)} \\ &\quad = \frac{A}{x-1} + \frac{B}{(x-1)^2} + \frac{C}{x+1} \qquad (1) \end{aligned}
    The repeated factor (x−1)2(x-1)^2 needs a fraction for each power, x−1x - 1 and (x−1)2(x-1)^2⁠; the single factor x+1x + 1 gets one.
    Table 7.2, row 4 (a=1a = 1⁠, b=−1b = -1⁠). Lesson: partial fractions
  3. Clear the denominators

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

    3x+5=A(x−1)(x+1)+B(x+1)+C(x−1)2.(2)\begin{aligned} 3x + 5 &= A(x-1)(x+1) + B(x+1) \\ &\quad + C(x-1)^2. \qquad (2) \end{aligned}
    Each fraction keeps the factors it does not have. (2) is a polynomial identity, valid for every real xx⁠.
    Remark after Example 11, Section 7.5.
  4. Find BB and CC by putting in the roots

    x=1x = 1⁠: 3+5=B(2)3 + 5 = B(2)⁠, so 8=2B8 = 2B and B=4B = 4⁠.

    x=−1x = -1⁠: −3+5=C(−2)2-3 + 5 = C(-2)^2⁠, so 2=4C2 = 4C and C=12C = \frac12⁠.

    At x=1x = 1 the AA and CC terms contain x−1=0x - 1 = 0⁠; at x=−1x = -1 the AA and BB terms contain x+1=0x + 1 = 0⁠.
  5. Find AA⁠, then check every coefficient

    Expand: A(x2−1)+B(x+1)+C(x2−2x+1)A(x^2 - 1) + B(x+1) + C(x^2 - 2x + 1)⁠. The right side of (2) is

    (A+C)x2+(B−2C)x+(−A+B+C).(A + C)x^2 + (B - 2C)x + (-A + B + C).

    No x2x^2 on the left, so A+C=0A + C = 0 and A=−12A = -\frac12⁠. Check:

    x:B−2C=4−1=3,const:−A+B+C=12+4+12=5.\begin{aligned} x:&\quad B - 2C = 4 - 1 = 3, \\ \text{const}:&\quad -A + B + C = \tfrac12 + 4 + \tfrac12 = 5. \end{aligned}
    These match 3x+53x + 5⁠, so A=−12A = -\frac12⁠, B=4B = 4⁠, C=12C = \frac12 are confirmed.
    Equal polynomials have equal coefficients. Basics: splitting fractions
  6. Integrate the three simple fractions

    ∫f(x) dx=−12∫dxx−1+4∫dx(x−1)2+12∫dxx+1=−12log⁡∣x−1∣−4x−1+12log⁡∣x+1∣+C=12log⁡∣x+1x−1∣−4x−1+C.\begin{aligned} \int f(x)\,dx &= -\frac12\int\frac{dx}{x-1} + 4\int\frac{dx}{(x-1)^2} \\ &\quad + \frac12\int\frac{dx}{x+1} \\ &= -\frac12\log|x-1| - \frac{4}{x-1} \\ &\quad + \frac12\log|x+1| + C \\ &= \frac12\log\left|\frac{x+1}{x-1}\right| - \frac{4}{x-1} + C. \end{aligned}
    With t=x−1t = x - 1⁠, ∫t−2 dt=−t−1\int t^{-2}\,dt = -t^{-1}⁠, so 4∫dx(x−1)2=−4x−14\int\frac{dx}{(x-1)^2} = -\frac{4}{x-1}⁠. The two logs combine as 12(log⁡∣x+1∣−log⁡∣x−1∣)\frac12(\log|x+1| - \log|x-1|)⁠. The final CC is the arbitrary constant of integration, not the C=12C = \frac12 of the decomposition.
    Standard formulae (i) and (xii), Section 7.2. Basics: logarithms and 1/x
  7. Check: differentiate the answer

    F′(x)=−12(x−1)+4(x−1)2+12(x+1).F'(x) = -\frac{1}{2(x-1)} + \frac{4}{(x-1)^2} + \frac{1}{2(x+1)}.

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

    −(x−1)(x+1)+8(x+1)+(x−1)2=(−x2+1)+(8x+8)+(x2−2x+1)=6x+10,\begin{aligned} &-(x-1)(x+1) + 8(x+1) + (x-1)^2 \\ &= (-x^2 + 1) + (8x + 8) + (x^2 - 2x + 1) \\ &= 6x + 10, \end{aligned}

    so F′(x)=6x+102(x−1)2(x+1)F'(x) = \frac{6x+10}{2(x-1)^2(x+1)} =3x+5(x−1)2(x+1)= \frac{3x+5}{(x-1)^2(x+1)}⁠. ✓

    ddx(−4x−1)=4(x−1)2\frac{d}{dx}\left(-\frac{4}{x-1}\right) = \frac{4}{(x-1)^2}⁠. We get back the integrand, since (x−1)2(x+1)=x3−x2−x+1(x-1)^2(x+1) = x^3 - x^2 - x + 1⁠. Valid on each interval avoiding ±1\pm 1⁠.
    Power rule and ddxlog⁡∣x∣=1x\frac{d}{dx}\log|x| = \frac1x⁠, Section 7.2. Basics: integration undoes differentiation
Result

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

∫3x+5x3−x2−x+1 dx=12log⁡∣x+1x−1∣−4x−1+C.\begin{aligned} &\int\frac{3x+5}{x^3-x^2-x+1}\,dx \\ &= \frac12\log\left|\frac{x+1}{x-1}\right| - \frac{4}{x-1} + C. \end{aligned}

(Textbook answer: 12log⁡∣x+1x−1∣−4x−1+C\frac12\log\left|\frac{x+1}{x-1}\right| - \frac{4}{x-1} + C⁠.)

Check it with numbers

Decomposition at x=2x = 2⁠: the integrand is 118−4−2+1=113\frac{11}{8 - 4 - 2 + 1} = \frac{11}{3}⁠, and −12+41+1/23=−12+4+16=113-\frac12 + \frac41 + \frac{1/2}{3} = -\frac12 + 4 + \frac16 = \frac{11}{3}⁠.

Area check on [2,3][2, 3]⁠, where the integrand is continuous: with FF our answer,

F(3)−F(2)=2+12log⁡23≈1.7972674.F(3) - F(2) = 2 + \tfrac12\log\tfrac23 \approx 1.7972674.

Numerical integration from 2 to 3 also gives 1.79726741.7972674⁠.

Common mistakes
  1. Factorising as (x−1)(x+1)2(x-1)(x+1)^2⁠. Grouping gives (x−1)(x2−1)=(x−1)2(x+1)(x-1)(x^2-1) = (x-1)^2(x+1)⁠; test a root to be sure.
  2. Writing Ax−1+Cx+1\frac{A}{x-1} + \frac{C}{x+1} only. The repeated factor needs the extra term B(x−1)2\frac{B}{(x-1)^2}⁠.
  3. Getting a log from 4(x−1)2\frac{4}{(x-1)^2}⁠. It integrates to −4x−1-\frac{4}{x-1}⁠.
What to take away
  1. Factorise a cubic denominator by grouping or by testing small roots like ±1\pm 1⁠.
  2. Repeated factor: one fraction for each power; roots give BB⁠, CC⁠, the x2x^2 coefficient gives AA⁠.

Every fact used, and where it comes from

FactUsed inSource
Factorising by grouping; x2−1=(x−1)(x+1)x^2 - 1 = (x-1)(x+1)Step 1Algebra (Basics)
Proper rational functionsStep 1Section 7.5
Form Ax−a+B(x−a)2+Cx−b\frac{A}{x-a} + \frac{B}{(x-a)^2} + \frac{C}{x-b}Step 2Table 7.2, row 4
The decomposition is an identitySteps 3, 4Remark after Example 11, Section 7.5
Equal polynomials have equal coefficientsStep 5Algebra (Basics)
∫tn dt=tn+1n+1+C\int t^n\,dt = \frac{t^{n+1}}{n+1} + C⁠; ∫dtt=log⁡∣t∣+C\int\frac{dt}{t} = \log|t| + CStep 6Standard formulae (i), (xii), Section 7.2
Derivatives of powers and of log⁡∣x∣\log|x|Step 7Section 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 →