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

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

Exercise 7.5Integration by partial fractions · Section 7.5
The question

Integrate the rational function:

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

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

Let

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

Putting x=1x = 1⁠: 2=2A2 = 2A⁠, so A=1A = 1⁠.

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

Putting x=3x = 3⁠: 8=2C8 = 2C⁠, so C=4C = 4⁠.

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

∴ I=log⁡∣x−1∣−5log⁡∣x−2∣\therefore\ I = \log|x - 1| - 5\log|x - 2| +4log⁡∣x−3∣+c+ 4\log|x - 3| + c⁠.

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

The one idea this problem is built on

Three different linear factors in the denominator give three simple fractions: Ax−1+Bx−2+Cx−3\frac{A}{x-1} + \frac{B}{x-2} + \frac{C}{x-3} (Table 7.2, row 3). Putting x=1,2,3x = 1, 2, 3 into the cleared identity finds each constant in one line, and each simple fraction integrates to a logarithm.

Given, to find, and the plan
Given
f(x)=3x−1(x−1)(x−2)(x−3)f(x) = \frac{3x-1}{(x-1)(x-2)(x-3)}⁠, defined for every real xx except 11⁠, 22 and 33⁠.
To find
∫3x−1(x−1)(x−2)(x−3) dx\displaystyle\int\frac{3x-1}{(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 to find AA⁠, BB⁠, CC⁠. (5) Confirm by comparing coefficients. (6) Integrate. (7) Differentiate back.

Basics you need

1Table 7.2, row 3

px2+qx+r(x−a)(x−b)(x−c)\frac{px^2+qx+r}{(x-a)(x-b)(x-c)} =Ax−a+Bx−b+Cx−c= \frac{A}{x-a} + \frac{B}{x-b} + \frac{C}{x-c} when aa⁠, bb⁠, cc are different and the fraction is proper. 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 3x−13x - 1 has degree 1; the denominator is a product of three linear factors, so it has degree 3. Since 1<31 < 3⁠, the fraction is proper. The factors x−1x - 1⁠, x−2x - 2⁠, x−3x - 3 are different (a=1a = 1⁠, b=2b = 2⁠, c=3c = 3⁠).

    Row 3 of Table 7.2 covers a proper fraction over three different linear factors. The numerator 3x−13x - 1 is the case p=0p = 0⁠, q=3q = 3⁠, r=−1r = -1 of px2+qx+rpx^2 + qx + r⁠.
  2. Write the form of the decomposition

    3x−1(x−1)(x−2)(x−3)=Ax−1+Bx−2+Cx−3(1)\begin{aligned} &\frac{3x-1}{(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. Three unknowns match the three coefficients (of x2x^2⁠, xx⁠, and the constant) we will be able to compare.
    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)⁠. Each fraction loses its own factor and keeps the other two:

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

    x=1x = 1⁠: only the AA term survives.

    3−1=A(1−2)(1−3)  ⇒  2=2A  ⇒  A=1.3 - 1 = A(1-2)(1-3) \;\Rightarrow\; 2 = 2A \;\Rightarrow\; A = 1.

    x=2x = 2⁠: only the BB term survives.

    6−1=B(2−1)(2−3)  ⇒  5=−B  ⇒  B=−5.6 - 1 = B(2-1)(2-3) \;\Rightarrow\; 5 = -B \;\Rightarrow\; B = -5.

    x=3x = 3⁠: only the CC term survives.

    9−1=C(3−1)(3−2)  ⇒  8=2C  ⇒  C=4.9 - 1 = C(3-1)(3-2) \;\Rightarrow\; 8 = 2C \;\Rightarrow\; C = 4.
    At x=1x = 1 the factor (x−1)(x - 1) is zero, so the BB and CC terms, which both contain (x−1)(x-1)⁠, vanish. The same happens at x=2x = 2 and x=3x = 3 for the other terms.
  5. Confirm by comparing coefficients

    Expand the three products:

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

    So the right side of (2) is (A+B+C)x2(A+B+C)x^2 −(5A+4B+3C)x- (5A+4B+3C)x +(6A+3B+2C)+ (6A+3B+2C)⁠. Compare with 0x2+3x−10x^2 + 3x - 1⁠, using A=1A = 1⁠, B=−5B = -5⁠, C=4C = 4⁠:

    x2:A+B+C=1−5+4=0,x:−(5A+4B+3C)=−(5−20+12)=3,const:6A+3B+2C=6−15+8=−1.\begin{aligned} x^2:&\quad A+B+C = 1 - 5 + 4 = 0, \\ x:&\quad -(5A+4B+3C) = -(5 - 20 + 12) = 3, \\ \text{const}:&\quad 6A+3B+2C = 6 - 15 + 8 = -1. \end{aligned}
    All three coefficients match, so the constants are right. Comparing coefficients alone would mean solving three simultaneous equations; putting in the roots is faster, and this step is the check.
    Equal polynomials have equal coefficients. Basics: splitting fractions
  6. Integrate the three simple fractions

    3x−1(x−1)(x−2)(x−3)=1x−1−5x−2+4x−3,\begin{aligned} &\frac{3x-1}{(x-1)(x-2)(x-3)} \\ &\quad = \frac{1}{x-1} - \frac{5}{x-2} + \frac{4}{x-3}, \end{aligned} ∫f(x) dx=∫dxx−1−5∫dxx−2+4∫dxx−3=log⁡∣x−1∣−5log⁡∣x−2∣+4log⁡∣x−3∣+C.\begin{aligned} \int f(x)\,dx &= \int\frac{dx}{x-1} - 5\int\frac{dx}{x-2} \\ &\quad + 4\int\frac{dx}{x-3} \\ &= \log|x-1| - 5\log|x-2| \\ &\quad + 4\log|x-3| + C. \end{aligned}
    Split the integral over the sum and take the 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=4C = 4 of the decomposition.
    Standard formula (xii), Section 7.2. Basics: logarithms and 1/x
  7. Check: differentiate the answer

    ddx(log⁡∣x−1∣−5log⁡∣x−2∣+4log⁡∣x−3∣)=1x−1−5x−2+4x−3.\begin{aligned} &\frac{d}{dx}\big(\log|x-1| - 5\log|x-2| + 4\log|x-3|\big) \\ &= \frac{1}{x-1} - \frac{5}{x-2} + \frac{4}{x-3}. \end{aligned}

    Over the common denominator (x−1)(x−2)(x−3)(x-1)(x-2)(x-3)⁠, using the expansions of Step 5, the numerator is

    (x2−5x+6)−5(x2−4x+3)+4(x2−3x+2)=0x2+3x−1=3x−1. ✓\begin{aligned} &(x^2-5x+6) - 5(x^2-4x+3) + 4(x^2-3x+2) \\ &= 0x^2 + 3x - 1 = 3x - 1. \ \checkmark \end{aligned}
    We get back the integrand 3x−1(x−1)(x−2)(x−3)\frac{3x-1}{(x-1)(x-2)(x-3)}⁠. The answer is valid on every interval that avoids 11⁠, 22 and 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⁠:

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

(Textbook answer: log⁡∣x−1∣−5log⁡∣x−2∣\log|x-1| - 5\log|x-2| +4log⁡∣x−3∣+C+ 4\log|x-3| + C⁠.)

Check it with numbers

Decomposition at x=0x = 0⁠: the integrand is −1(−1)(−2)(−3)=16\frac{-1}{(-1)(-2)(-3)} = \frac16⁠, and 1−1−5−2+4−3=−1+52−43=16\frac{1}{-1} - \frac{5}{-2} + \frac{4}{-3} = -1 + \frac52 - \frac43 = \frac16⁠.

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

F(5)−F(4)=11log⁡2−6log⁡3=log⁡2048729≈1.0329453.\begin{aligned} F(5) - F(4) &= 11\log 2 - 6\log 3 \\ &= \log\tfrac{2048}{729} \approx 1.0329453. \end{aligned}

Numerical integration from 4 to 5 also gives 1.03294531.0329453⁠.

Common mistakes
  1. Sign of BB⁠. At x=2x = 2⁠, (2−1)(2−3)=−1(2-1)(2-3) = -1⁠, so 5=−B5 = -B and B=−5B = -5⁠.
  2. Keeping the wrong factors when clearing. AA multiplies the two factors it is not over: (x−2)(x−3)(x-2)(x-3)⁠.
  3. Dropping the absolute values. log⁡(x−2)\log(x-2) is undefined for x<2x < 2⁠; log⁡∣x−2∣\log|x-2| works on both sides.
What to take away
  1. Three different linear factors: three constants, one per factor.
  2. Each root of the denominator, put into the cleared identity, finds one constant.
  3. Expanding and comparing coefficients is a reliable check.

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 →