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

Exercise 7.10 · Q5: ∫−55∣x+2∣ dx\int_{-5}^{5}|x+2|\,dx

Exercise 7.10Properties of definite integrals (P2) · Section 7.10
The question

By using the properties of definite integrals, evaluate the integrals in Exercises 1 to 19.

5. ∫−55∣x+2∣ dx\displaystyle\int_{-5}^{5}|x + 2|\,dx

Exam answer

Let I=∫−55∣x+2∣ dxI = \displaystyle\int_{-5}^{5}|x + 2|\,dx⁠.

Here ∣x+2∣=−(x+2)|x + 2| = -(x + 2) for −5≤x≤−2-5 \le x \le -2⁠, and ∣x+2∣=x+2|x + 2| = x + 2 for −2≤x≤5-2 \le x \le 5⁠.

Using ∫abf(x) dx\displaystyle\int_a^b f(x)\,dx =∫acf(x) dx+∫cbf(x) dx\displaystyle = \int_a^c f(x)\,dx + \int_c^b f(x)\,dx with c=−2c = -2⁠,

I=−∫−5−2(x+2) dx+∫−25(x+2) dx=−[x22+2x]−5−2+[x22+2x]−25=−[(2−4)−(252−10)]+[(252+10)−(2−4)]=92+492\begin{aligned} I &= -\int_{-5}^{-2}(x + 2)\,dx \\ &\quad + \int_{-2}^{5}(x + 2)\,dx \\ &= -\left[\frac{x^2}{2} + 2x\right]_{-5}^{-2} \\ &\quad + \left[\frac{x^2}{2} + 2x\right]_{-2}^{5} \\ &= -\left[(2 - 4) - \left(\frac{25}{2} - 10\right)\right] \\ &\quad + \left[\left(\frac{25}{2} + 10\right) - (2 - 4)\right] \\ &= \frac92 + \frac{49}{2} \end{aligned}

∴ I=29\therefore\ I = 29⁠.

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

The one idea this problem is built on

The absolute value ∣x+2∣|x + 2| has two different formulas: −(x+2)-(x + 2) where x+2<0x + 2 < 0 and x+2x + 2 where x+2≥0x + 2 \ge 0⁠. The switch happens at the turning point x=−2x = -2⁠, which lies inside [−5,5][-5, 5]⁠. Property P2 lets us cut the interval there and integrate each simple formula on its own piece.

Given, to find, and the plan
Given
I=∫−55∣x+2∣ dxI = \int_{-5}^{5}|x + 2|\,dx⁠.
To find
The exact value of II⁠.
Plan
Find where x+2x + 2 changes sign; write ∣x+2∣|x + 2| without the bars on each side of x=−2x = -2⁠; split by P2 with c=−2c = -2⁠; integrate each piece with Theorem 2; add. Check with the areas of two triangles.

Basics you need

1Absolute value

∣u∣=u|u| = u if u≥0u \ge 0⁠, and ∣u∣=−u|u| = -u if u<0u < 0⁠. So ∣u∣≥0|u| \ge 0 always.

2Property P2 (Section 7.10)

∫abf dx=∫acf dx+∫cbf dx\int_a^b f\,dx = \int_a^c f\,dx + \int_c^b f\,dx⁠: an integral can be cut at any point cc⁠. Lesson: properties of definite integrals

3Power rule and the fundamental theorem

∫x dx=x22+C\int x\,dx = \frac{x^2}{2} + C (standard formula (i), Section 7.2), and ∫abf(x) dx=F(b)−F(a)\int_a^b f(x)\,dx = F(b) - F(a) (Theorem 2, Section 7.8.3). Basics: powers of x

4Signed area

A definite integral of a function that is ≥0\ge 0 is the area of the region under its graph. Basics: area as a sum of thin strips

