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

Exercise 7.4 · Q23: ∫5x+3x2+4x+10 dx\int\frac{5x + 3}{\sqrt{x^2 + 4x + 10}}\,dx

Exercise 7.4Integrals of some particular functions · Section 7.4
The question

Integrate the function

5x+3x2+4x+10.\frac{5x + 3}{\sqrt{x^2 + 4x + 10}}.
Exam answer

Let I=∫5x+3x2+4x+10 dxI = \displaystyle\int\frac{5x + 3}{\sqrt{x^2 + 4x + 10}}\,dx⁠.

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

Comparing coefficients: 2A=52A = 5 and 4A+B=34A + B = 3⁠. So A=52A = \frac52⁠, B=−7B = -7⁠.

∴ I=52∫(2x+4) dxx2+4x+10−7∫dxx2+4x+10=52I1−7I2\begin{aligned} \therefore\ I &= \frac52\int\frac{(2x + 4)\,dx}{\sqrt{x^2 + 4x + 10}} \\ &\quad - 7\int\frac{dx}{\sqrt{x^2 + 4x + 10}} \\ &= \frac52 I_1 - 7I_2 \end{aligned}

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

I1=∫dtt=2t=2x2+4x+10\begin{aligned} I_1 &= \int\frac{dt}{\sqrt t} = 2\sqrt t \\ &= 2\sqrt{x^2 + 4x + 10} \end{aligned}

For I2I_2⁠: x2+4x+10=(x+2)2+(6)2x^2 + 4x + 10 = (x + 2)^2 + \left(\sqrt6\right)^2⁠.

[Using ∫dxx2+a2\displaystyle\int\frac{dx}{\sqrt{x^2 + a^2}} =log⁡∣x+x2+a2∣+C= \log\left|x + \sqrt{x^2 + a^2}\right| + C]

I2=∫dx(x+2)2+(6)2=log⁡∣x+2+x2+4x+10∣\begin{aligned} I_2 &= \int\frac{dx}{\sqrt{(x + 2)^2 + \left(\sqrt6\right)^2}} \\ &= \log\left|x + 2 + \sqrt{x^2 + 4x + 10}\right| \end{aligned}

∴ I=5x2+4x+10\therefore\ I = 5\sqrt{x^2 + 4x + 10} −7log⁡∣x+2+x2+4x+10∣- 7\log\left|x + 2 + \sqrt{x^2 + 4x + 10}\right| +C+ C⁠.

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

The one idea this problem is built on

Type 7.4 (10): split the numerator as A⋅Q′+BA\cdot Q' + B with Q=x2+4x+10Q = x^2 + 4x + 10⁠, Q′=2x+4Q' = 2x + 4⁠. This gives 5x+3=52(2x+4)−75x + 3 = \frac52(2x + 4) - 7⁠. The Q′Q' part becomes 5Q5\sqrt Q by substitution. For the constant part, completing the square gives Q=(x+2)2+(6)2Q = (x + 2)^2 + \left(\sqrt6\right)^2⁠, "square plus square" under a root, so formula 7.4 (6) gives a log.

Given, to find, and the plan
Given
The integrand 5x+3x2+4x+10\frac{5x + 3}{\sqrt{x^2 + 4x + 10}}⁠.
To find
∫5x+3x2+4x+10 dx\int\frac{5x + 3}{\sqrt{x^2 + 4x + 10}}\,dx⁠, and where the answer is valid.
Plan
(1) Find the domain. (2) Find AA⁠, BB with 5x+3=A(2x+4)+B5x + 3 = A(2x + 4) + B⁠. (3) Split into I1I_1 and I2I_2⁠. (4) I1I_1 by substitution. (5) I2I_2 by completing the square and 7.4 (6). (6) Combine. (7) 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 constants on the two sides are equal. Basics: splitting fractions

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

∫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

x2+4x+10=(x+2)2+6x^2 + 4x + 10 = (x + 2)^2 + 6⁠. Basics: completing the square

4Formula 7.4 (6)

∫dxx2+a2=log⁡∣x+x2+a2∣+C\int\frac{dx}{\sqrt{x^2 + a^2}} = \log\left|x + \sqrt{x^2 + a^2}\right| + C⁠. Lesson: integrals of particular functions

