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

Example 13: ∫3x−2(x+1)2(x+3) dx\int\frac{3x-2}{(x+1)^2(x+3)}\,dx

ExamplesPartial fractions · Section 7.5
The question

Find

∫3x−2(x+1)2(x+3) dx\int \frac{3x-2}{(x+1)^2(x+3)}\,dx
Exam answer

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

Let

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

Putting x=−1x = -1⁠: −5=2B-5 = 2B⁠, so B=−52B = -\frac52⁠.

Putting x=−3x = -3⁠: −11=4C-11 = 4C⁠, so C=−114C = -\frac{11}{4}⁠.

Comparing coefficients of x2x^2⁠: A+C=0A + C = 0⁠, so A=114A = \frac{11}{4}⁠.

∴ I=114∫dxx+1−52∫dx(x+1)2−114∫dxx+3=114log⁡∣x+1∣+52(x+1)−114log⁡∣x+3∣+c\begin{aligned} \therefore\ I &= \frac{11}{4}\int\frac{dx}{x + 1} \\ &\quad - \frac52\int\frac{dx}{(x + 1)^2} \\ &\quad - \frac{11}{4}\int\frac{dx}{x + 3} \\ &= \frac{11}{4}\log|x + 1| + \frac{5}{2(x + 1)} \\ &\quad - \frac{11}{4}\log|x + 3| + c \end{aligned}

∴ I=114log⁡∣x+1x+3∣\therefore\ I = \dfrac{11}{4}\log\left|\dfrac{x + 1}{x + 3}\right| +52(x+1)+c+ \dfrac{5}{2(x + 1)} + c⁠.

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

The one idea this problem is built on

The factor (x+1)(x+1) appears twice (it is squared). A repeated factor needs one partial fraction for each power of it: Ax+1\frac{A}{x+1} and B(x+1)2\frac{B}{(x+1)^2}⁠, plus Cx+3\frac{C}{x+3} for the other factor (Table 7.2, row 4). The pieces with a first power integrate to logarithms; the squared piece integrates by the power rule to −1x+1-\frac{1}{x+1}⁠, so the answer is not all logarithms.

Given, to find, and the plan
Given
The integrand 3x−2(x+1)2(x+3)\frac{3x-2}{(x+1)^2(x+3)}⁠, defined for every real xx except −1-1 and −3-3⁠.
To find
Its indefinite integral, and where the answer is valid.
Plan
(1) Check the fraction is proper and write the form from Table 7.2, row 4. (2) Clear denominators. (3) Find AA⁠, BB⁠, CC⁠. (4) Integrate each piece. (5) Combine the logarithms. (6) Differentiate back to check.

Basics you need

1Partial fractions with a repeated factor

Table 7.2, row 4: px2+qx+r(x−a)2(x−b)\frac{px^2+qx+r}{(x-a)^2(x-b)} is written as Ax−a+B(x−a)2+Cx−b\frac{A}{x-a} + \frac{B}{(x-a)^2} + \frac{C}{x-b}⁠. Basics: splitting fractions

2The logarithm integral

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

3The power rule with a shift

Formula (i): ∫tn dt=tn+1n+1+C\int t^n\,dt = \frac{t^{n+1}}{n+1} + C for n≠−1n \ne -1⁠. With t=x+1t = x + 1 and n=−2n = -2⁠: ∫dx(x+1)2=−1x+1+C\int \frac{dx}{(x+1)^2} = -\frac{1}{x+1} + C⁠. Basics: powers of x

4Log laws

log⁡∣u∣−log⁡∣v∣=log⁡∣uv∣\log|u| - \log|v| = \log\left|\frac{u}{v}\right|⁠. Basics: logarithms and 1/x

