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

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

Exercise 7.5Integration by partial fractions · Section 7.5
The question

Integrate the rational function

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

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

Let

3x−1(x+2)2=Ax+2+B(x+2)2\frac{3x - 1}{(x + 2)^2} = \frac{A}{x + 2} + \frac{B}{(x + 2)^2} ⇒ 3x−1=A(x+2)+B\Rightarrow\ 3x - 1 = A(x + 2) + B

Comparing coefficients: A=3A = 3 and 2A+B=−12A + B = -1⁠, so B=−7B = -7⁠.

∴ I=3∫dxx+2−7∫dx(x+2)2=3log⁡∣x+2∣−7(−1x+2)+C\begin{aligned} \therefore\ I &= 3\int\frac{dx}{x + 2} - 7\int\frac{dx}{(x + 2)^2} \\ &= 3\log|x + 2| \\ &\quad - 7\left(-\frac{1}{x + 2}\right) + C \end{aligned}

∴ I=3log⁡∣x+2∣+7x+2\therefore\ I = 3\log|x + 2| + \dfrac{7}{x + 2} +C+ C⁠.

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

The one idea this problem is built on

The denominator is a repeated linear factor, (x+2)2(x + 2)^2⁠. Table 7.2 (row 2) splits such a fraction as Ax+2+B(x+2)2\frac{A}{x + 2} + \frac{B}{(x + 2)^2}⁠. The first piece integrates to a logarithm, the second by the power rule to a fraction.

Given, to find, and the plan
Given
The integrand 3x−1(x+2)2\frac{3x - 1}{(x + 2)^2}⁠, defined for x≠−2x \ne -2⁠.
To find
∫3x−1(x+2)2 dx\int\frac{3x - 1}{(x + 2)^2}\,dx⁠.
Plan
(1) Check the fraction is proper. (2) Write Ax+2+B(x+2)2\frac{A}{x + 2} + \frac{B}{(x + 2)^2}⁠. (3) Find AA⁠, BB⁠. (4) Integrate each piece. (5) Differentiate back.

Basics you need

1Table 7.2, row 2

px+q(x−a)2=Ax−a+B(x−a)2\frac{px + q}{(x - a)^2} = \frac{A}{x - a} + \frac{B}{(x - a)^2}⁠. Lesson: partial fractions

2Equal polynomials have equal coefficients

If px+q=rx+spx + q = rx + s for every xx⁠, then p=rp = r and q=sq = s⁠. Basics: splitting fractions

3Power rule with a negative power

∫tn dt=tn+1n+1+C\int t^{n}\,dt = \frac{t^{n + 1}}{n + 1} + C for n≠−1n \ne -1⁠; with n=−2n = -2⁠: ∫dtt2=−1t+C\int\frac{dt}{t^2} = -\frac1t + C⁠. Basics: powers of x

4The logarithm integral

∫dxx+k=log⁡∣x+k∣+C\int\frac{dx}{x + k} = \log|x + k| + C⁠. Basics: logarithms and 1/x

Solution

  1. The fraction is proper with a repeated linear factor

    The numerator 3x−13x - 1 has degree 1; the denominator (x+2)2=x2+4x+4(x + 2)^2 = x^2 + 4x + 4 has degree 2. So the fraction is proper. Its denominator is the single linear factor x+2x + 2 taken twice.

    A proper fraction needs no long division. A squared linear factor is row 2 of Table 7.2 (with a=−2a = -2⁠), not row 1, because there is only one distinct factor.
  2. Write the form of the decomposition

    3x−1(x+2)2=Ax+2+B(x+2)2(1)\frac{3x - 1}{(x + 2)^2} = \frac{A}{x + 2} + \frac{B}{(x + 2)^2} \qquad (1)
    A repeated factor (x+2)2(x + 2)^2 needs a fraction for each power that appears: x+2x + 2 and (x+2)2(x + 2)^2⁠. Writing only A(x+2)2\frac{A}{(x + 2)^2} would force the numerator to be a constant, which 3x−13x - 1 is not.
    Table 7.2, row 2. Basics: splitting fractions
  3. Clear the denominators and find AA⁠, BB

    Multiply (1) by (x+2)2(x + 2)^2⁠:

    3x−1=A(x+2)+B=Ax+(2A+B).3x - 1 = A(x + 2) + B = Ax + (2A + B).

    Compare coefficients:

    x:A=3,constant:2A+B=−1.\begin{aligned} x:&\quad A = 3, \\ \text{constant}:&\quad 2A + B = -1. \end{aligned}

    So B=−1−2(3)=−7B = -1 - 2(3) = -7⁠.

    Cross-check: put x=−2x = -2 in the cleared identity: 3(−2)−1=0+B3(-2) - 1 = 0 + B⁠, so B=−7B = -7⁠. ✓

    (1) holds for every x≠−2x \ne -2⁠, so the two polynomials in the cleared equation agree at infinitely many points and are therefore the same polynomial: the cleared equation holds for every real xx (including x=−2x = -2⁠), and equal polynomials have equal coefficients. Equivalently, 3x−1=3(x+2)−73x - 1 = 3(x + 2) - 7⁠: rewriting the numerator in terms of x+2x + 2 gives the same split at once.
  4. Integrate the two pieces

    3x−1(x+2)2=3x+2−7(x+2)2.\frac{3x - 1}{(x + 2)^2} = \frac{3}{x + 2} - \frac{7}{(x + 2)^2}.

    Substitute t=x+2t = x + 2⁠, dt=dxdt = dx⁠:

    ∫3 dxx+2=3log⁡∣x+2∣+C1,∫7 dx(x+2)2=7∫t−2 dt=−7x+2+C2.\begin{aligned} \int\frac{3\,dx}{x + 2} &= 3\log|x + 2| + C_1, \\ \int\frac{7\,dx}{(x + 2)^2} &= 7\int t^{-2}\,dt \\ &= -\frac{7}{x + 2} + C_2. \end{aligned}

    Subtracting the second from the first:

    ∫3x−1(x+2)2 dx=3log⁡∣x+2∣+7x+2+C.\int\frac{3x - 1}{(x + 2)^2}\,dx = 3\log|x + 2| + \frac{7}{x + 2} + C.
    ∫t−2 dt=t−1−1=−1t\int t^{-2}\,dt = \frac{t^{-1}}{-1} = -\frac1t (power rule with n=−2n = -2⁠, allowed because only n=−1n = -1 is excluded). Subtracting −7x+2-\frac{7}{x + 2} gives +7x+2+\frac{7}{x + 2}⁠. The squared piece gives no logarithm.
    Standard formulae (i) and (xii), Section 7.2; substitution, Section 7.3.1. Basics: powers of x
  5. Check: differentiate the answer

    ddx(3log⁡∣x+2∣+7x+2)=3x+2−7(x+2)2=3(x+2)−7(x+2)2=3x−1(x+2)2. ✓\begin{aligned} &\frac{d}{dx}\Big(3\log|x + 2| + \frac{7}{x + 2}\Big) \\ &= \frac{3}{x + 2} - \frac{7}{(x + 2)^2} \\ &= \frac{3(x + 2) - 7}{(x + 2)^2} = \frac{3x - 1}{(x + 2)^2}. \ \checkmark \end{aligned}

    Valid for every x≠−2x \ne -2⁠.

    ddx(x+2)−1=−(x+2)−2\frac{d}{dx}(x + 2)^{-1} = -(x + 2)^{-2} by the chain rule (inner derivative 1). Over the common denominator, 3(x+2)−7=3x−13(x + 2) - 7 = 3x - 1⁠, the original numerator.
    Property (I), Section 7.2.1. Basics: integration undoes differentiation