Solution

  1. The domain

    x2+4x+10=(x+2)2+6≥6>0x^2 + 4x + 10 = (x + 2)^2 + 6 \ge 6 > 0 for every real xx⁠, so the integrand is defined everywhere.

    A square is never negative, so adding 6 keeps the quadratic at least 6. (Equivalently, its discriminant 16−40=−2416 - 40 = -24 is negative.)
  2. Split the numerator as A⋅Q′+BA\cdot Q' + B

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

    5x+3=A(2x+4)+B.5x + 3 = A(2x + 4) + B.

    Coefficients of xx⁠: 2A=52A = 5⁠. Constants: 4A+B=34A + B = 3⁠. So A=52A = \frac52⁠, B=3−10=−7B = 3 - 10 = -7⁠.

    This is type 7.4 (10). Check: 52(2x+4)−7=5x+10−7=5x+3\frac52(2x + 4) - 7 = 5x + 10 - 7 = 5x + 3⁠.
  3. Split the integral into I1I_1 and I2I_2

    ∫5x+3Q dx=52∫(2x+4) dxx2+4x+10−7∫dxx2+4x+10=52I1−7I2.\begin{aligned} \int\frac{5x + 3}{\sqrt Q}\,dx &= \frac52\int\frac{(2x + 4)\,dx}{\sqrt{x^2 + 4x + 10}} \\ &\quad - 7\int\frac{dx}{\sqrt{x^2 + 4x + 10}} \\ &= \frac52 I_1 - 7I_2. \end{aligned}
    Dividing 52(2x+4)−7\frac52(2x + 4) - 7 by Q\sqrt Q term by term gives two fractions; Property (V) of Section 7.2.1 splits the integral.
    Property (V), Section 7.2.1. Lesson: integrals of particular functions
  4. I1I_1 by substitution

    Put t=x2+4x+10t = x^2 + 4x + 10 (so t>0t > 0⁠), dt=(2x+4) dxdt = (2x + 4)\,dx⁠:

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

    x2+4x+10=(x+2)2+(6)2x^2 + 4x + 10 = (x + 2)^2 + \left(\sqrt6\right)^2⁠. Put t=x+2t = x + 2⁠, dt=dxdt = dx⁠, and use 7.4 (6) with a=6a = \sqrt6⁠:

    I2=∫dtt2+(6)2=log⁡∣t+t2+6∣+C2=log⁡∣x+2+x2+4x+10∣+C2.\begin{aligned} I_2 &= \int\frac{dt}{\sqrt{t^2 + \left(\sqrt6\right)^2}} = \log\left|t + \sqrt{t^2 + 6}\right| + C_2 \\ &= \log\left|x + 2 + \sqrt{x^2 + 4x + 10}\right| + C_2. \end{aligned}
    Half of 4 is 2, and 10−4=610 - 4 = 6⁠, a positive leftover, so this is "square plus square": formula 7.4 (6). Here t+t2+6>0t + \sqrt{t^2 + 6} > 0 for every tt (the root is bigger than ∣t∣|t|⁠), so the modulus changes nothing.
    Type 7.4 (8); formula 7.4 (6). Basics: completing the square
  6. Combine

    ∫5x+3x2+4x+10 dx=5x2+4x+10−7log⁡∣x+2+x2+4x+10∣+C,\begin{aligned} \int\frac{5x + 3}{\sqrt{x^2 + 4x + 10}}\,dx &= 5\sqrt{x^2 + 4x + 10} \\ &\quad - 7\log\left|x + 2 + \sqrt{x^2 + 4x + 10}\right| \\ &\quad + C, \end{aligned}

    with C=52C1−7C2C = \frac52 C_1 - 7C_2⁠.

    52⋅2Q=5Q\frac52\cdot 2\sqrt Q = 5\sqrt Q⁠. The constants merge into one. This is exactly the textbook's form.
  7. Check: differentiate the answer

    Write s=x2+4x+10s = \sqrt{x^2 + 4x + 10}⁠, so s′=2x+42s=x+2ss' = \frac{2x + 4}{2s} = \frac{x + 2}{s}⁠. Then

    ddxlog⁡∣x+2+s∣=1+x+2sx+2+s=1s,ddx(5s)=5(x+2)s.\begin{aligned} \frac{d}{dx}\log|x + 2 + s| &= \frac{1 + \frac{x + 2}{s}}{x + 2 + s} = \frac1s, \\ \frac{d}{dx}\left(5s\right) &= \frac{5(x + 2)}{s}. \end{aligned}

    So the derivative of our answer is 5(x+2)s−7s=5x+3s\frac{5(x + 2)}{s} - \frac7s = \frac{5x + 3}{s}⁠. ✓\checkmark

    In the first line, 1+x+2s=s+x+2s1 + \frac{x + 2}{s} = \frac{s + x + 2}{s}⁠, and the factor x+2+sx + 2 + s (never 0) cancels. The result is the integrand, for every real xx⁠.
    Chain rule (Theorem 4, Section 5.3.1); derivative (xii), Section 7.2. Basics: logarithms and 1/x