Solution

  1. Choose the form of the partial fractions

    The top 3x−23x - 2 has degree 1 and the bottom (x+1)2(x+3)(x+1)^2(x+3) has degree 3, so the fraction is proper and no division is needed. The bottom has the repeated linear factor (x+1)2(x+1)^2 and the single factor (x+3)(x+3)⁠. By Table 7.2, row 4,

    3x−2(x+1)2(x+3)=Ax+1+B(x+1)2+Cx+3.\frac{3x-2}{(x+1)^2(x+3)} = \frac{A}{x+1} + \frac{B}{(x+1)^2} + \frac{C}{x+3}.
    With only A(x+1)2+Cx+3\frac{A}{(x+1)^2} + \frac{C}{x+3} the combined top would be A(x+3)+C(x+1)2A(x+3) + C(x+1)^2⁠, and there are not enough free constants to match every top of degree up to 2. Each power of a repeated factor gets its own fraction: three unknowns for a cubic bottom.
    Row 4 of Table 7.2 is written for (x−a)2(x−b)(x-a)^2(x-b)⁠; here a=−1a = -1 and b=−3b = -3⁠. Lesson: partial fractions
  2. Clear the denominators

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

    3x−2=A(x+1)(x+3)+B(x+3)+C(x+1)2.3x - 2 = A(x+1)(x+3) + B(x+3) + C(x+1)^2.

    Expanding the brackets,

    3x−2=A(x2+4x+3)+B(x+3)+C(x2+2x+1).\begin{aligned} 3x - 2 &= A(x^2 + 4x + 3) + B(x+3) \\ &\quad + C(x^2 + 2x + 1). \end{aligned}
    The term Ax+1\frac{A}{x+1} needs the missing factors (x+1)(x+3)(x+1)(x+3)⁠; B(x+1)2\frac{B}{(x+1)^2} needs only (x+3)(x+3)⁠; Cx+3\frac{C}{x+3} needs (x+1)2(x+1)^2⁠. This identity must hold for every xx⁠.
    (x+1)(x+3)=x2+4x+3(x+1)(x+3) = x^2 + 4x + 3 and (x+1)2=x2+2x+1(x+1)^2 = x^2 + 2x + 1⁠. Basics: splitting fractions
  3. Find AA⁠, BB and CC

    Comparing the coefficients of x2x^2⁠, xx and the constant terms (the left side has 0x20x^2⁠):

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

    Faster: put x=−1x = -1 in the identity of Step 2. Only the BB term survives: −3−2=B⋅2-3 - 2 = B\cdot 2⁠, so B=−52B = -\frac52⁠. Put x=−3x = -3⁠: only the CC term survives: −9−2=C⋅4-9 - 2 = C\cdot 4⁠, so C=−114C = -\frac{11}{4}⁠. Then A+C=0A + C = 0 gives A=114A = \frac{11}{4}⁠.

    The remaining equations agree: 4⋅114−52−112=11−8=34\cdot\frac{11}{4} - \frac52 - \frac{11}{2} = 11 - 8 = 3⁠, and 334−152−114=33−30−114=−2\frac{33}{4} - \frac{15}{2} - \frac{11}{4} = \frac{33 - 30 - 11}{4} = -2⁠. So

    A=114,B=−52,C=−114,A = \frac{11}{4}, \quad B = -\frac{5}{2}, \quad C = -\frac{11}{4}, 3x−2(x+1)2(x+3)=114(x+1)−52(x+1)2−114(x+3).\begin{aligned} &\frac{3x-2}{(x+1)^2(x+3)} \\ &= \frac{11}{4(x+1)} - \frac{5}{2(x+1)^2} - \frac{11}{4(x+3)}. \end{aligned}
    The two roots give BB and CC at once; the repeated root cannot give AA by itself (every AA term vanishes at both roots), so we take AA from the x2x^2 coefficient. Checking the other two equations confirms all three values together, which is the book's result.
    Substituting x=−1x = -1 or x=−3x = -3 is valid: both sides of the cleared identity are polynomials that agree for every other xx⁠, hence they are the same polynomial and agree at −1-1 and −3-3 too. Lesson: partial fractions
  4. Integrate each piece

    ∫3x−2(x+1)2(x+3) dx=114∫dxx+1−52∫dx(x+1)2−114∫dxx+3.\begin{aligned} \int \frac{3x-2}{(x+1)^2(x+3)}\,dx &= \frac{11}{4}\int\frac{dx}{x+1} - \frac52\int\frac{dx}{(x+1)^2} \\ &\quad - \frac{11}{4}\int\frac{dx}{x+3}. \end{aligned}

    The first and last are logarithms: log⁡∣x+1∣\log|x+1| and log⁡∣x+3∣\log|x+3|⁠. For the middle one put t=x+1t = x + 1⁠, dt=dxdt = dx⁠:

    ∫dx(x+1)2=∫t−2 dt=t−1−1=−1x+1.\int \frac{dx}{(x+1)^2} = \int t^{-2}\,dt = \frac{t^{-1}}{-1} = -\frac{1}{x+1}.

    So, with −52⋅(−1x+1)=+52(x+1)-\frac52 \cdot \left(-\frac{1}{x+1}\right) = +\frac{5}{2(x+1)}⁠,

    ∫3x−2(x+1)2(x+3) dx=114log⁡∣x+1∣+52(x+1)−114log⁡∣x+3∣+C.\begin{aligned} \int \frac{3x-2}{(x+1)^2(x+3)}\,dx &= \frac{11}{4}\log|x+1| + \frac{5}{2(x+1)} \\ &\quad - \frac{11}{4}\log|x+3| + C. \end{aligned}
    The squared piece is not a logarithm: 1(x+1)2\frac{1}{(x+1)^2} is the power (x+1)−2(x+1)^{-2}⁠, and the power rule applies because n=−2≠−1n = -2 \ne -1⁠. The two minus signs multiply to a plus, a common place for a slip.
    Formula (i), power rule, and formula (xii), with the linear substitution t=x+at = x + a⁠. Basics: powers of x
  5. Combine the logarithms

    Using log⁡∣u∣−log⁡∣v∣=log⁡∣uv∣\log|u| - \log|v| = \log\left|\frac uv\right|⁠:

    ∫3x−2(x+1)2(x+3) dx=114log⁡∣x+1x+3∣+52(x+1)+C.\begin{aligned} &\int \frac{3x-2}{(x+1)^2(x+3)}\,dx \\ &= \frac{11}{4}\log\left|\frac{x+1}{x+3}\right| + \frac{5}{2(x+1)} + C. \end{aligned}
    Both log terms carry the same coefficient 114\frac{11}{4}⁠, so they combine into one log of a quotient. This is the form the book gives.
    Quotient law of logarithms. Basics: logarithms and 1/x
  6. Check: differentiate the answer

    ddx[114log⁡∣x+1∣+52(x+1)−114log⁡∣x+3∣]=114(x+1)−52(x+1)2−114(x+3).\begin{aligned} &\frac{d}{dx}\left[\frac{11}{4}\log|x+1| + \frac{5}{2(x+1)} - \frac{11}{4}\log|x+3|\right] \\ &= \frac{11}{4(x+1)} - \frac{5}{2(x+1)^2} - \frac{11}{4(x+3)}. \end{aligned}

    Over the common denominator 4(x+1)2(x+3)4(x+1)^2(x+3) the top is

    11(x+1)(x+3)−10(x+3)−11(x+1)2=11x2+44x+33−10x−30−11x2−22x−11=12x−8=4(3x−2).\begin{aligned} &11(x+1)(x+3) - 10(x+3) - 11(x+1)^2 \\ &= 11x^2 + 44x + 33 - 10x - 30 \\ &\quad - 11x^2 - 22x - 11 \\ &= 12x - 8 = 4(3x - 2). \end{aligned}

    Dividing by 4(x+1)2(x+3)4(x+1)^2(x+3) gives 3x−2(x+1)2(x+3)\frac{3x-2}{(x+1)^2(x+3)}⁠, the integrand.

    The x2x^2 terms cancel and the factor 4 cancels, leaving exactly the original integrand, so the antiderivative is right.
    ddx1x+1=−1(x+1)2\frac{d}{dx}\frac{1}{x+1} = -\frac{1}{(x+1)^2} and ddxlog⁡∣u∣=1u\frac{d}{dx}\log|u| = \frac1u⁠. Basics: integration undoes differentiation