Solution

  1. Find the turning point and remove the bars

    x+2≥0x + 2 \ge 0 exactly when x≥−2x \ge -2⁠. So on our interval

    ∣x+2∣={−(x+2),−5≤x≤−2,x+2,−2≤x≤5.|x + 2| = \begin{cases} -(x + 2), & -5 \le x \le -2,\\ x + 2, & -2 \le x \le 5.\end{cases}

    At x=−2x = -2 both formulas give 0, so they agree there. The function ∣x+2∣|x + 2| is continuous on [−5,5][-5, 5]⁠.

    We know how to integrate x+2x + 2 and −(x+2)-(x + 2)⁠, but ∣x+2∣|x + 2| equals a different one of them on each side of the turning point; once the bars are removed, each side is a plain linear function. The turning point x=−2x = -2 is where the expression inside the bars is 0, and it lies inside [−5,5][-5, 5]⁠, so the integral must be split there.
    Check a point on each side: at x=−4x = -4⁠, x+2=−2<0x + 2 = -2 < 0 and ∣x+2∣=2=−(x+2)|x + 2| = 2 = -(x + 2)⁠; at x=3x = 3⁠, x+2=5>0x + 2 = 5 > 0 and ∣x+2∣=5|x + 2| = 5⁠.
  2. Split with P2 at c=−2c = -2

    I=∫−5−2∣x+2∣ dx+∫−25∣x+2∣ dx=∫−5−2−(x+2) dx+∫−25(x+2) dx.\begin{aligned}I &= \int_{-5}^{-2}|x + 2|\,dx + \int_{-2}^{5}|x + 2|\,dx \\ &= \int_{-5}^{-2}-(x + 2)\,dx + \int_{-2}^{5}(x + 2)\,dx .\end{aligned}
    P2 holds for any point cc⁠; we choose c=−2c = -2 so that on each piece the integrand is given by one formula from Step 1. (The book proves P2 from Theorem 2: F(c)−F(a)F(c) - F(a) plus F(b)−F(c)F(b) - F(c) is F(b)−F(a)F(b) - F(a)⁠.)
  3. The left piece, on [−5,−2][-5, -2]

    An antiderivative of x+2x + 2 is x22+2x\frac{x^2}{2} + 2x⁠. So

    ∫−5−2−(x+2) dx=−[x22+2x]−5−2=−[(2−4)−(252−10)]=−[−2−52]=92.\begin{aligned}\int_{-5}^{-2}-(x + 2)\,dx &= -\left[\frac{x^2}{2} + 2x\right]_{-5}^{-2} \\ &= -\Big[(2 - 4) - \left(\tfrac{25}{2} - 10\right)\Big] \\ &= -\left[-2 - \tfrac{5}{2}\right] = \frac{9}{2}.\end{aligned}
    The integrand −(x+2)-(x + 2) is positive on (−5,−2)(-5, -2)⁠, so this piece must come out positive, and it does. Keep the brackets around the value at the lower limit: subtracting 252−10=52\frac{25}{2} - 10 = \frac52 is where sign slips happen.
    ∫x dx=x22\int x\,dx = \frac{x^2}{2}⁠, ∫2 dx=2x\int 2\,dx = 2x (standard formula (i), Section 7.2; check: ddx(x22+2x)=x+2\frac{d}{dx}\left(\frac{x^2}{2} + 2x\right) = x + 2⁠). Theorem 2, Section 7.8.3. Lesson: the fundamental theorem
  4. The right piece, on [−2,5][-2, 5]

    ∫−25(x+2) dx=[x22+2x]−25=(252+10)−(2−4)=452+2=492.\begin{aligned}\int_{-2}^{5}(x + 2)\,dx &= \left[\frac{x^2}{2} + 2x\right]_{-2}^{5} \\ &= \left(\tfrac{25}{2} + 10\right) - (2 - 4) \\ &= \tfrac{45}{2} + 2 = \frac{49}{2}.\end{aligned}
    Same antiderivative, now with the limits −2-2 and 55⁠. Again the integrand is ≥0\ge 0 on the piece, and the answer is positive.
    Theorem 2, Section 7.8.3: value at the upper limit minus value at the lower limit. Lesson: the fundamental theorem
  5. Add the pieces, and check with triangles

    I=92+492=582=29.I = \frac{9}{2} + \frac{49}{2} = \frac{58}{2} = 29 .
    x y −5 −2 5 3 7 (−5, 3) (5, 7) corner 9/2 49/2 y = |x + 2|
    The graph of y=∣x+2∣y = |x + 2| on [−5,5][-5, 5] is a V with its corner at (−2,0)(-2, 0)⁠. The left triangle has base 3 and height 3, area 12⋅3⋅3=92\frac12 \cdot 3 \cdot 3 = \frac92⁠; the right triangle has base 7 and height 7, area 12⋅7⋅7=492\frac12 \cdot 7 \cdot 7 = \frac{49}{2}⁠. Total 29.
    Because ∣x+2∣≥0|x + 2| \ge 0⁠, the integral is the area under the graph, and the region is two right-angled triangles. Their areas agree with Steps 3 and 4, which confirms the calculation.
    Area of a triangle =12×base×height= \frac12 \times \text{base} \times \text{height}⁠. Basics: area as a sum of thin strips
  6. Why P7 does not help here

    The interval [−5,5][-5, 5] is symmetric about 0, but P7 needs ff to be even or odd. For f(x)=∣x+2∣f(x) = |x + 2|⁠:

    f(1)=3,f(−1)=∣−1+2∣=1.f(1) = 3, \qquad f(-1) = |{-1} + 2| = 1 .

    So f(−1)≠f(1)f(-1) \ne f(1) (not even) and f(−1)≠−f(1)f(-1) \ne -f(1) (not odd). The graph is symmetric about x=−2x = -2⁠, not about the yy-axis.

    A symmetric interval is only half of P7's condition; the function must also be symmetric about 0. One counterexample point is enough to show it is neither even nor odd. Doubling ∫05\int_0^5 would give 2⋅452=452 \cdot \frac{45}{2} = 45⁠, which is wrong.
    P7 (Section 7.10): (i) if f(−x)=f(x)f(-x) = f(x)⁠, then ∫−aaf=2∫0af\int_{-a}^{a} f = 2\int_0^a f⁠; (ii) if f(−x)=−f(x)f(-x) = -f(x)⁠, then ∫−aaf=0\int_{-a}^{a} f = 0⁠. Basics: symmetry and mirror images
Result

∫−55∣x+2∣ dx=29\int_{-5}^{5}|x + 2|\,dx = 29 (Textbook answer: 29. Ours is the same.)

Check it with numbers

A numerical integration of ∣x+2∣|x + 2| over [−5,5][-5, 5] gives 29.0000000; over [−5,−2][-5, -2] it gives 4.5000000 =92= \frac92⁠, and over [−2,5][-2, 5] it gives 24.5000000 =492= \frac{49}{2}⁠.

Common mistakes
  1. Dropping the bars: ∫−55(x+2) dx=20\int_{-5}^{5}(x + 2)\,dx = 20⁠. That counts the left triangle as negative: −92+492=20-\frac92 + \frac{49}{2} = 20⁠. The absolute value makes every part positive.
  2. Splitting at 0 instead of at −2-2⁠. The split point is where the inside, x+2x + 2⁠, is zero.
  3. Using P7 because the limits are −5-5 and 55⁠. ∣x+2∣|x + 2| is neither even nor odd (Step 6).
What to take away
  1. For ∫ab∣g(x)∣ dx\int_a^b |g(x)|\,dx⁠: find where g(x)=0g(x) = 0 inside [a,b][a, b]⁠, split there with P2, and on each piece write ∣g∣=g|g| = g or −g-g⁠.
  2. For a linear gg⁠, the region is made of triangles, which gives a quick check.
  3. P7 needs an even or odd function, not just a symmetric interval.

Every fact used, and where it comes from

FactUsed inSource
∣u∣=u|u| = u for u≥0u \ge 0⁠, −u-u for u<0u < 0Step 1Definition of absolute value
P2: ∫abf=∫acf+∫cbf\int_a^b f = \int_a^c f + \int_c^b fStep 2Section 7.10 (Lesson)
∫xn dx=xn+1n+1+C\int x^n\,dx = \frac{x^{n+1}}{n+1} + C (n=1n = 1 and n=0n = 0⁠)Steps 3 and 4Standard formula (i), Section 7.2 (Basics)
∫abf(x) dx=F(b)−F(a)\int_a^b f(x)\,dx = F(b) - F(a)Steps 3 and 4Theorem 2, Section 7.8.3 (Lesson)
Area of a triangle =12bh= \frac12 bhStep 5Mensuration (Basics)
P7 (even and odd functions)Step 6Section 7.10 (Basics)
Splitting an absolute value at its turning pointsSteps 1 and 2Example 28 does the same for ∣x3−x∣|x^3 - x|
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 →