Result ∫3x−1(x+2)2 dx=3log⁡∣x+2∣+7x+2+C,\int\frac{3x - 1}{(x + 2)^2}\,dx = 3\log|x + 2| + \frac{7}{x + 2} + C,

for x≠−2x \ne -2⁠. (Textbook answer: 3log⁡∣x+2∣+7x+2+C3\log|x + 2| + \frac{7}{x + 2} + C⁠, the same.)

Check it with numbers

Decomposition at x=0x = 0⁠: −14=−0.25\frac{-1}{4} = -0.25 and 32−74=−0.25\frac32 - \frac74 = -0.25⁠. ✓

Definite integral from 0 to 1 (continuous there): F(1)−F(0)=3log⁡32−76F(1) - F(0) = 3\log\frac32 - \frac76 ≈0.0497287\approx 0.0497287⁠. A numerical integration over [0,1][0, 1] gives 0.04972870.0497287 too. ✓

Common mistakes
  1. Using only Ax+2\frac{A}{x + 2}⁠, or only B(x+2)2\frac{B}{(x + 2)^2}⁠. A repeated factor needs both powers.
  2. ∫dx(x+2)2=log⁡(x+2)2\int\frac{dx}{(x + 2)^2} = \log(x + 2)^2⁠. The logarithm comes only from the first power; (x+2)−2(x + 2)^{-2} follows the power rule.
  3. Sign of the fraction term. −7∫(x+2)−2dx=−7⋅(−(x+2)−1)=+7x+2-7\int(x + 2)^{-2}dx = -7\cdot\big(-(x + 2)^{-1}\big) = +\frac{7}{x + 2}⁠.
What to take away
  1. Repeated linear factor (x−a)2(x - a)^2⁠: use Ax−a+B(x−a)2\frac{A}{x - a} + \frac{B}{(x - a)^2}⁠.
  2. A quick route: rewrite the numerator in powers of x−ax - a (here 3x−1=3(x+2)−73x - 1 = 3(x + 2) - 7⁠).
  3. ∫dx(x−a)2=−1x−a+C\int\frac{dx}{(x - a)^2} = -\frac{1}{x - a} + C⁠.

Every fact used, and where it comes from

FactUsed inSource
Proper rational functionsStep 1Section 7.5 (Lesson: partial fractions)
Ax−a+B(x−a)2\frac{A}{x - a} + \frac{B}{(x - a)^2}Step 2Table 7.2, row 2, Section 7.5
Equal polynomials have equal coefficientsStep 3Algebra; Remark after Example 11
∫tn dt=tn+1n+1+C\int t^n\,dt = \frac{t^{n + 1}}{n + 1} + C⁠, n≠−1n \ne -1Step 4Standard formula (i), Section 7.2
∫dtt=log⁡∣t∣+C\int\frac{dt}{t} = \log|t| + CStep 4Standard formula (xii), Section 7.2
Substitution t=x+2t = x + 2Step 4Section 7.3.1
Derivative of an antiderivative is the integrandStep 5Property (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 →