Result ∫3x−2(x+1)2(x+3) dx=114log⁡∣x+1x+3∣+52(x+1)+C,\begin{aligned} &\int \frac{3x-2}{(x+1)^2(x+3)}\,dx \\ &= \frac{11}{4}\log\left|\frac{x+1}{x+3}\right| + \frac{5}{2(x+1)} + C, \end{aligned}

valid for x≠−1,−3x \ne -1, -3 (on each of the intervals (−∞,−3)(-\infty,-3)⁠, (−3,−1)(-3,-1)⁠, (−1,∞)(-1,\infty)⁠). This is the book's answer.

Check it with numbers

At a point. At x=0x = 0⁠: the integrand is −21⋅3=−23\frac{-2}{1\cdot 3} = -\frac23⁠; the derivative of our answer is 114−52−1112=−23\frac{11}{4} - \frac52 - \frac{11}{12} = -\frac{2}{3} too.

Over an interval. On [0,1][0, 1] our answer gives

F(1)−F(0)=114log⁡32−54=−0.1349709527…F(1) - F(0) = \frac{11}{4}\log\frac32 - \frac54 = -0.1349709527\ldots

A numerical integration of the integrand over [0,1][0, 1] gives −0.1349709527…-0.1349709527\ldots⁠, the same. (It is negative because 3x−2<03x - 2 < 0 on most of [0,1][0, 1]⁠.)

