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

Example 10: ∫x+22x2+6x+5 dx\int\frac{x + 2}{2x^2 + 6x + 5}\,dx and ∫x+35−4x−x2 dx\int\frac{x + 3}{\sqrt{5 - 4x - x^2}}\,dx

ExamplesIntegrals of some particular functions · Section 7.4
The question

Find the following integrals:

(i) ∫x+22x2+6x+5 dx\displaystyle\int\frac{x + 2}{2x^2 + 6x + 5}\,dx    (ii) ∫x+35−4x−x2 dx\displaystyle\int\frac{x + 3}{\sqrt{5 - 4x - x^2}}\,dx

Exam answer

(i) Let I=∫x+22x2+6x+5 dxI = \displaystyle\int\frac{x + 2}{2x^2 + 6x + 5}\,dx⁠.

Let x+2=A(4x+6)+Bx + 2 = A(4x + 6) + B⁠, where 4x+6=ddx(2x2+6x+5)4x + 6 = \frac{d}{dx}(2x^2 + 6x + 5)⁠.

Comparing coefficients: 4A=14A = 1 and 6A+B=26A + B = 2⁠. So A=14A = \frac14⁠, B=12B = \frac12⁠.

∴ I=14∫(4x+6) dx2x2+6x+5+12∫dx2x2+6x+5=14I1+12I2\begin{aligned} \therefore\ I &= \frac14\int\frac{(4x + 6)\,dx}{2x^2 + 6x + 5} \\ &\quad + \frac12\int\frac{dx}{2x^2 + 6x + 5} \\ &= \frac14 I_1 + \frac12 I_2 \end{aligned}

In I1I_1⁠, put 2x2+6x+5=t2x^2 + 6x + 5 = t⁠. Then (4x+6) dx=dt(4x + 6)\,dx = dt⁠.

I1=∫dtt=log⁡∣t∣=log⁡∣2x2+6x+5∣\begin{aligned} I_1 &= \int\frac{dt}{t} = \log|t| \\ &= \log|2x^2 + 6x + 5| \end{aligned}

For I2I_2⁠, complete the square:

I2=12∫dxx2+3x+52=12∫dx(x+32)2+(12)2\begin{aligned} I_2 &= \frac12\int\frac{dx}{x^2 + 3x + \frac52} \\ &= \frac12\int\frac{dx}{\left(x + \frac32\right)^2 + \left(\frac12\right)^2} \end{aligned}

Put x+32=yx + \frac32 = y⁠. Then dx=dydx = dy⁠.

Using ∫dyy2+a2=1atan⁡−1ya+C\displaystyle\int\frac{dy}{y^2 + a^2} = \frac1a\tan^{-1}\frac ya + C⁠,

I2=12∫dyy2+(12)2=12⋅112tan⁡−1y12=tan⁡−1(2x+3)\begin{aligned} I_2 &= \frac12\int\frac{dy}{y^2 + \left(\frac12\right)^2} \\ &= \frac12\cdot\frac{1}{\frac12}\tan^{-1}\frac{y}{\frac12} \\ &= \tan^{-1}(2x + 3) \end{aligned}

∴ I=14log⁡∣2x2+6x+5∣\therefore\ I = \frac14\log|2x^2 + 6x + 5| +12tan⁡−1(2x+3)+C+ \frac12\tan^{-1}(2x + 3) + C⁠.

(ii) Let I=∫x+35−4x−x2 dxI = \displaystyle\int\frac{x + 3}{\sqrt{5 - 4x - x^2}}\,dx⁠.

Let x+3=A(−4−2x)+Bx + 3 = A(-4 - 2x) + B⁠, where −4−2x=ddx(5−4x−x2)-4 - 2x = \frac{d}{dx}(5 - 4x - x^2)⁠.

Comparing coefficients: −2A=1-2A = 1 and −4A+B=3-4A + B = 3⁠. So A=−12A = -\frac12⁠, B=1B = 1⁠.