Result ∫5x+3x2+4x+10 dx=5x2+4x+10−7log⁡∣x+2+x2+4x+10∣+C,\begin{aligned} \int\frac{5x + 3}{\sqrt{x^2 + 4x + 10}}\,dx &= 5\sqrt{x^2 + 4x + 10} \\ &\quad - 7\log\left|x + 2 + \sqrt{x^2 + 4x + 10}\right| \\ &\quad + C, \end{aligned}

valid for every real xx⁠. (Textbook answer: 5x2+4x+105\sqrt{x^2 + 4x + 10} −7log⁡∣x+2+x2+4x+10∣+C- 7\log\left|x + 2 + \sqrt{x^2 + 4x + 10}\right| + C⁠, the same.)

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) for our answer FF⁠. The middle column is a computer's sum of very many thin strips, found without our answer:

IntervalSum of thin stripsF(b)−F(a)F(b) - F(a)
[0,1][0, 1]1.54998581.54998581.54998581.5499858
[−3,−1][-3, -1]−5.5675582-5.5675582−5.5675582-5.5675582

On [0,1][0, 1]⁠, F(1)−F(0)=5(15−10)F(1) - F(0) = 5\left(\sqrt{15} - \sqrt{10}\right) −7log⁡3+152+10- 7\log\frac{3 + \sqrt{15}}{2 + \sqrt{10}}⁠.

Common mistakes
  1. Wrong BB⁠. B=3−4A=3−10=−7B = 3 - 4A = 3 - 10 = -7⁠; forgetting the 4A4A gives B=3B = 3⁠.
  2. Forgetting that 52⋅2=5\frac52\cdot 2 = 5⁠. The Q\sqrt Q term has coefficient 5, not 52\frac52⁠.
  3. Writing log⁡∣x+x2+4x+10∣\log\left|x + \sqrt{x^2 + 4x + 10}\right|⁠. Undo the shift t=x+2t = x + 2 fully: the log contains x+2x + 2⁠.
What to take away
  1. Numerator =A⋅Q′+B= A\cdot Q' + B⁠; the Q′Q' part gives 2AQ2A\sqrt Q⁠, the BB part a completing-the-square integral.
  2. A positive leftover under a root (with +x2+x^2⁠) means formula 7.4 (6), valid for every xx⁠.

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) + BStep 2Type 7.4 (10) (Lesson: integrals of particular functions)
Integral of a sum of constant multiplesStep 3Property (V), Section 7.2.1
∫t−1/2 dt=2t+C\int t^{-1/2}\,dt = 2\sqrt t + CStep 4Standard formula (i), Section 7.2
SubstitutionSteps 4, 5Section 7.3.1 (Basics: substitution)
Completing the squareSteps 1, 5Type 7.4 (8) (Basics: completing the square)
∫dxx2+a2=log⁡∣x+x2+a2∣+C\int\frac{dx}{\sqrt{x^2 + a^2}} = \log\left|x + \sqrt{x^2 + a^2}\right| + CStep 5Formula 7.4 (6)
ddxlog⁡∣x∣=1x\frac{d}{dx}\log|x| = \frac1x⁠; chain ruleStep 7Derivative (xii), Section 7.2; Theorem 4, Section 5.3.1
∫abf(x) dx=F(b)−F(a)\int_a^b f(x)\,dx = F(b) - F(a)Numerical checkSection 7.8 (Lesson: definite integrals)
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 →