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

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

Exercise 7.5Integration by partial fractions · Section 7.5
The question

Integrate the rational function

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

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

Let

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

Comparing coefficients:

x2:A−B=0x:B−C=0constant:A+C=2\begin{aligned} x^2:&\quad A - B = 0 \\ x:&\quad B - C = 0 \\ \text{constant}:&\quad A + C = 2 \end{aligned}

So A=B=C=1A = B = C = 1⁠.

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

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

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

The one idea this problem is built on

The denominator has one linear factor 1−x1 - x and one quadratic factor that cannot be factorised, 1+x21 + x^2⁠. Table 7.2 (row 5) says: give the linear factor a constant on top and the quadratic factor a linear expression Bx+CBx + C on top. The pieces then integrate to a logarithm, a logarithm and an inverse tangent.

Given, to find, and the plan
Given
The integrand 2(1−x)(1+x2)\frac{2}{(1 - x)(1 + x^2)}⁠, defined for every x≠1x \ne 1 (since 1+x2≥1>01 + x^2 \ge 1 > 0⁠).
To find
∫2(1−x)(1+x2) dx\int\frac{2}{(1 - x)(1 + x^2)}\,dx⁠.
Plan
(1) Check the fraction is proper and that 1+x21 + x^2 has no real factors. (2) Write A1−x+Bx+C1+x2\frac{A}{1 - x} + \frac{Bx + C}{1 + x^2}⁠. (3) Clear denominators and find AA⁠, BB⁠, CC⁠. (4) Integrate each piece. (5) Differentiate back.

Basics you need

1Table 7.2, row 5

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

2Equal polynomials have equal coefficients

If two polynomials agree for every xx⁠, the coefficients of x2x^2⁠, of xx and the constant terms agree. Basics: splitting fractions

3Logarithm integrals

