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

Miscellaneous · Q32: ∫13dxx2(x+1)=23+log⁡23\int_1^3\frac{dx}{x^2(x+1)}=\frac23+\log\frac23

Miscellaneous ExerciseDefinite integrals by partial fractions · Miscellaneous Exercise
The question

Prove that

∫13dxx2(x+1)=23+log⁡23\int_1^3 \frac{dx}{x^2(x+1)} = \frac23 + \log\frac23
Exam answer

Let I=∫13dxx2(x+1)I = \displaystyle\int_1^3 \frac{dx}{x^2(x + 1)}⁠.

Let

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

Putting x=0x = 0⁠: B=1B = 1⁠. Putting x=−1x = -1⁠: C=1C = 1⁠.

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

∴ I=∫13(−1x+1x2+1x+1)dx=[−log⁡x−1x+log⁡(x+1)]13=[log⁡x+1x−1x]13=(log⁡43−13)−(log⁡2−1)=log⁡43−log⁡2+23=log⁡46+23\begin{aligned} \therefore\ I &= \int_1^3\bigg(-\frac1x + \frac{1}{x^2} \\ &\qquad + \frac{1}{x + 1}\bigg)dx \\ &= \Big[-\log x - \frac1x \\ &\qquad + \log(x + 1)\Big]_1^3 \\ &= \left[\log\frac{x + 1}{x} - \frac1x\right]_1^3 \\ &= \left(\log\frac43 - \frac13\right) - \left(\log 2 - 1\right) \\ &= \log\frac43 - \log 2 + \frac23 \\ &= \log\frac46 + \frac23 \end{aligned}

∴ I=23+log⁡23=RHS\therefore\ I = \dfrac23 + \log\dfrac23 = \text{RHS}⁠. Hence proved.

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

The one idea this problem is built on

The integrand is a proper rational function whose denominator has a repeated linear factor x2x^2 and a simple one x+1x + 1⁠. Table 7.2 (form 4) says such a fraction splits as Ax+Bx2+Cx+1\frac{A}{x} + \frac{B}{x^2} + \frac{C}{x+1}⁠. Each of these three pieces is easy to integrate, and evaluating at 1 and 3 produces exactly the 23\frac23 and the log⁡23\log\frac23 of the claim.

Given, to show, and the plan
Given
I=∫13dxx2(x+1)I = \displaystyle\int_1^3 \frac{dx}{x^2(x+1)}⁠.
To show
I=23+log⁡23I = \frac23 + \log\frac23⁠.
Plan
(1) Continuity on [1,3][1, 3]⁠. (2) Set up the partial fractions. (3) Find AA⁠, BB⁠, CC⁠. (4) Integrate each piece. (5) Check by differentiating. (6) Evaluate between 1 and 3 and simplify to the stated form.

Basics you need

1Partial fractions with a repeated factor

Table 7.2, form 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}⁠. Here a=0a = 0⁠, b=−1b = -1⁠. Lesson: partial fractions

2Three standard integrals

∫dxx=log⁡∣x∣+C\int\frac{dx}{x} = \log|x| + C (standard formula (xii), Section 7.2); ∫dxx2=∫x−2dx=−1x+C\int\frac{dx}{x^2} = \int x^{-2}dx = -\frac1x + C (power rule, formula (i)); ∫dxx+1=log⁡∣x+1∣+C\int\frac{dx}{x+1} = \log|x+1| + C⁠. Basics: logarithms and 1/x

3Laws of logarithms

log⁡p−log⁡q=log⁡pq\log p - \log q = \log\frac{p}{q} for p,q>0p, q > 0⁠. Basics: logarithms

4Theorem 2, Section 7.8.3

For ff continuous on [a,b][a, b] with antiderivative FF⁠: ∫abf=F(b)−F(a)\int_a^b f = F(b) - F(a)⁠. Lesson: definite integrals

