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

Exercise 7.5 · Q4: ∫x(x−1)(x−2)(x−3) dx\int\frac{x}{(x-1)(x-2)(x-3)}\,dx

Exercise 7.5Integration by partial fractions · Section 7.5
The question

Integrate the rational function:

x(x−1)(x−2)(x−3)\frac{x}{(x-1)(x-2)(x-3)}
Exam answer

Let I=∫x(x−1)(x−2)(x−3) dxI = \displaystyle\int\frac{x}{(x - 1)(x - 2)(x - 3)}\,dx⁠.

Let

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

Putting x=1x = 1⁠: 1=2A1 = 2A⁠, so A=12A = \frac12⁠.

Putting x=2x = 2⁠: 2=−B2 = -B⁠, so B=−2B = -2⁠.

Putting x=3x = 3⁠: 3=2C3 = 2C⁠, so C=32C = \frac32⁠.

∴ I=12∫dxx−1−2∫dxx−2+32∫dxx−3\begin{aligned} \therefore\ I &= \frac12\int\frac{dx}{x - 1} - 2\int\frac{dx}{x - 2} \\ &\quad + \frac32\int\frac{dx}{x - 3} \end{aligned}

∴ I=12log⁡∣x−1∣−2log⁡∣x−2∣\therefore\ I = \dfrac12\log|x - 1| - 2\log|x - 2| +32log⁡∣x−3∣+c+ \dfrac32\log|x - 3| + c⁠.

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

The one idea this problem is built on

Same denominator as Q3, new numerator. Three different linear factors give Ax−1+Bx−2+Cx−3\frac{A}{x-1} + \frac{B}{x-2} + \frac{C}{x-3} (Table 7.2, row 3). The constants now come out as fractions, which is normal; each simple fraction integrates to a logarithm.

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

Basics you need

1Table 7.2, row 3

A proper fraction over (x−a)(x−b)(x−c)(x-a)(x-b)(x-c)⁠, with aa⁠, bb⁠, cc different, equals Ax−a+Bx−b+Cx−c\frac{A}{x-a} + \frac{B}{x-b} + \frac{C}{x-c}⁠. Lesson: partial fractions

2Polynomial identities

A polynomial identity holds at every xx and has matching coefficients on both sides. Basics: splitting 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. The fraction is proper, with three different linear factors

    The numerator xx has degree 1 and the denominator has degree 3, so the fraction is proper. The factors x−1x-1⁠, x−2x-2⁠, x−3x-3 are linear and different.

    These are the two conditions for row 3 of Table 7.2: proper, and three different linear factors.
  2. Write the form of the decomposition

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

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

    x=A(x−2)(x−3)+B(x−1)(x−3)+C(x−1)(x−2).(2)\begin{aligned} x &= A(x-2)(x-3) \\ &\quad + B(x-1)(x-3) \\ &\quad + C(x-1)(x-2). \qquad (2) \end{aligned}
    (1) holds for all x≠1,2,3x \ne 1, 2, 3⁠, so the polynomials in (2) agree at infinitely many points and are equal for every real xx⁠.
    Remark after Example 11, Section 7.5.
  4. Find AA⁠, BB⁠, CC by putting in the roots

    x=1x = 1⁠: 1=A(1−2)(1−3)=2A1 = A(1-2)(1-3) = 2A⁠, so A=12A = \frac12⁠.

    x=2x = 2⁠: 2=B(2−1)(2−3)=−B2 = B(2-1)(2-3) = -B⁠, so B=−2B = -2⁠.

    x=3x = 3⁠: 3=C(3−1)(3−2)=2C3 = C(3-1)(3-2) = 2C⁠, so C=32C = \frac32⁠.

    At each root two of the three terms of (2) contain a zero factor and vanish, leaving one equation in one unknown.
  5. Confirm by comparing coefficients

    With (x−2)(x−3)=x2−5x+6(x-2)(x-3) = x^2 - 5x + 6⁠, (x−1)(x−3)=x2−4x+3(x-1)(x-3) = x^2 - 4x + 3⁠, (x−1)(x−2)=x2−3x+2(x-1)(x-2) = x^2 - 3x + 2⁠, the right side of (2) is

    (A+B+C)x2−(5A+4B+3C)x+(6A+3B+2C).(A+B+C)x^2 - (5A+4B+3C)x + (6A+3B+2C).

    Compare with 0x2+1x+00x^2 + 1x + 0⁠, using A=12A = \frac12⁠, B=−2B = -2⁠, C=32C = \frac32⁠:

    x2:12−2+32=0,x:−(52−8+92)=−(−1)=1,const:3−6+3=0.\begin{aligned} x^2:&\quad \tfrac12 - 2 + \tfrac32 = 0, \\ x:&\quad -\big(\tfrac52 - 8 + \tfrac92\big) = -(-1) = 1, \\ \text{const}:&\quad 3 - 6 + 3 = 0. \end{aligned}
    All three coefficients agree with the numerator xx⁠, so the constants are right.
    Equal polynomials have equal coefficients. Basics: splitting fractions
  6. Integrate the three simple fractions

    ∫f(x) dx=12∫dxx−1−2∫dxx−2+32∫dxx−3=12log⁡∣x−1∣−2log⁡∣x−2∣+32log⁡∣x−3∣+C.\begin{aligned} \int f(x)\,dx &= \frac12\int\frac{dx}{x-1} - 2\int\frac{dx}{x-2} \\ &\quad + \frac32\int\frac{dx}{x-3} \\ &= \tfrac12\log|x-1| - 2\log|x-2| \\ &\quad + \tfrac32\log|x-3| + 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, not the C=32C = \frac32 of the decomposition.
    Standard formula (xii), Section 7.2. Basics: logarithms and 1/x
  7. Check: differentiate the answer

    The derivative is 1/2x−1−2x−2+3/2x−3\frac{1/2}{x-1} - \frac{2}{x-2} + \frac{3/2}{x-3}⁠. Over the common denominator (x−1)(x−2)(x−3)(x-1)(x-2)(x-3) its numerator is

    12(x2−5x+6)−2(x2−4x+3)+32(x2−3x+2)=0x2+(−52+8−92)x+(3−6+3)=x. ✓\begin{aligned} &\tfrac12(x^2-5x+6) - 2(x^2-4x+3) \\ &\quad + \tfrac32(x^2-3x+2) \\ &= 0x^2 + \big(-\tfrac52 + 8 - \tfrac92\big)x + (3 - 6 + 3) \\ &= x. \ \checkmark \end{aligned}
    The derivative is x(x−1)(x−2)(x−3)\frac{x}{(x-1)(x-2)(x-3)}⁠, the integrand. The answer is valid on every interval avoiding 11⁠, 22⁠, 33⁠.
    ddxlog⁡∣x∣=1x\frac{d}{dx}\log|x| = \frac1x⁠, Section 7.2, list item (xii). Basics: integration undoes differentiation
