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

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

Exercise 7.5Integration by partial fractions · Section 7.5
The question

Integrate the rational function:

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

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

Let

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

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

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

Comparing constant terms: A−C=0A - C = 0⁠, so C=12C = \frac12⁠.

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

In the middle integral, put x2+1=tx^2 + 1 = t⁠. Then 2x dx=dt2x\,dx = dt⁠.

∫x dxx2+1=12∫dtt=12log⁡(x2+1)\begin{aligned} \int\frac{x\,dx}{x^2 + 1} &= \frac12\int\frac{dt}{t} \\ &= \frac12\log(x^2 + 1) \end{aligned} ∴ I=12log⁡∣x−1∣−12⋅12log⁡(x2+1)+12tan⁡−1x+c\begin{aligned} \therefore\ I &= \frac12\log|x - 1| \\ &\quad - \frac12\cdot\frac12\log(x^2 + 1) \\ &\quad + \frac12\tan^{-1}x + c \end{aligned}

∴ I=12log⁡∣x−1∣−14log⁡(x2+1)\therefore\ I = \dfrac12\log|x - 1| - \dfrac14\log(x^2 + 1) +12tan⁡−1x+c+ \dfrac12\tan^{-1}x + c⁠.

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

The one idea this problem is built on

The factor x2+1x^2 + 1 has no real roots, so it cannot be split into linear factors. Over such an irreducible quadratic the partial fraction has a linear numerator: Ax−1+Bx+Cx2+1\frac{A}{x-1} + \frac{Bx+C}{x^2+1} (Table 7.2, row 5). The BxBx part integrates to a logarithm, the CC part to tan⁡−1x\tan^{-1}x⁠.

Given, to find, and the plan
Given
f(x)=x(x2+1)(x−1)f(x) = \frac{x}{(x^2+1)(x-1)}⁠. Since x2+1≥1>0x^2 + 1 \ge 1 > 0⁠, the only excluded point is x=1x = 1⁠.
To find
∫x(x2+1)(x−1) dx\displaystyle\int\frac{x}{(x^2+1)(x-1)}\,dx⁠.
Plan
(1) Check the fraction is proper and that x2+1x^2+1 is irreducible. (2) Write the form (Table 7.2, row 5). (3) Clear denominators. (4) Find AA by putting x=1x = 1⁠; find BB⁠, CC by comparing coefficients. (5) Integrate the three pieces. (6) Differentiate back.

Basics you need

1Table 7.2, row 5

px2+qx+r(x−a)(x2+bx+c)\frac{px^2+qx+r}{(x-a)(x^2+bx+c)} =Ax−a+Bx+Cx2+bx+c= \frac{A}{x-a} + \frac{Bx+C}{x^2+bx+c}⁠, where x2+bx+cx^2 + bx + c cannot be factorised further. Lesson: partial fractions

2When a quadratic cannot be factorised

x2+bx+cx^2 + bx + c has real linear factors only if its discriminant b2−4c≥0b^2 - 4c \ge 0⁠. For x2+1x^2 + 1⁠, b2−4c=−4<0b^2 - 4c = -4 < 0⁠. Basics: splitting fractions

3Two integrals over x2+1x^2 + 1

∫dx1+x2=tan⁡−1x+C\int\frac{dx}{1+x^2} = \tan^{-1}x + C (standard formula (x), Section 7.2). With t=x2+1t = x^2+1⁠, dt=2x dxdt = 2x\,dx⁠: ∫x dxx2+1=12log⁡(x2+1)+C\int\frac{x\,dx}{x^2+1} = \frac12\log(x^2+1) + C⁠. Basics: substitution

4The logarithm integral

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