∴ I=−12∫(−4−2x) dx5−4x−x2+∫dx5−4x−x2=−12I1+I2\begin{aligned} \therefore\ I &= -\frac12\int\frac{(-4 - 2x)\,dx}{\sqrt{5 - 4x - x^2}} \\ &\quad + \int\frac{dx}{\sqrt{5 - 4x - x^2}} \\ &= -\frac12 I_1 + I_2 \end{aligned}

In I1I_1⁠, put 5−4x−x2=t5 - 4x - x^2 = t⁠. Then (−4−2x) dx=dt(-4 - 2x)\,dx = dt⁠.

I1=∫dtt=2t=25−4x−x2\begin{aligned} I_1 &= \int\frac{dt}{\sqrt t} = 2\sqrt t \\ &= 2\sqrt{5 - 4x - x^2} \end{aligned}

For I2I_2⁠, complete the square:

5−4x−x2=−[(x+2)2−4−5]=32−(x+2)2\begin{aligned} &5 - 4x - x^2 \\ &= -\left[(x + 2)^2 - 4 - 5\right] \\ &= 3^2 - (x + 2)^2 \end{aligned}

Put x+2=yx + 2 = y⁠. Then dx=dydx = dy⁠.

Using ∫dya2−y2=sin⁡−1ya+C\displaystyle\int\frac{dy}{\sqrt{a^2 - y^2}} = \sin^{-1}\frac ya + C⁠,

I2=∫dy32−y2=sin⁡−1y3=sin⁡−1x+23\begin{aligned} I_2 &= \int\frac{dy}{\sqrt{3^2 - y^2}} = \sin^{-1}\frac y3 \\ &= \sin^{-1}\frac{x + 2}{3} \end{aligned}

∴ I=−5−4x−x2\therefore\ I = -\sqrt{5 - 4x - x^2} +sin⁡−1x+23+C+ \sin^{-1}\dfrac{x + 2}{3} + C⁠.

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

The one idea this problem is built on

When the numerator is linear and the denominator is a quadratic QQ (or Q\sqrt Q⁠), split the numerator as A⋅Q′+BA\cdot Q' + B: a multiple of the derivative of the quadratic, plus a constant (Section 7.4, types (9) and (10)). The Q′Q' part is a perfect substitution (t=Qt = Q⁠); the constant part BB leaves ∫dxQ\int\frac{dx}{Q} or ∫dxQ\int\frac{dx}{\sqrt Q}⁠, which Example 9 showed how to do by completing the square.