Result

For x≠1,2,3x \ne 1, 2, 3⁠:

∫x dx(x−1)(x−2)(x−3)=12log⁡∣x−1∣−2log⁡∣x−2∣+32log⁡∣x−3∣+C.\begin{aligned} &\int\frac{x\,dx}{(x-1)(x-2)(x-3)} \\ &= \tfrac12\log|x-1| - 2\log|x-2| + \tfrac32\log|x-3| + C. \end{aligned}

(Textbook answer: 12log⁡∣x−1∣−2log⁡∣x−2∣\frac12\log|x-1| - 2\log|x-2| +32log⁡∣x−3∣+C+ \frac32\log|x-3| + C⁠.)

Check it with numbers

Decomposition at x=4x = 4⁠: the integrand is 43⋅2⋅1=23\frac{4}{3\cdot 2\cdot 1} = \frac23⁠, and 1/23−22+3/21=16−1+32=23\frac{1/2}{3} - \frac{2}{2} + \frac{3/2}{1} = \frac16 - 1 + \frac32 = \frac23⁠.

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

F(5)−F(4)=92log⁡2−52log⁡3=log⁡16627≈0.3726316.\begin{aligned} F(5) - F(4) &= \tfrac92\log 2 - \tfrac52\log 3 \\ &= \log\tfrac{16\sqrt6}{27} \approx 0.3726316. \end{aligned}

Numerical integration from 4 to 5 also gives 0.37263160.3726316⁠.

Common mistakes
  1. Sign at x=2x = 2⁠. (2−1)(2−3)=−1(2-1)(2-3) = -1⁠, so 2=−B2 = -B and B=−2B = -2⁠.
  2. Expecting whole-number constants. A=12A = \frac12 and C=32C = \frac32 are fine; check them by comparing coefficients.
  3. Losing the fraction in front of the log. ∫1/2x−1 dx=12log⁡∣x−1∣\int\frac{1/2}{x-1}\,dx = \frac12\log|x-1|⁠, not log⁡∣x−1∣\log|x-1|⁠.
What to take away
  1. The form of the decomposition depends only on the denominator; the numerator decides the constants.
  2. Root substitution plus a coefficient check is fast and safe.

Every fact used, and where it comes from

FactUsed inSource
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 →