Solution

  1. Proper, with one linear and one irreducible quadratic factor

    The numerator xx has degree 1; the denominator (x2+1)(x−1)(x^2+1)(x-1) has degree 3. So the fraction is proper. The factor x−1x - 1 is linear. The factor x2+1x^2 + 1 has discriminant 02−4(1)(1)=−4<00^2 - 4(1)(1) = -4 < 0⁠, so it has no real roots and cannot be factorised further.

    Row 5 of Table 7.2 is exactly this case: a proper fraction over (linear) ×\times (quadratic that cannot be factorised).
    Section 7.5; Table 7.2, row 5. Basics: splitting fractions
  2. Write the form of the decomposition

    x(x2+1)(x−1)=Ax−1+Bx+Cx2+1(1)\frac{x}{(x^2+1)(x-1)} = \frac{A}{x-1} + \frac{Bx+C}{x^2+1} \qquad (1)
    Over a quadratic factor the numerator must be allowed to be linear, Bx+CBx + C⁠. A constant alone would not be enough: we would have only two unknowns for three coefficients, and in general no solution.
    Table 7.2, row 5. Lesson: partial fractions
  3. Clear the denominators

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

    x=A(x2+1)+(Bx+C)(x−1).(2)x = A(x^2+1) + (Bx+C)(x-1). \qquad (2)
    (1) holds for every x≠1x \ne 1⁠; the polynomials in (2) agree at infinitely many points, so (2) holds for every real xx⁠.
    Remark after Example 11, Section 7.5.
  4. Find AA by putting x=1x = 1

    1=A(1+1)+(B+C)(0)=2A,so A=12.1 = A(1 + 1) + (B + C)(0) = 2A, \quad\text{so } A = \tfrac12.
    At x=1x = 1 the second term contains the factor x−1=0x - 1 = 0 and vanishes. The quadratic x2+1x^2 + 1 has no real root, so there is no similar shortcut for BB and CC⁠; we compare coefficients instead.
  5. Find BB and CC by comparing coefficients

    Expand the right side of (2):

    Ax2+A+Bx2−Bx+Cx−C=(A+B)x2+(C−B)x+(A−C).\begin{aligned} &A x^2 + A + Bx^2 - Bx + Cx - C \\ &= (A+B)x^2 + (C-B)x + (A-C). \end{aligned}

    Compare with the left side 0x2+1x+00x^2 + 1x + 0⁠:

    x2:A+B=0  ⇒  B=−12,const:A−C=0  ⇒  C=12,x:C−B=12+12=1. ✓\begin{aligned} x^2:&\quad A + B = 0 \;\Rightarrow\; B = -\tfrac12, \\ \text{const}:&\quad A - C = 0 \;\Rightarrow\; C = \tfrac12, \\ x:&\quad C - B = \tfrac12 + \tfrac12 = 1. \ \checkmark \end{aligned}
    The x2x^2 and constant equations give BB and CC at once from A=12A = \frac12⁠. The xx equation is then a check, and it holds.
    Equal polynomials have equal coefficients. Basics: splitting fractions
  6. Write the integrand in pieces

    x(x2+1)(x−1)=12(x−1)+−12x+12x2+1=12(x−1)−12⋅xx2+1+12⋅1x2+1.\begin{aligned} \frac{x}{(x^2+1)(x-1)} &= \frac{1}{2(x-1)} + \frac{-\frac12 x + \frac12}{x^2+1} \\ &= \frac{1}{2(x-1)} - \frac12\cdot\frac{x}{x^2+1} \\ &\quad + \frac12\cdot\frac{1}{x^2+1}. \end{aligned}
    Separating Bx+Cx2+1\frac{Bx+C}{x^2+1} into an xx part and a constant part gives two pieces that each have a known integral.
  7. Integrate each piece

    For the middle piece put t=x2+1t = x^2 + 1⁠, dt=2x dxdt = 2x\,dx⁠:

    ∫x dxx2+1=12∫dtt=12log⁡(x2+1)+C.\int\frac{x\,dx}{x^2+1} = \frac12\int\frac{dt}{t} = \frac12\log(x^2+1) + C.

    (No absolute value is needed since x2+1>0x^2 + 1 > 0⁠.) Then

    ∫f(x) dx=12log⁡∣x−1∣−12⋅12log⁡(x2+1)+12tan⁡−1x+C=12log⁡∣x−1∣−14log⁡(x2+1)+12tan⁡−1x+C.\begin{aligned} \int f(x)\,dx &= \frac12\log|x-1| - \frac12\cdot\frac12\log(x^2+1) \\ &\quad + \frac12\tan^{-1}x + C \\ &= \frac12\log|x-1| - \frac14\log(x^2+1) \\ &\quad + \frac12\tan^{-1}x + C. \end{aligned}
    The first piece is 12∫dxx−1\frac12\int\frac{dx}{x-1}⁠; the last is 12∫dx1+x2\frac12\int\frac{dx}{1+x^2}⁠. Constants move outside (Property (IV), Section 7.2.1).
    Substitution, Section 7.3.1; standard formulae (x) and (xii), Section 7.2. Basics: substitution
  8. Check: differentiate the answer

    ddx(12log⁡∣x−1∣−14log⁡(x2+1)+12tan⁡−1x)=12(x−1)−2x4(x2+1)+12(1+x2)=12(x−1)+1−x2(x2+1).\begin{aligned} &\frac{d}{dx}\Big(\tfrac12\log|x-1| - \tfrac14\log(x^2+1) \\ &\qquad + \tfrac12\tan^{-1}x\Big) \\ &= \frac{1}{2(x-1)} - \frac{2x}{4(x^2+1)} + \frac{1}{2(1+x^2)} \\ &= \frac{1}{2(x-1)} + \frac{1-x}{2(x^2+1)}. \end{aligned}

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

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

    so the derivative is 2x2(x−1)(x2+1)=x(x2+1)(x−1)\frac{2x}{2(x-1)(x^2+1)} = \frac{x}{(x^2+1)(x-1)}⁠. ✓

    (1−x)(x−1)=−(x−1)2(1-x)(x-1) = -(x-1)^2⁠. We are back at the integrand; the answer is valid on each interval avoiding x=1x = 1⁠.
    Chain rule; ddxtan⁡−1x=11+x2\frac{d}{dx}\tan^{-1}x = \frac{1}{1+x^2}⁠, Section 7.2, list item (x). Basics: integration undoes differentiation