Given, to find, and the plan
Given
(i) x+22x2+6x+5\frac{x + 2}{2x^2 + 6x + 5}⁠; (ii) x+35−4x−x2\frac{x + 3}{\sqrt{5 - 4x - x^2}}⁠.
To find
Both indefinite integrals, with where they are valid.
Plan
(1) Find AA⁠, BB with numerator =A⋅Q′+B= A\cdot Q' + B⁠. (2) ∫Q′Qdx=log⁡∣Q∣\int\frac{Q'}{Q}dx = \log|Q| or ∫Q′Qdx=2Q\int\frac{Q'}{\sqrt Q}dx = 2\sqrt Q⁠. (3) Complete the square for the BB part. (4) Combine and differentiate back.

Basics you need

1Comparing coefficients

If px+q=A(2ax+b)+Bpx + q = A(2ax + b) + B for all xx⁠, the coefficients of xx and the constant terms on the two sides must be equal. Basics: splitting fractions

2Substitution t=Q(x)t = Q(x)

∫Q′(x)Q(x)dx=log⁡∣Q(x)∣+C\int\frac{Q'(x)}{Q(x)}dx = \log|Q(x)| + C and ∫Q′(x)Q(x)dx=2Q(x)+C\int\frac{Q'(x)}{\sqrt{Q(x)}}dx = 2\sqrt{Q(x)} + C⁠. Basics: substitution

3Completing the square

Turns ∫dxQ\int\frac{dx}{Q} and ∫dxQ\int\frac{dx}{\sqrt Q} into the shapes of Section 7.4 (Example 9). Basics: completing the square

4Formulae 7.4 (3) and (5)

∫dxx2+a2=1atan⁡−1xa+C\int\frac{dx}{x^2 + a^2} = \frac1a\tan^{-1}\frac xa + C⁠; ∫dxa2−x2=sin⁡−1xa+C\int\frac{dx}{\sqrt{a^2 - x^2}} = \sin^{-1}\frac xa + C⁠. Lesson: integrals of particular functions

Part (i): ∫x+22x2+6x+5 dx\int\frac{x + 2}{2x^2 + 6x + 5}\,dx

  1. The domain

    The discriminant of 2x2+6x+52x^2 + 6x + 5 is 62−4⋅2⋅5=−4<06^2 - 4\cdot 2\cdot 5 = -4 < 0⁠, and the leading coefficient is positive, so 2x2+6x+5>02x^2 + 6x + 5 > 0 for every real xx⁠. The integrand is defined everywhere.

    A quadratic with negative discriminant has no real roots, so it never changes sign. This also means the modulus in log⁡∣2x2+6x+5∣\log|2x^2 + 6x + 5| below changes nothing.
  2. Split the numerator as A⋅Q′+BA\cdot Q' + B

    Q=2x2+6x+5Q = 2x^2 + 6x + 5 has Q′=4x+6Q' = 4x + 6⁠. Write

    x+2=A(4x+6)+B.x + 2 = A(4x + 6) + B.

    Coefficients of xx⁠: 4A=14A = 1⁠. Constants: 6A+B=26A + B = 2⁠. So A=14A = \frac14⁠, B=2−64=12B = 2 - \frac64 = \frac12⁠.

    This is formula type 7.4 (9). The identity must hold for every xx⁠, so both the xx-coefficients and the constants must agree. Check: 14(4x+6)+12\frac14(4x + 6) + \frac12 =x+32+12=x+2= x + \frac32 + \frac12 = x + 2⁠.
    Type (9), Section 7.4. Basics: splitting fractions
  3. Split the integral into I1I_1 and I2I_2

    ∫x+22x2+6x+5 dx=14∫4x+62x2+6x+5 dx+12∫dx2x2+6x+5=14I1+12I2.\begin{aligned} \int\frac{x + 2}{2x^2 + 6x + 5}\,dx &= \frac14\int\frac{4x + 6}{2x^2 + 6x + 5}\,dx \\ &\quad + \frac12\int\frac{dx}{2x^2 + 6x + 5} \\ &= \frac14 I_1 + \frac12 I_2. \end{aligned}
    Dividing A(4x+6)+BA(4x + 6) + B by the denominator term by term gives two fractions; Property V then splits the integral.
  4. I1I_1 by substitution

    Put t=2x2+6x+5t = 2x^2 + 6x + 5⁠, dt=(4x+6) dxdt = (4x + 6)\,dx⁠:

    I1=∫dtt=log⁡∣t∣+C1=log⁡∣2x2+6x+5∣+C1.\begin{aligned} I_1 = \int\frac{dt}{t} &= \log|t| + C_1 \\ &= \log|2x^2 + 6x + 5| + C_1. \end{aligned}
    The numerator 4x+64x + 6 is exactly the derivative of the denominator; that is why we arranged it.
    Substitution, Section 7.3.1; formula (xii), Section 7.2. Basics: substitution
  5. I2I_2 by completing the square

    I2=12∫dxx2+3x+52=12∫dx(x+32)2+(12)2.\begin{aligned} I_2 &= \frac12\int\frac{dx}{x^2 + 3x + \frac52} \\ &= \frac12\int\frac{dx}{\left(x + \frac32\right)^2 + \left(\frac12\right)^2}. \end{aligned}

    Put t=x+32t = x + \frac32⁠, dt=dxdt = dx⁠, and use 7.4 (3) with a=12a = \frac12⁠:

    I2=12⋅112tan⁡−1t12+C2=tan⁡−12t+C2=tan⁡−1(2x+3)+C2.\begin{aligned} I_2 &= \frac12\cdot\frac{1}{\frac12}\tan^{-1}\frac{t}{\frac12} + C_2 \\ &= \tan^{-1}2t + C_2 = \tan^{-1}(2x + 3) + C_2. \end{aligned}
    Take out the 2 first. Half of 3 is 32\frac32⁠, and 52−94=14=(12)2\frac52 - \frac94 = \frac14 = \left(\frac12\right)^2⁠, a positive leftover, so the inverse tangent formula applies. Then 2t=2x+32t = 2x + 3⁠.
  6. Combine

    ∫x+22x2+6x+5 dx=14log⁡∣2x2+6x+5∣+12tan⁡−1(2x+3)+C,\begin{aligned} \int\frac{x + 2}{2x^2 + 6x + 5}\,dx &= \frac14\log|2x^2 + 6x + 5| \\ &\quad + \frac12\tan^{-1}(2x + 3) + C, \end{aligned}

    with C=C14+C22C = \frac{C_1}{4} + \frac{C_2}{2}⁠.

    Part (i), Steps 3, 4 and 5 put together; the constants merge into one.
  7. Check: differentiate the answer

    First, 1+(2x+3)21 + (2x + 3)^2 =4x2+12x+10= 4x^2 + 12x + 10 =2(2x2+6x+5)= 2(2x^2 + 6x + 5)⁠. Then

    ddx[14log⁡∣Q∣+12tan⁡−1(2x+3)]=4x+64Q+12⋅22Q=x+32+12Q=x+22x2+6x+5. ✓\begin{aligned} &\frac{d}{dx}\left[\frac14\log|Q| + \frac12\tan^{-1}(2x + 3)\right] \\ &= \frac{4x + 6}{4Q} + \frac12\cdot\frac{2}{2Q} \\ &= \frac{x + \frac32 + \frac12}{Q} = \frac{x + 2}{2x^2 + 6x + 5}. \ \checkmark \end{aligned}
    Here Q=2x2+6x+5Q = 2x^2 + 6x + 5⁠. The derivative of tan⁡−1(2x+3)\tan^{-1}(2x + 3) is 21+(2x+3)2=22Q\frac{2}{1 + (2x + 3)^2} = \frac{2}{2Q}⁠, using the identity just shown. Valid for every real xx⁠.

Part (ii): ∫x+35−4x−x2 dx\int\frac{x + 3}{\sqrt{5 - 4x - x^2}}\,dx

  1. The domain

    5−4x−x2=(5+x)(1−x)5 - 4x - x^2 = (5 + x)(1 - x)⁠, which is positive exactly when −5<x<1-5 < x < 1⁠.

    The quadratic is under a square root in the denominator, so it must be strictly positive. The product (5+x)(1−x)(5 + x)(1 - x) is positive between its roots −5-5 and 1.
  2. Split the numerator as A⋅Q′+BA\cdot Q' + B

    Q=5−4x−x2Q = 5 - 4x - x^2 has Q′=−4−2xQ' = -4 - 2x⁠. Write

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

    Coefficients of xx⁠: −2A=1-2A = 1⁠. Constants: −4A+B=3-4A + B = 3⁠. So A=−12A = -\frac12⁠, B=3+4A=1B = 3 + 4A = 1⁠.

    This is type 7.4 (10). Check: −12(−4−2x)+1-\frac12(-4 - 2x) + 1 =2+x+1=x+3= 2 + x + 1 = x + 3⁠.
    Type (10), Section 7.4. Basics: splitting fractions
  3. Split the integral

    ∫x+3Q dx=−12∫(−4−2x) dx5−4x−x2+∫dx5−4x−x2=−12I1+I2.\begin{aligned} \int\frac{x + 3}{\sqrt Q}\,dx &= -\frac12\int\frac{(-4 - 2x)\,dx}{\sqrt{5 - 4x - x^2}} \\ &\quad + \int\frac{dx}{\sqrt{5 - 4x - x^2}} \\ &= -\frac12 I_1 + I_2. \end{aligned}
    The same idea as part (i): one integral built for substitution, one for completing the square.
  4. I1I_1 by substitution

    Put t=5−4x−x2t = 5 - 4x - x^2 (so t>0t > 0⁠), dt=(−4−2x) dxdt = (-4 - 2x)\,dx⁠:

    I1=∫dtt=∫t−12 dt=2t+C1=25−4x−x2+C1.\begin{aligned} I_1 = \int\frac{dt}{\sqrt t} &= \int t^{-\frac12}\,dt = 2\sqrt t + C_1 \\ &= 2\sqrt{5 - 4x - x^2} + C_1. \end{aligned}
    Power formula with n=−12n = -\frac12⁠: t1/21/2=2t\frac{t^{1/2}}{1/2} = 2\sqrt t⁠.
    Standard formula (i), Section 7.2. Basics: the power rule
  5. I2I_2 by completing the square

    5−4x−x2=−[(x+2)2−4−5]=9−(x+2)2=32−(x+2)2.\begin{aligned} 5 - 4x - x^2 &= -\left[(x + 2)^2 - 4 - 5\right] \\ &= 9 - (x + 2)^2 = 3^2 - (x + 2)^2. \end{aligned}

    Put t=x+2t = x + 2⁠, dt=dxdt = dx⁠, with −3<t<3-3 < t < 3⁠, and use 7.4 (5):

    I2=∫dt32−t2=sin⁡−1t3+C2=sin⁡−1x+23+C2.\begin{aligned} I_2 = \int\frac{dt}{\sqrt{3^2 - t^2}} &= \sin^{-1}\frac t3 + C_2 \\ &= \sin^{-1}\frac{x + 2}{3} + C_2. \end{aligned}
    x2+4x=(x+2)2−4x^2 + 4x = (x + 2)^2 - 4⁠. "Constant minus square" under a root is the sin⁡−1\sin^{-1} shape with a=3a = 3⁠. On the domain −5<x<1-5 < x < 1⁠, t=x+2t = x + 2 runs over (−3,3)(-3, 3)⁠, exactly where the formula holds.
  6. Combine

    ∫x+35−4x−x2 dx=−5−4x−x2+sin⁡−1x+23+C,\begin{aligned} \int\frac{x + 3}{\sqrt{5 - 4x - x^2}}\,dx &= -\sqrt{5 - 4x - x^2} \\ &\quad + \sin^{-1}\frac{x + 2}{3} + C, \end{aligned}

    with C=C2−C12C = C_2 - \frac{C_1}{2}⁠.

    −12⋅2Q=−Q-\frac12\cdot 2\sqrt Q = -\sqrt Q⁠. The constants merge, as in the book.
  7. Check: differentiate the answer

    ddx(−Q)=−−4−2x2Q=x+2Q,ddxsin⁡−1x+23=131−(x+2)29=1Q.\begin{aligned} \frac{d}{dx}\left(-\sqrt Q\right) &= -\frac{-4 - 2x}{2\sqrt Q} = \frac{x + 2}{\sqrt Q}, \\ \frac{d}{dx}\sin^{-1}\frac{x + 2}{3} &= \frac{\frac13}{\sqrt{1 - \frac{(x + 2)^2}{9}}} = \frac{1}{\sqrt Q}. \end{aligned}

    The sum is x+35−4x−x2\frac{x + 3}{\sqrt{5 - 4x - x^2}}⁠. ✓\checkmark

    Here Q=5−4x−x2=9−(x+2)2Q = 5 - 4x - x^2 = 9 - (x + 2)^2⁠. In the second line, multiplying top and bottom by 3 gives 19−(x+2)2\frac{1}{\sqrt{9 - (x + 2)^2}}⁠. Valid for −5<x<1-5 < x < 1⁠.
Result

(i) ∫x+22x2+6x+5 dx\displaystyle\int\frac{x + 2}{2x^2 + 6x + 5}\,dx =14log⁡∣2x2+6x+5∣= \frac14\log|2x^2 + 6x + 5| +12tan⁡−1(2x+3)+C+ \frac12\tan^{-1}(2x + 3) + C⁠, for all real xx⁠.

(ii) ∫x+35−4x−x2 dx\displaystyle\int\frac{x + 3}{\sqrt{5 - 4x - x^2}}\,dx =−5−4x−x2+sin⁡−1x+23+C= -\sqrt{5 - 4x - x^2} + \sin^{-1}\frac{x + 2}{3} + C⁠, for −5<x<1-5 < x < 1⁠.

These agree with the textbook's solution.

Check it with numbers

By Section 7.8, ∫abf(x) dx=F(b)−F(a)\int_a^b f(x)\,dx = F(b) - F(a)⁠. The middle column is a computer's sum of very many thin strips, found without our answers:

PartIntervalSum of thin stripsF(b)−F(a)F(b) - F(a)
(i)[0,1][0, 1]0.30105540.30105540.30105540.3010554
(ii)[−2,0][-2, 0]1.49365971.49365973−5+sin⁡−1233 - \sqrt5 + \sin^{-1}\frac23 ≈1.4936597\approx 1.4936597

In (i), F(1)−F(0)F(1) - F(0) =14log⁡135= \frac14\log\frac{13}{5} +12(tan⁡−15−tan⁡−13)+ \frac12\left(\tan^{-1}5 - \tan^{-1}3\right)⁠.

Common mistakes
  1. Splitting as x+2=A⋅Q+Bx + 2 = A\cdot Q + B instead of A⋅Q′+BA\cdot Q' + B⁠. It must be the derivative Q′Q'⁠, so that the substitution t=Qt = Q works.
  2. Losing the 12\frac12 when taking 2 out of 2x2+6x+52x^2 + 6x + 5 in I2I_2⁠.
  3. ∫dtt=log⁡∣t∣\int\frac{dt}{\sqrt t} = \log|t|: no, it is 2t2\sqrt t⁠; the log is for ∫dtt\int\frac{dt}{t}⁠.
  4. Sign of AA in part (ii). Q′=−4−2xQ' = -4 - 2x has a negative xx-coefficient, so A=−12A = -\frac12⁠.
What to take away
  1. Linear over quadratic (or over the square root of one): numerator =A⋅Q′+B= A\cdot Q' + B⁠.
  2. The Q′Q' part gives log⁡∣Q∣\log|Q| (or 2Q2\sqrt Q⁠); the BB part is a completing-the-square integral.
  3. Always check AA and BB by expanding before integrating.

Every fact used, and where it comes from

FactUsed inSource
px+q=Addx(ax2+bx+c)+Bpx + q = A\frac{d}{dx}(ax^2 + bx + c) + BPart (i), Step 2; Part (ii), Step 2Types (9) and (10), Section 7.4 (Lesson: integrals of particular functions)
∫dtt=log⁡∣t∣+C\int\frac{dt}{t} = \log|t| + C⁠; ∫t−1/2dt=2t+C\int t^{-1/2}dt = 2\sqrt t + CPart (i), Step 4; Part (ii), Step 4Standard formulae (xii), (i), Section 7.2
∫dxx2+a2=1atan⁡−1xa+C\int\frac{dx}{x^2 + a^2} = \frac1a\tan^{-1}\frac xa + CPart (i), Step 5Formula 7.4 (3)
∫dxa2−x2=sin⁡−1xa+C\int\frac{dx}{\sqrt{a^2 - x^2}} = \sin^{-1}\frac xa + CPart (ii), Step 5Formula 7.4 (5)
Completing the square; discriminantPart (i), Steps 1, 5; Part (ii), Step 5Algebra (Basics: completing the square)
SubstitutionPart (i), Step 4; Part (ii), Step 4Section 7.3.1 (Basics: substitution)
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 →