∫dtt=log⁡∣t∣+C\int\frac{dt}{t} = \log|t| + C⁠, and ∫g′(x)g(x) dx=log⁡∣g(x)∣+C\int\frac{g'(x)}{g(x)}\,dx = \log|g(x)| + C (substitute t=g(x)t = g(x)⁠). Basics: logarithms and 1/x

4The inverse tangent integral

∫dx1+x2=tan⁡−1x+C\int\frac{dx}{1 + x^2} = \tan^{-1}x + C (standard formula (x), Section 7.2). Basics: integration undoes differentiation

Solution

  1. The fraction is proper, and 1+x21 + x^2 cannot be factorised

    The numerator 2 has degree 0 and the denominator (1−x)(1+x2)(1 - x)(1 + x^2) has degree 3, so the fraction is proper. The quadratic 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 no real linear factors.

    A proper fraction can be split directly, with no polynomial part. Because 1+x21 + x^2 cannot be broken into real linear factors, it has to stay as a quadratic factor: this is exactly row 5 of Table 7.2.
  2. Write the form of the decomposition

    2(1−x)(1+x2)=A1−x+Bx+C1+x2(1)\frac{2}{(1 - x)(1 + x^2)} = \frac{A}{1 - x} + \frac{Bx + C}{1 + x^2} \qquad (1)

    with real constants AA⁠, BB⁠, CC still to be found.

    The factor 1−x1 - x equals −(x−1)-(x - 1)⁠, so A1−x\frac{A}{1 - x} is just −Ax−1\frac{-A}{x - 1}⁠: still a constant over a linear factor, as row 5 requires. Keeping 1−x1 - x as printed avoids sign slips. Over the quadratic factor the top must be a general linear expression Bx+CBx + C⁠, not a single constant.
    Table 7.2, row 5. Basics: splitting fractions
  3. Clear the denominators and expand

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

    2=A(1+x2)+(Bx+C)(1−x).2 = A(1 + x^2) + (Bx + C)(1 - x).

    Expand the right side:

    A+Ax2+Bx−Bx2+C−Cx=(A−B)x2+(B−C)x+(A+C).\begin{aligned} &A + Ax^2 + Bx - Bx^2 + C - Cx \\ &= (A - B)x^2 + (B - C)x + (A + C). \end{aligned}
    (1) is an identity (true for every x≠1x \ne 1⁠), so after clearing fractions the two polynomials agree at infinitely many points; two polynomials that agree at infinitely many points are the same polynomial, so the cleared equation holds for every real xx⁠, including x=1x = 1⁠. Grouping by powers of xx prepares the comparison of coefficients.
  4. Find AA⁠, BB⁠, CC

    Compare with the left side 0⋅x2+0⋅x+20\cdot x^2 + 0\cdot x + 2⁠:

    x2:A−B=0,x:B−C=0,constant:A+C=2.\begin{aligned} x^2:&\quad A - B = 0, \\ x:&\quad B - C = 0, \\ \text{constant}:&\quad A + C = 2. \end{aligned}

    The first two give A=B=CA = B = C⁠; then A+A=2A + A = 2⁠, so A=1A = 1⁠. Hence A=B=C=1A = B = C = 1⁠.

    Quick cross-check: put x=1x = 1 in the cleared identity: 2=A(1+1)+02 = A(1 + 1) + 0⁠, so A=1A = 1⁠. ✓

    Equal polynomials have equal coefficients. Substituting the root x=1x = 1 of the linear factor kills the (Bx+C)(1−x)(Bx + C)(1 - x) term and gives AA at once; the cleared identity holds for all xx⁠, including x=1x = 1⁠.
  5. The integrand as three simple pieces

    2(1−x)(1+x2)=11−x+x+11+x2,\frac{2}{(1 - x)(1 + x^2)} = \frac{1}{1 - x} + \frac{x + 1}{1 + x^2},

    and splitting the second fraction,

    x+11+x2=x1+x2+11+x2.\frac{x + 1}{1 + x^2} = \frac{x}{1 + x^2} + \frac{1}{1 + x^2}.
    The piece x1+x2\frac{x}{1 + x^2} is (half) a derivative-over-function, which gives a logarithm; the piece 11+x2\frac{1}{1 + x^2} is the inverse tangent form. They need different formulas, so we separate them.
  6. Integrate 11−x\frac{1}{1 - x}

    Substitute t=1−xt = 1 - x⁠, so dt=−dxdt = -dx⁠:

    ∫dx1−x=−∫dtt=−log⁡∣1−x∣+C1.\int\frac{dx}{1 - x} = -\int\frac{dt}{t} = -\log|1 - x| + C_1.
    The inner function 1−x1 - x has derivative −1-1⁠, which produces the minus sign. Forgetting it is the most common slip in this problem.
    Substitution, Section 7.3.1; standard formula (xii), Section 7.2. Basics: substitution
  7. Integrate x1+x2\frac{x}{1 + x^2} and 11+x2\frac{1}{1 + x^2}

    For the first, substitute t=1+x2t = 1 + x^2⁠, so dt=2x dxdt = 2x\,dx⁠, that is x dx=12 dtx\,dx = \frac12\,dt⁠:

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

    For the second, the standard formula gives

    ∫dx1+x2=tan⁡−1x+C3.\int\frac{dx}{1 + x^2} = \tan^{-1}x + C_3.
    t=1+x2t = 1 + x^2 is always positive, so log⁡∣t∣=log⁡(1+x2)\log|t| = \log(1 + x^2) needs no modulus. The second integral is standard formula (x) of Section 7.2 (or Section 7.4, formula (3) with a=1a = 1⁠).
    Section 7.3.1; standard formulae (xii) and (x), Section 7.2. Basics: logarithms and 1/x
  8. Put the pieces together

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

    Since ∣1−x∣=∣x−1∣|1 - x| = |x - 1|⁠, this is the textbook's form −log⁡∣x−1∣+12log⁡(1+x2)+tan⁡−1x+C-\log|x - 1| + \frac12\log(1 + x^2) + \tan^{-1}x + C⁠.

    The three constants C1,C2,C3C_1, C_2, C_3 combine into one arbitrary constant CC⁠. A number and its negative have the same absolute value, so the two ways of writing the first logarithm are identical.
  9. Check: differentiate the answer

    Chain rule on the first term (inner 1−x1 - x⁠, derivative −1-1⁠) and on the second (inner 1+x21 + x^2⁠, derivative 2x2x⁠):

    ddx(−log⁡∣1−x∣+12log⁡(1+x2)+tan⁡−1x)=11−x+x1+x2+11+x2=(1+x2)+(x+1)(1−x)(1−x)(1+x2)=1+x2+1−x2(1−x)(1+x2)=2(1−x)(1+x2). ✓\begin{aligned} &\frac{d}{dx}\Big(-\log|1 - x| + \tfrac12\log(1 + x^2) + \tan^{-1}x\Big) \\ &= \frac{1}{1 - x} + \frac{x}{1 + x^2} + \frac{1}{1 + x^2} \\ &= \frac{(1 + x^2) + (x + 1)(1 - x)}{(1 - x)(1 + x^2)} \\ &= \frac{1 + x^2 + 1 - x^2}{(1 - x)(1 + x^2)} \\ &= \frac{2}{(1 - x)(1 + x^2)}. \ \checkmark \end{aligned}

    Valid for every x≠1x \ne 1⁠.

    ddx(−log⁡∣1−x∣)=−11−x⋅(−1)=11−x\frac{d}{dx}\big(-\log|1 - x|\big) = -\frac{1}{1 - x}\cdot(-1) = \frac{1}{1 - x}⁠. Over the common denominator, (x+1)(1−x)=1−x2(x + 1)(1 - x) = 1 - x^2⁠, and the x2x^2 terms cancel, leaving the original numerator 2.
    Property (I), Section 7.2.1. Basics: integration undoes differentiation
Result ∫2(1−x)(1+x2) dx=−log⁡∣x−1∣+12log⁡(1+x2)+tan⁡−1x+C,\begin{aligned} &\int\frac{2}{(1 - x)(1 + x^2)}\,dx \\ &= -\log|x - 1| + \tfrac12\log(1 + x^2) \\ &\quad + \tan^{-1}x + C, \end{aligned}

for x≠1x \ne 1⁠. (Textbook answer: −log⁡∣x−1∣+12log⁡(1+x2)+tan⁡−1x+C-\log|x - 1| + \frac12\log(1 + x^2) + \tan^{-1}x + C⁠, the same.)

Check it with numbers

Decomposition at x=2x = 2⁠: 2(1−2)(1+4)=−0.4\frac{2}{(1 - 2)(1 + 4)} = -0.4 and 11−2+2+11+4=−1+0.6=−0.4\frac{1}{1 - 2} + \frac{2 + 1}{1 + 4} = -1 + 0.6 = -0.4⁠. ✓

Definite integral from 2 to 3 (the integrand is continuous there): with FF our answer, F(3)−F(2)F(3) - F(2) =−12log⁡2+tan⁡−13−tan⁡−12= -\frac12\log 2 + \tan^{-1}3 - \tan^{-1}2 ≈−0.2046765\approx -0.2046765⁠. A numerical integration of the integrand over [2,3][2, 3] also gives −0.2046765-0.2046765⁠. ✓ (It is negative because 1−x<01 - x < 0 there.)

Common mistakes
  1. ∫dx1−x=log⁡∣1−x∣\int\frac{dx}{1 - x} = \log|1 - x|⁠. The derivative of 1−x1 - x is −1-1⁠, so the answer is −log⁡∣1−x∣-\log|1 - x|⁠.
  2. Writing B1+x2\frac{B}{1 + x^2} instead of Bx+C1+x2\frac{Bx + C}{1 + x^2}⁠. With a constant alone on top the three equations of Step 4 cannot all be satisfied; an irreducible quadratic needs a linear numerator.
  3. Integrating x+11+x2\frac{x + 1}{1 + x^2} as one piece. It must be split: x1+x2\frac{x}{1 + x^2} gives 12log⁡(1+x2)\frac12\log(1 + x^2)⁠, and 11+x2\frac{1}{1 + x^2} gives tan⁡−1x\tan^{-1}x⁠.
What to take away
  1. Linear factor: constant on top. Irreducible quadratic factor: Bx+CBx + C on top (Table 7.2, row 5).
  2. Over 1+x21 + x^2⁠, split Bx+CBx + C into BxBx (a logarithm) and CC (an inverse tangent).
  3. ∫dxa−x=−log⁡∣a−x∣+C\int\frac{dx}{a - x} = -\log|a - x| + C⁠: watch the minus sign.

Every fact used, and where it comes from

FactUsed inSource
Proper rational functions; irreducible quadratic (negative discriminant)Step 1Section 7.5; quadratic equations (Basics: splitting fractions)
Ax−a+Bx+Cx2+bx+c\frac{A}{x - a} + \frac{Bx + C}{x^2 + bx + c}Step 2Table 7.2, row 5, Section 7.5
Equal polynomials have equal coefficientsSteps 3, 4Algebra; Remark after Example 11
Substitution t=1−xt = 1 - x⁠, t=1+x2t = 1 + x^2Steps 6, 7Section 7.3.1 (Lesson: substitution)
∫dtt=log⁡∣t∣+C\int\frac{dt}{t} = \log|t| + CSteps 6, 7Standard formula (xii), Section 7.2
∫dx1+x2=tan⁡−1x+C\int\frac{dx}{1 + x^2} = \tan^{-1}x + CStep 7Standard formula (x), Section 7.2
Derivative of an antiderivative is the integrandStep 9Property (I), Section 7.2.1
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 →