Common mistakes
  1. Only one fraction for the repeated factor. (x+1)2(x+1)^2 needs both Ax+1\frac{A}{x+1} and B(x+1)2\frac{B}{(x+1)^2}⁠.
  2. Integrating 1(x+1)2\frac{1}{(x+1)^2} as a logarithm. It is a power: ∫(x+1)−2dx=−(x+1)−1\int (x+1)^{-2}dx = -(x+1)^{-1}⁠.
  3. Sign of the middle term. −52×(−1x+1)=+52(x+1)-\frac52 \times \left(-\frac{1}{x+1}\right) = +\frac{5}{2(x+1)}⁠.
  4. Trying to get AA by substituting a root. Neither root isolates AA⁠; use a coefficient (or any third value of xx⁠).
What to take away
  1. A factor (x−a)2(x-a)^2 contributes Ax−a+B(x−a)2\frac{A}{x-a} + \frac{B}{(x-a)^2}⁠.
  2. Roots give the constants of the highest powers quickly; the rest come from comparing a coefficient.
  3. ∫dx(x−a)2=−1x−a+C\int \frac{dx}{(x-a)^2} = -\frac{1}{x-a} + C⁠: repeated factors leave a rational term in the answer.

Every fact used, and where it comes from

FactUsed inSource
Proper rational functionStep 1Section 7.5 (Lesson: partial fractions)
Form Ax−a+B(x−a)2+Cx−b\frac{A}{x-a} + \frac{B}{(x-a)^2} + \frac{C}{x-b}Steps 1–3Table 7.2, row 4, Section 7.5
Equal polynomials have equal coefficientsStep 3Algebra (Class XI)
Property V (term by term)Step 4Section 7.2.1
Power rule; ∫1x dx=log⁡∣x∣+C\int\frac1x\,dx = \log|x| + CStep 4Standard formulae (i) and (xii), Section 7.2
Linear substitution t=x+at = x + aStep 4Section 7.3.1 (Lesson: substitution)
log⁡∣u∣−log⁡∣v∣=log⁡∣u/v∣\log|u| - \log|v| = \log|u/v|Step 5Laws of logarithms
Derivatives of log⁡∣u∣\log|u| and 1u\frac1uStep 6Section 7.2; Chapter 5
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 →