Result

For x≠1x \ne 1⁠:

∫x dx(x2+1)(x−1)=12log⁡∣x−1∣−14log⁡(x2+1)+12tan⁡−1x+C.\begin{aligned} &\int\frac{x\,dx}{(x^2+1)(x-1)} \\ &= \tfrac12\log|x-1| - \tfrac14\log(x^2+1) + \tfrac12\tan^{-1}x + C. \end{aligned}

(Textbook answer: 12log⁡∣x−1∣−14log⁡(x2+1)\frac12\log|x-1| - \frac14\log(x^2+1) +12tan⁡−1x+C+ \frac12\tan^{-1}x + C⁠.)

Check it with numbers

Decomposition at x=2x = 2⁠: the integrand is 25⋅1=0.4\frac{2}{5\cdot 1} = 0.4⁠, and 12+−1+0.55=0.5−0.1=0.4\frac{1}{2} + \frac{-1 + 0.5}{5} = 0.5 - 0.1 = 0.4⁠.

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

F(3)−F(2)=14log⁡2+12(tan⁡−13−tan⁡−12)≈0.2442353.\begin{aligned} F(3) - F(2) &= \tfrac14\log 2 + \tfrac12\big(\tan^{-1}3 - \tan^{-1}2\big) \\ &\approx 0.2442353. \end{aligned}

Numerical integration from 2 to 3 also gives 0.24423530.2442353⁠.

Common mistakes
  1. Putting only a constant over x2+1x^2 + 1⁠. Ax−1+Bx2+1\frac{A}{x-1} + \frac{B}{x^2+1} cannot match in general; the numerator over a quadratic must be Bx+CBx + C⁠.
  2. Trying to factorise x2+1x^2 + 1⁠. It has no real roots (discriminant −4-4⁠).
  3. Forgetting the 12\frac12 from dt=2x dxdt = 2x\,dx⁠. ∫xx2+1 dx=12log⁡(x2+1)\int\frac{x}{x^2+1}\,dx = \frac12\log(x^2+1)⁠, so with B=−12B = -\frac12 the coefficient is −14-\frac14⁠.
What to take away
  1. Irreducible quadratic factor: linear numerator Bx+CBx + C⁠.
  2. Find the linear factor's constant by its root; find the rest by comparing coefficients.
  3. Bx+Cx2+1\frac{Bx+C}{x^2+1} integrates to a log part plus a tan⁡−1\tan^{-1} part.

Every fact used, and where it comes from

FactUsed inSource
Proper rational functionsStep 1Section 7.5
Discriminant test for real factorsStep 1Algebra (Basics)
Form Ax−a+Bx+Cx2+bx+c\frac{A}{x-a} + \frac{Bx+C}{x^2+bx+c}Step 2Table 7.2, row 5
The decomposition is an identitySteps 3, 4Remark after Example 11, Section 7.5
Equal polynomials have equal coefficientsStep 5Algebra; Example 16
Substitution t=x2+1t = x^2 + 1Step 7Section 7.3.1
∫dx1+x2=tan⁡−1x+C\int\frac{dx}{1+x^2} = \tan^{-1}x + CStep 7Standard formula (x), Section 7.2
∫dtt=log⁡∣t∣+C\int\frac{dt}{t} = \log|t| + CStep 7Standard formula (xii), Section 7.2
Chain rule; derivative of tan⁡−1x\tan^{-1}xStep 8Chapter 5; Section 7.2, list item (x)
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 →