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

Exercise 7.9 · Q7: ∫−11dxx2+2x+5\int_{-1}^1\frac{dx}{x^2+2x+5}

Exercise 7.9Definite integrals by substitution · Section 7.9
The question

Evaluate the integral using substitution:

∫−11dxx2+2x+5.\int_{-1}^{1} \frac{dx}{x^2 + 2x + 5}.
Exam answer Let I=∫−11dxx2+2x+5=∫−11dx(x+1)2+22\begin{aligned} \text{Let } I &= \int_{-1}^{1}\frac{dx}{x^2 + 2x + 5} \\ &= \int_{-1}^{1}\frac{dx}{(x + 1)^2 + 2^2} \end{aligned}

Put x+1=tx + 1 = t⁠. Then dx=dtdx = dt⁠.

When x=−1x = -1⁠, t=0t = 0⁠; when x=1x = 1⁠, t=2t = 2⁠.

∴ I=∫02dtt2+22=12[tan⁡−1t2]02=12(tan⁡−11−tan⁡−10)\begin{aligned} \therefore\ I &= \int_0^2\frac{dt}{t^2 + 2^2} = \frac12\Big[\tan^{-1}\frac{t}{2}\Big]_0^2 \\ &= \frac12\left(\tan^{-1}1 - \tan^{-1}0\right) \end{aligned}

∴ I=π8\therefore\ I = \dfrac{\pi}{8}⁠.

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

The one idea this problem is built on

Completing the square gives x2+2x+5=(x+1)2+22x^2 + 2x + 5 = (x + 1)^2 + 2^2⁠, "a square plus a square". The shift t=x+1t = x + 1 moves the limits to 0 and 2 and leaves ∫dtt2+22\int\frac{dt}{t^2 + 2^2}⁠, the inverse tangent formula.

Given, to find, and the plan
Given
The integrand 1x2+2x+5\frac{1}{x^2 + 2x + 5} on [−1,1][-1, 1]⁠.
To find
The exact value of the integral, and a decimal.
Plan
(1) Complete the square; check the denominator is never 0. (2) Substitute t=x+1t = x + 1 and change the limits. (3) Use ∫dtt2+a2=1atan⁡−1ta\int\frac{dt}{t^2 + a^2} = \frac{1}{a}\tan^{-1}\frac{t}{a}⁠. (4) Check with an antiderivative in xx⁠, and numerically.

Basics you need

1Completing the square

x2+2x=(x+1)2−1x^2 + 2x = (x + 1)^2 - 1⁠. Basics: completing the square

2The formula for 1t2+a2\frac{1}{t^2 + a^2}

∫dtt2+a2=1atan⁡−1ta+C\int\frac{dt}{t^2 + a^2} = \frac{1}{a}\tan^{-1}\frac{t}{a} + C (Section 7.4, formula (3)). Lesson: integrals of particular functions

3Substitution with new limits

∫abf(g(x)) g′(x) dx=∫g(a)g(b)f(t) dt\int_a^b f(g(x))\,g'(x)\,dx = \int_{g(a)}^{g(b)} f(t)\,dt (Section 7.9). Lesson: integration by substitution

4Principal value

tan⁡−11=π4\tan^{-1}1 = \frac{\pi}{4} and tan⁡−10=0\tan^{-1}0 = 0 (Chapter 2). Basics: trigonometry