Solution

  1. The integrand is continuous on [1,3][1, 3]

    The denominator x2(x+1)x^2(x+1) is zero only at x=0x = 0 and x=−1x = -1⁠, both outside [1,3][1, 3]⁠. On [1,3][1, 3] it is at least 1⋅2=21\cdot 2 = 2⁠. So the integrand is continuous on the closed interval.

    Theorem 2 needs continuity on [a,b][a, b]⁠. A rational function is continuous wherever its denominator is not zero.
  2. Set up the partial fractions

    The numerator 1 has degree 0, less than the degree 3 of the denominator, so the fraction is proper. With the repeated factor x2=(x−0)2x^2 = (x - 0)^2 and the simple factor x+1x + 1⁠:

    1x2(x+1)=Ax+Bx2+Cx+1.\frac{1}{x^2(x+1)} = \frac{A}{x} + \frac{B}{x^2} + \frac{C}{x+1} .

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

    1=Ax(x+1)+B(x+1)+Cx2.1 = Ax(x+1) + B(x+1) + Cx^2 .
    A repeated factor x2x^2 needs both Ax\frac{A}{x} and Bx2\frac{B}{x^2}⁠: with only Bx2\frac{B}{x^2} there would not be enough freedom to match every such fraction. Clearing the denominators turns the equation into a polynomial identity, true for every xx (Remark after Example 11, Section 7.5), so we may substitute any convenient values.
    Table 7.2, form 4. Basics: splitting fractions
  3. Find AA⁠, BB⁠, CC

    Put x=0x = 0⁠: 1=B(1)1 = B(1)⁠, so B=1B = 1⁠.

    Put x=−1x = -1⁠: 1=C(−1)21 = C(-1)^2⁠, so C=1C = 1⁠.

    Compare the coefficients of x2x^2⁠: the left side has none, the right side has A+CA + C⁠. So A+C=0A + C = 0 and A=−1A = -1⁠.

    1x2(x+1)=−1x+1x2+1x+1.\frac{1}{x^2(x+1)} = -\frac{1}{x} + \frac{1}{x^2} + \frac{1}{x+1} .
    The values x=0x = 0 and x=−1x = -1 each wipe out all but one term, which gives BB and CC at once. No value of xx isolates AA⁠, so we compare one coefficient instead. Check at x=1x = 1⁠: left side 11⋅2=12\frac{1}{1\cdot 2} = \frac12⁠; right side −1+1+12=12-1 + 1 + \frac12 = \frac12 ✓.
    Two polynomials equal for every xx have equal coefficients. Lesson: partial fractions
  4. Integrate each piece

    ∫dxx2(x+1)=−log⁡∣x∣−1x+log⁡∣x+1∣=log⁡∣x+1x∣−1x+C.\begin{aligned} &\int\frac{dx}{x^2(x+1)} \\ &= -\log|x| - \frac{1}{x} + \log|x+1| \\ &=\log\left|\frac{x+1}{x}\right| - \frac1x + C . \end{aligned}

    Call this F(x)F(x) (without CC⁠). It is valid for x≠0,−1x \ne 0, -1⁠, in particular on [1,3][1, 3]⁠.

    ∫dxx=log⁡∣x∣\int\frac{dx}{x} = \log|x| (formula (xii)); ∫x−2dx=x−1−1=−1x\int x^{-2}dx = \frac{x^{-1}}{-1} = -\frac1x (power rule with n=−2n = -2⁠); ∫dxx+1=log⁡∣x+1∣\int\frac{dx}{x+1} = \log|x+1| (substitute u=x+1u = x + 1⁠, du=dxdu = dx⁠). The two logs combine by the quotient law.
    Standard formulae (i) and (xii), Section 7.2. Basics: logarithms and 1/x
  5. Check: differentiate FF back

    F′(x)=1x+1−1x+1x2=x2−x(x+1)+(x+1)x2(x+1)=x2−x2−x+x+1x2(x+1)=1x2(x+1) ✓\begin{aligned} F'(x) &= \frac{1}{x+1} - \frac1x + \frac{1}{x^2} \\ &= \frac{x^2 - x(x+1) + (x+1)}{x^2(x+1)} \\ &= \frac{x^2 - x^2 - x + x + 1}{x^2(x+1)} \\ &= \frac{1}{x^2(x+1)} \ ✓ \end{aligned}
    Over the common denominator x2(x+1)x^2(x+1) the numerator collapses to 1, which confirms both the partial fractions and the integration. Note ddx(−1x)=+1x2\frac{d}{dx}\left(-\frac1x\right) = +\frac{1}{x^2}⁠.
  6. Evaluate between 1 and 3

    On [1,3][1, 3] both xx and x+1x + 1 are positive, so the bars can be dropped.

    F(3)=log⁡43−13F(3) = \log\frac43 - \frac13⁠, and F(1)=log⁡2−1F(1) = \log 2 - 1⁠.

    I=(log⁡43−13)−(log⁡2−1)=log⁡43−log⁡2+1−13=log⁡46+23=23+log⁡23.\begin{aligned} I &= \left(\log\tfrac43 - \tfrac13\right) - (\log 2 - 1) \\ &= \log\tfrac43 - \log 2 + 1 - \tfrac13 \\ &= \log\tfrac{4}{6} + \tfrac23 = \tfrac23 + \log\tfrac23 . \end{aligned}

    This is the required result. As a decimal, I≈0.666667−0.405465I \approx 0.666667 - 0.405465 =0.261202= 0.261202⁠.

    Theorem 2: upper value minus lower value. The two logarithms combine by log⁡p−log⁡q=log⁡pq\log p - \log q = \log\frac{p}{q} with 4/32=46=23\frac{4/3}{2} = \frac46 = \frac23⁠. Note log⁡23<0\log\frac23 < 0⁠, but the total is positive, as it must be for a positive integrand.
    Theorem 2, Section 7.8.3; laws of logarithms. Basics: logarithms