Solution

  1. Complete the square and check the denominator

    x2+2x+5=(x2+2x+1)+4=(x+1)2+22.x^2 + 2x + 5 = (x^2 + 2x + 1) + 4 = (x + 1)^2 + 2^2.

    A square is ≥0\ge 0⁠, so the denominator is at least 4 for every real xx⁠. The integrand is therefore continuous on [−1,1][-1, 1]⁠.

    Half the coefficient of xx is 1 and its square is 1; we borrow 1 from the 5. The form "square plus positive constant" shows at once that the denominator never vanishes and that the arctangent formula fits.
    (x+1)2=x2+2x+1(x + 1)^2 = x^2 + 2x + 1⁠. Basics: completing the square
  2. Substitute t=x+1t = x + 1 and change the limits

    Then dt=dxdt = dx⁠.

    New limits. When x=−1x = -1⁠, t=0t = 0⁠. When x=1x = 1⁠, t=2t = 2⁠.

    ∫−11dx(x+1)2+22=∫02dtt2+22.\int_{-1}^{1}\frac{dx}{(x + 1)^2 + 2^2} = \int_0^2\frac{dt}{t^2 + 2^2}.

    Why it is valid on the whole interval. t=x+1t = x + 1 is a shift with derivative 1: it is increasing and carries [−1,1][-1, 1] onto [0,2][0, 2]⁠. The new integrand 1t2+4\frac{1}{t^2 + 4} is continuous everywhere.

    The denominator depends on xx only through x+1x + 1⁠, so naming it tt produces exactly the shape t2+a2t^2 + a^2 with a=2a = 2⁠.
    A shift does not change dxdx⁠: ddx(x+1)=1\frac{d}{dx}(x + 1) = 1⁠. Basics: substitution
  3. Integrate in tt

    ∫02dtt2+22=[12tan⁡−1t2]02=12tan⁡−11−12tan⁡−10=12⋅π4−0=π8.\begin{aligned}\int_0^2\frac{dt}{t^2 + 2^2} &= \left[\frac{1}{2}\tan^{-1}\frac{t}{2}\right]_0^2 \\ &= \frac{1}{2}\tan^{-1}1 - \frac{1}{2}\tan^{-1}0 \\ &= \frac{1}{2}\cdot\frac{\pi}{4} - 0 = \frac{\pi}{8}.\end{aligned}

    In decimals, π8≈0.3926991\frac{\pi}{8} \approx 0.3926991⁠.

    Section 7.4 formula (3) with a=2a = 2⁠. At t=2t = 2 the argument t2\frac{t}{2} is 1, and tan⁡−11=π4\tan^{-1}1 = \frac{\pi}{4} because π4\frac{\pi}{4} is in the principal range (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right) and tan⁡π4=1\tan\frac{\pi}{4} = 1⁠.
    Section 7.4, formula (3), then Theorem 2. Lesson: integrals of particular functions
  4. Same result by staying in xx

    An antiderivative in xx is

    F(x)=12tan⁡−1x+12.F(x) = \frac{1}{2}\tan^{-1}\frac{x + 1}{2}.

    Check: differentiate. Chain rule with inner u=x+12u = \frac{x+1}{2}⁠, u′=12u' = \frac{1}{2}⁠:

    F′(x)=12⋅11+(x+1)24⋅12=14+(x+1)2=1x2+2x+5,\begin{aligned}F'(x) &= \frac{1}{2}\cdot\frac{1}{1 + \frac{(x+1)^2}{4}}\cdot\frac{1}{2} \\ &= \frac{1}{4 + (x + 1)^2} = \frac{1}{x^2 + 2x + 5},\end{aligned}

    the integrand. Then F(1)−F(−1)=12tan⁡−11−12tan⁡−10=π8F(1) - F(-1) = \frac{1}{2}\tan^{-1}1 - \frac{1}{2}\tan^{-1}0 = \frac{\pi}{8}⁠.

    Multiplying 14\frac{1}{4} into 11+(x+1)2/4\frac{1}{1 + (x+1)^2/4} clears the inner fraction: 4(1+(x+1)24)=4+(x+1)24\left(1 + \frac{(x+1)^2}{4}\right) = 4 + (x+1)^2⁠.
    ddutan⁡−1u=11+u2\frac{d}{du}\tan^{-1}u = \frac{1}{1+u^2} (Chapter 5, Section 5.3.3). Basics: the chain rule backwards
  5. The region

    −3 −2 −1 1 2 0.1 0.3 x y (−1, 1/4) (1, 1/8) area ≈ 0.393 y = 1 / (x² + 2x + 5)
    y=1x2+2x+5y = \frac{1}{x^2+2x+5} is a bump with its highest point (−1,14)\left(-1, \frac{1}{4}\right) at the left end of our interval; at x=1x = 1 it is 18\frac{1}{8}⁠. The shaded area is π8≈0.393\frac{\pi}{8} \approx 0.393⁠.
    On [−1,1][-1, 1] the integrand falls from 14\frac{1}{4} to 18\frac{1}{8}⁠, so the area lies between 2×18=0.252\times\frac{1}{8} = 0.25 and 2×14=0.52\times\frac{1}{4} = 0.5⁠. The value 0.393 fits.
    For a function that is never negative, the definite integral is the area under its graph. Basics: area as a sum of thin strips
Result

∫−11dxx2+2x+5=π8≈0.3926991.\int_{-1}^{1}\frac{dx}{x^2 + 2x + 5} = \frac{\pi}{8} \approx 0.3926991. (Textbook answer: π8\frac{\pi}{8}⁠.)

Check it with numbers

A numerical integration of 1x2+2x+5\frac{1}{x^2+2x+5} over [−1,1][-1, 1] gives 0.3926991, and π÷8≈0.3926991\pi \div 8 \approx 0.3926991⁠. End values: at x=−1x = -1 the integrand is 11−2+5=0.25\frac{1}{1 - 2 + 5} = 0.25⁠; at x=1x = 1 it is 11+2+5=0.125\frac{1}{1 + 2 + 5} = 0.125⁠.

Common mistakes
  1. Forgetting the 1a\frac{1}{a} in front. ∫dtt2+4=12tan⁡−1t2\int\frac{dt}{t^2 + 4} = \frac{1}{2}\tan^{-1}\frac{t}{2}⁠, not tan⁡−1t2\tan^{-1}\frac{t}{2}⁠. Without it the answer would be π4\frac{\pi}{4}⁠.
  2. Using a=4a = 4⁠. The formula uses a2=4a^2 = 4⁠, so a=2a = 2⁠.
  3. Keeping the old limits. After t=x+1t = x + 1⁠, the limits are 0 and 2, not −1-1 and 1.
What to take away
  1. A quadratic with no real zeros completes to "square plus positive constant", which leads to tan⁡−1\tan^{-1}⁠.
  2. A shift t=x+kt = x + k keeps dt=dxdt = dx⁠; only the limits move.
  3. Read aa from a2a^2⁠: here a2=4a^2 = 4⁠, a=2a = 2⁠.

Every fact used, and where it comes from

FactUsed inSource
Completing the squareStep 1Algebra; Section 7.4 (Basics)
Substitution (shift) with change of limitsStep 2Section 7.9 (Lesson)
∫dtt2+a2=1atan⁡−1ta+C\int\frac{dt}{t^2 + a^2} = \frac{1}{a}\tan^{-1}\frac{t}{a} + CStep 3Section 7.4, formula (3) (Lesson)
tan⁡−11=π4\tan^{-1}1 = \frac{\pi}{4}⁠, tan⁡−10=0\tan^{-1}0 = 0Steps 3 and 4Chapter 2, principal values
∫abf=F(b)−F(a)\int_a^b f = F(b) - F(a)Steps 3 and 4Theorem 2, Section 7.8.3 (Lesson)
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 →