Result

∫13dxx2(x+1)=23+log⁡23≈0.261202,\begin{aligned} \int_1^3 \frac{dx}{x^2(x+1)} &= \frac23 + \log\frac23 \\ &\approx 0.261202, \end{aligned} as was to be proved.

Check it with numbers

Numerical integration (adaptive quadrature) of 1x2(x+1)\frac{1}{x^2(x+1)} over [1,3][1, 3] gives 0.2612015586, and 23+log⁡23\frac23 + \log\frac23 ≈0.6666666667−0.4054651081\approx 0.6666666667 - 0.4054651081 =0.2612015586= 0.2612015586 ✓.

Size check: the integrand falls from 12\frac12 at x=1x = 1 to 136≈0.028\frac{1}{36} \approx 0.028 at x=3x = 3⁠; an area of about 0.26 over an interval of length 2 is reasonable for such a quickly falling curve.

Common mistakes
  1. Leaving out Ax\frac{A}{x} and using only Bx2+Cx+1\frac{B}{x^2} + \frac{C}{x+1}⁠. Then 1=B(x+1)+Cx21 = B(x+1) + Cx^2 has no solution (the xx-coefficient forces B=0B = 0⁠, the constant term forces B=1B = 1⁠).
  2. Integrating 1x2\frac{1}{x^2} to log⁡x2\log x^2⁠. The log rule is only for 1x\frac1x⁠; 1x2=x−2\frac{1}{x^2} = x^{-2} follows the power rule.
  3. Sign of −1x-\frac1x⁠. ∫x−2dx=−x−1\int x^{-2}dx = -x^{-1}⁠; evaluated, −13−(−1)=+23-\frac13 - (-1) = +\frac23⁠.
What to take away
  1. A repeated factor (x−a)2(x-a)^2 needs two partial fractions, Ax−a\frac{A}{x-a} and B(x−a)2\frac{B}{(x-a)^2}⁠.
  2. Substitute the roots to find the "easy" constants, then compare one coefficient for the last one.

Every fact used, and where it comes from

FactUsed inSource
A definite integral needs ff continuous on [a,b][a, b]Step 1Theorem 2 and Remark (iv), Section 7.8.3
Partial fractions for (x−a)2(x−b)(x-a)^2(x-b)Steps 2, 3Section 7.5, Table 7.2, form 4 (Lesson: partial fractions)
The cleared equation is an identity in xxStep 3Remark after Example 11, Section 7.5
∫dxx=log⁡∣x∣+C\int\frac{dx}{x} = \log|x| + C⁠; ∫xndx=xn+1n+1+C\int x^n dx = \frac{x^{n+1}}{n+1} + CStep 4Standard formulae (xii) and (i), Section 7.2
F(b)−F(a)F(b) - F(a)⁠; log⁡p−log⁡q=log⁡pq\log p - \log q = \log\frac{p}{q}Step 6Theorem 2, Section 7.8.3; laws of logarithms
All decimalsStep 6, CheckRecomputed (mpmath quadrature, 30 digits) in the site's verification script
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 →