SOLVER7 Study. Nothing Else.
Miscellaneous Exercise Chapter 7 Q31

Evaluate the definite integrals in Exercises 24 to 31.\(\int^4_1\ [|x-1|+|x-2|+|x-3|]dx\)

CBSE Class 12 Maths · Integrals

Solution

👶 Simple Explanation

Simple Explanation

Imagine a number line like a ruler. Some functions behave differently on different parts of the ruler — they flip like a mirror at certain special points. Here, the special flip points are at 2 and 3 on the ruler. So we chop our ruler into three small pieces and handle each piece separately. On each piece, the maths becomes much simpler — just plain lines. Adding those simple pieces together gives the total area, which turns out to be nine and a half.

Answer: \[ \int_1^4 \left[ |x-1| + |x-2| + |x-3| \right]\,dx = \frac{19}{2}. \]

📖 Definite Integral of Sum of Modulus Functions

Detailed Explanation

A modulus function \( |x - a| \) changes its definition at \( x = a \). To the left of \( a \) it equals \( a - x \), and to the right it equals \( x - a \). When an integrand contains several modulus terms, we must break the interval of integration at every point where any modulus changes sign, and on each sub-interval replace each modulus by its correct linear expression. Here the terms \( |x-1| \), \( |x-2| \), \( |x-3| \) change sign at \( x = 1, 2, 3 \). Since we integrate from \( 1 \) to \( 4 \), the relevant breakpoints inside the interval are \( x = 2 \) and \( x = 3 \). We then use the property \( \int_a^b f\,dx = \int_a^c f\,dx + \int_c^b f\,dx \) to add up the pieces.

Formula Used

\[ |x-a| = \begin{cases} x-a & x \ge a \\ a-x & x < a \end{cases} \] \[ \int_a^b f(x)\,dx = \int_a^c f(x)\,dx + \int_c^b f(x)\,dx \]

Solution

  1. Step 1: Identify the breakpoints. The integrand is \( |x-1| + |x-2| + |x-3| \), and the moduli change sign at \( x = 1, 2, 3 \). Since the limits are \( 1 \) to \( 4 \), split the interval as \( [1,2] \), \( [2,3] \) and \( [3,4] \).
  2. Step 2: Simplify the integrand on each sub-interval. On \( [1,2] \): \( |x-1| = x-1 \), \( |x-2| = 2-x \), \( |x-3| = 3-x \). Their sum is \[ (x-1)+(2-x)+(3-x) = 4 - x. \] On \( [2,3] \): \( |x-1| = x-1 \), \( |x-2| = x-2 \), \( |x-3| = 3-x \). Their sum is \[ (x-1)+(x-2)+(3-x) = x. \] On \( [3,4] \): \( |x-1| = x-1 \), \( |x-2| = x-2 \), \( |x-3| = x-3 \). Their sum is \[ (x-1)+(x-2)+(x-3) = 3x - 6. \]
  3. Step 3: Write the integral as a sum of three integrals: \[ I = \int_1^2 (4 - x)\,dx + \int_2^3 x\,dx + \int_3^4 (3x - 6)\,dx. \]
  4. Step 4: Evaluate the first integral. \[ \int_1^2 (4 - x)\,dx = \left[ 4x - \frac{x^2}{2} \right]_1^2. \] At \( x = 2 \): \( 8 - 2 = 6 \). At \( x = 1 \): \( 4 - \tfrac{1}{2} = \tfrac{7}{2} \). So this integral equals \[ 6 - \frac{7}{2} = \frac{5}{2}. \]
  5. Step 5: Evaluate the second integral. \[ \int_2^3 x\,dx = \left[ \frac{x^2}{2} \right]_2^3 = \frac{9}{2} - \frac{4}{2} = \frac{5}{2}. \]
  6. Step 6: Evaluate the third integral. \[ \int_3^4 (3x - 6)\,dx = \left[ \frac{3x^2}{2} - 6x \right]_3^4. \] At \( x = 4 \): \( 24 - 24 = 0 \). At \( x = 3 \): \( \tfrac{27}{2} - 18 = -\tfrac{9}{2} \). So this integral equals \[ 0 - \left(-\frac{9}{2}\right) = \frac{9}{2}. \]
  7. Step 7: Add all three results. \[ I = \frac{5}{2} + \frac{5}{2} + \frac{9}{2} = \frac{19}{2}. \]

Final Answer

\[ \int_1^4 \left[ |x-1| + |x-2| + |x-3| \right]\,dx = \frac{19}{2}. \]

Common Mistake

A common mistake is to drop the modulus signs and integrate \( (x-1)+(x-2)+(x-3) = 3x-6 \) over the whole interval \( [1,4] \). This is wrong because \( |x-2| \) and \( |x-3| \) are not equal to \( x-2 \) and \( x-3 \) for values of \( x \) less than \( 2 \) and \( 3 \). You must split at the breakpoints and use the correct sign of each modulus on every sub-interval.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Locate the breakpoints: The three modulus terms \(|x-1|\), \(|x-2|\), and \(|x-3|\) each change their sign (and hence their formula) at \(x = 1\), \(x = 2\), and \(x = 3\) respectively. Since the integral runs from \(1\) to \(4\), the breakpoints that lie strictly inside this interval are \(x = 2\) and \(x = 3\). — Reason: We must split the integration interval wherever any modulus term switches definition, so that on each piece we can drop the absolute value signs safely.
  2. Step 2: Split the integral: Using the additive property, write \[\int_1^4 \left[|x-1|+|x-2|+|x-3|\right]dx = \int_1^2 \left[|x-1|+|x-2|+|x-3|\right]dx + \int_2^3 \left[|x-1|+|x-2|+|x-3|\right]dx + \int_3^4 \left[|x-1|+|x-2|+|x-3|\right]dx\] — Reason: Breaking at \(x=2\) and \(x=3\) creates three sub-intervals on each of which every absolute value has a fixed (non-switching) linear form.
  3. Step 3: Simplify the integrand on each sub-interval: On \([1,2]\): \(x \ge 1\) so \(|x-1| = x-1\); \(x \le 2\) so \(|x-2| = 2-x\); \(x \le 3\) so \(|x-3| = 3-x\). Their sum is \[(x-1)+(2-x)+(3-x) = 4-x.\] On \([2,3]\): \(|x-1| = x-1\), \(|x-2| = x-2\), \(|x-3| = 3-x\). Their sum is \[(x-1)+(x-2)+(3-x) = x.\] On \([3,4]\): all three moduli are positive, so \(|x-1| = x-1\), \(|x-2| = x-2\), \(|x-3| = x-3\). Their sum is \[(x-1)+(x-2)+(x-3) = 3x-6.\] — Reason: Replacing each \(|x-a|\) with the correct linear expression converts the integrand into a standard polynomial that is straightforward to integrate.
  4. Step 4: Evaluate the first piece on [1, 2]: Compute \[\int_1^2 (4-x)\,dx = \left[4x - \frac{x^2}{2}\right]_1^2.\] Substituting the limits: \[\left(8 - 2\right) - \left(4 - \frac{1}{2}\right) = 6 - \frac{7}{2} = \frac{12-7}{2} = \frac{5}{2}.\] — Reason: The antiderivative of \(4-x\) is \(4x - \frac{x^2}{2}\); applying the limits gives the net area over this sub-interval.
  5. Step 5: Evaluate the second piece on [2, 3]: Compute \[\int_2^3 x\,dx = \left[\frac{x^2}{2}\right]_2^3.\] Substituting the limits: \[\frac{9}{2} - \frac{4}{2} = \frac{5}{2}.\] — Reason: The antiderivative of \(x\) is \(\frac{x^2}{2}\); this sub-interval contributes another \(\frac{5}{2}\) to the total.
  6. Step 6: Evaluate the third piece on [3, 4]: Compute \[\int_3^4 (3x-6)\,dx = \left[\frac{3x^2}{2} - 6x\right]_3^4.\] Substituting the limits: \[\left(24 - 24\right) - \left(\frac{27}{2} - 18\right) = 0 - \left(\frac{27-36}{2}\right) = 0 - \left(-\frac{9}{2}\right) = \frac{9}{2}.\] — Reason: Evaluating the antiderivative of \(3x-6\) at the upper and lower limits completes the third piece.
  7. Step 7: Add all three pieces: Combine the results from Steps 4, 5, and 6: \[\frac{5}{2} + \frac{5}{2} + \frac{9}{2} = \frac{5+5+9}{2} = \frac{19}{2}.\] — Reason: The integral over the full interval \([1,4]\) equals the sum of the integrals over the three sub-intervals.

Final Answer

\[ \int_1^4 \left[ |x-1| + |x-2| + |x-3| \right]\,dx = \frac{19}{2}. \]

Common Mistake

One common mistake: forgetting to re-examine the sign of every modulus term on each sub-interval — for example, assuming \(|x-2| = x-2\) on \([1,2]\) when \(x < 2\) actually makes it \(2-x\), which leads to a wrong integrand and an incorrect result.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Split at breakpoints \( x = 2 \) and \( x = 3 \): \[ \int_1^4 \left[|x-1|+|x-2|+|x-3|\right]dx = \int_1^2 (4-x)\,dx + \int_2^3 x\,dx + \int_3^4 (3x-6)\,dx \]
  2. Step 2: Evaluate each piece: \[\int_1^2 (4-x)\,dx = \left[4x - \frac{x^2}{2}\right]_1^2 = \left(8-2\right)-\left(4-\frac{1}{2}\right) = 6 - \frac{7}{2} = \frac{5}{2}\] \[\int_2^3 x\,dx = \left[\frac{x^2}{2}\right]_2^3 = \frac{9}{2} - \frac{4}{2} = \frac{5}{2}\] \[\int_3^4 (3x-6)\,dx = \left[\frac{3x^2}{2}-6x\right]_3^4 = \left(24-24\right)-\left(\frac{27}{2}-18\right) = 0 - \left(-\frac{9}{2}\right) = \frac{9}{2}\]
  3. Step 3: Add the three results: \[\frac{5}{2} + \frac{5}{2} + \frac{9}{2} = \frac{19}{2}\]

Answer: \[ \int_1^4 \left[ |x-1| + |x-2| + |x-3| \right]\,dx = \frac{19}{2}. \]

➕ More Examples

More Examples

Example 1

Question: Evaluate \[\int_0^4 \left[|x-1| + |x-3|\right] dx\]

Solution: The critical points of the absolute value expressions inside the integral are \(x = 1\) and \(x = 3\). We split the interval \([0, 4]\) into three sub-intervals: \([0,1]\), \([1,3]\), and \([3,4]\). On \([0,1]\): \(x < 1\) so \(|x-1| = -(x-1) = 1-x\); \(x < 3\) so \(|x-3| = -(x-3) = 3-x\). Therefore the integrand is \((1-x)+(3-x) = 4-2x\). On \([1,3]\): \(x \ge 1\) so \(|x-1| = x-1\); \(x < 3\) so \(|x-3| = 3-x\). Therefore the integrand is \((x-1)+(3-x) = 2\). On \([3,4]\): \(x \ge 1\) so \(|x-1| = x-1\); \(x \ge 3\) so \(|x-3| = x-3\). Therefore the integrand is \((x-1)+(x-3) = 2x-4\). Now we evaluate each part. Part 1: \[I_1 = \int_0^1 (4-2x)\,dx = \left[4x - x^2\right]_0^1 = (4-1) - 0 = 3\] Part 2: \[I_2 = \int_1^3 2\,dx = \left[2x\right]_1^3 = 6 - 2 = 4\] Part 3: \[I_3 = \int_3^4 (2x-4)\,dx = \left[x^2 - 4x\right]_3^4 = (16-16) - (9-12) = 0 - (-3) = 3\] Adding all three parts: \[I = I_1 + I_2 + I_3 = 3 + 4 + 3 = 10\]

Answer: 10

Example 2

Question: Evaluate \[\int_1^5 \left[|x-2| + |x-4|\right] dx\]

Solution: The critical points are \(x = 2\) and \(x = 4\). We split the interval \([1, 5]\) into three sub-intervals: \([1,2]\), \([2,4]\), and \([4,5]\). On \([1,2]\): \(x < 2\) so \(|x-2| = 2-x\); \(x < 4\) so \(|x-4| = 4-x\). Therefore the integrand is \((2-x)+(4-x) = 6-2x\). On \([2,4]\): \(x \ge 2\) so \(|x-2| = x-2\); \(x < 4\) so \(|x-4| = 4-x\). Therefore the integrand is \((x-2)+(4-x) = 2\). On \([4,5]\): \(x \ge 2\) so \(|x-2| = x-2\); \(x \ge 4\) so \(|x-4| = x-4\). Therefore the integrand is \((x-2)+(x-4) = 2x-6\). Now we evaluate each part. Part 1: \[I_1 = \int_1^2 (6-2x)\,dx = \left[6x - x^2\right]_1^2 = (12-4) - (6-1) = 8 - 5 = 3\] Part 2: \[I_2 = \int_2^4 2\,dx = \left[2x\right]_2^4 = 8 - 4 = 4\] Part 3: \[I_3 = \int_4^5 (2x-6)\,dx = \left[x^2 - 6x\right]_4^5 = (25-30) - (16-24) = (-5) - (-8) = 3\] Adding all three parts: \[I = I_1 + I_2 + I_3 = 3 + 4 + 3 = 10\]

Answer: 10

🎯 Try a Similar Question

Try a Similar Question

Question: Evaluate the definite integral \[\int_1^5 \left[|x-2|+|x-3|+|x-4|\right]dx.\]

Solution

  1. Step 1: Identify the critical points: The expressions inside the moduli are \(x-2\), \(x-3\), and \(x-4\). They change sign at \(x=2\), \(x=3\), and \(x=4\) respectively. Since the limits of integration are \(1\) to \(5\), we split the integral at \(x=2\), \(x=3\), and \(x=4\).
  2. Step 2: Express each modulus on each sub-interval: On \([1,2]\): \(x-2 \le 0\), \(x-3 \le 0\), \(x-4 \le 0\), so the integrand is \(-(x-2)-(x-3)-(x-4) = -3x+9\). On \([2,3]\): \(x-2 \ge 0\), \(x-3 \le 0\), \(x-4 \le 0\), so the integrand is \((x-2)-(x-3)-(x-4) = x+5-2x+1 \). Let us recompute carefully: \((x-2)-(x-3)-(x-4) = x-2-x+3-x+4 = -x+5\). On \([3,4]\): \(x-2 \ge 0\), \(x-3 \ge 0\), \(x-4 \le 0\), so the integrand is \((x-2)+(x-3)-(x-4) = x-1\). On \([4,5]\): \(x-2 \ge 0\), \(x-3 \ge 0\), \(x-4 \ge 0\), so the integrand is \((x-2)+(x-3)+(x-4) = 3x-9\).
  3. Step 3: Write the integral as a sum of four integrals: \[\int_1^5 \left[|x-2|+|x-3|+|x-4|\right]dx = \int_1^2(-3x+9)\,dx + \int_2^3(-x+5)\,dx + \int_3^4(x-1)\,dx + \int_4^5(3x-9)\,dx\]
  4. Step 4: Evaluate the first integral: \[\int_1^2(-3x+9)\,dx = \left[-\frac{3x^2}{2}+9x\right]_1^2\] Substituting the limits: \(\left(-\frac{3(4)}{2}+18\right)-\left(-\frac{3}{2}+9\right) = (-6+18)-(-\frac{3}{2}+9) = 12 - \frac{15}{2} = \frac{24-15}{2} = \frac{9}{2}\).
  5. Step 5: Evaluate the second integral: \[\int_2^3(-x+5)\,dx = \left[-\frac{x^2}{2}+5x\right]_2^3\] Substituting the limits: \(\left(-\frac{9}{2}+15\right)-\left(-\frac{4}{2}+10\right) = \frac{21}{2} - 8 = \frac{21-16}{2} = \frac{5}{2}\).
  6. Step 6: Evaluate the third integral: \[\int_3^4(x-1)\,dx = \left[\frac{x^2}{2}-x\right]_3^4\] Substituting the limits: \(\left(\frac{16}{2}-4\right)-\left(\frac{9}{2}-3\right) = (8-4)-\left(\frac{9}{2}-3\right) = 4 - \frac{3}{2} = \frac{5}{2}\).
  7. Step 7: Evaluate the fourth integral: \[\int_4^5(3x-9)\,dx = \left[\frac{3x^2}{2}-9x\right]_4^5\] Substituting the limits: \(\left(\frac{75}{2}-45\right)-\left(\frac{48}{2}-36\right) = \left(\frac{75}{2}-45\right)-(24-36) = \left(\frac{75}{2}-45\right)+12 = \frac{75}{2}-33 = \frac{75-66}{2} = \frac{9}{2}\).
  8. Step 8: Add all four results: The total value is \(\frac{9}{2}+\frac{5}{2}+\frac{5}{2}+\frac{9}{2} = \frac{9+5+5+9}{2} = \frac{28}{2} = 14\).

Answer: \[\int_1^5 \left[|x-2|+|x-3|+|x-4|\right]dx = 14\]

Everything you get with Solver7

More questions in Integrals

Chapter 7 Examples Q1(i) 65/2/2 2023 / Section A Q1 Chapter 7 Examples Q1(ii) 65/2/1 2022 / Section A Q2(a) Chapter 7 Examples Q1(iii) 65/2/1 2022 / Section A Q2(b) Chapter 7 Examples Q2(i) Chapter 7 Examples Q2(ii) 65/1/1 2023 / Section A Q5 Chapter 7 Examples Q2(iii) 65/1/1 2023 / Section A Q6 65/1/1 2024 / Section A Q6 65/2/1 2024 / Section A Q6 65/3/1 2023 / Section A Q6 65/3/1 2024 / Section A Q6 Chapter 7 Examples Q3(i) 65/3/1 2023 / Section A Q7 Chapter 7 Examples Q3(ii) 65(B) 2026 / Section A Q8 65/1/1 2026 / Section A Q8 65/4/1 2022 / Section A Q6 65/4/1 2023 / Section A Q8 65/4/2 2024 / Section A Q8 Chapter 7 Examples Q3(iii) 65(B) 2026 / Section A Q9 65/1/1 2026 / Section A Q9 65/2/1 2022 / Section B Q8(a) 65/2/2 2023 / Section A Q9 65/4/1 2022 / Section B Q7 65/4/1 2023 / Section A Q9 65/4/1 2026 / Section A Q9 Chapter 7 Examples Q4 65/2/1 2022 / Section B Q8(b) 65/3/1 2026 / Section A Q10 65/4/1 2022 / Section B Q8(a) 65/4/1 2026 / Section A Q10 65/5/1 2026 / Section A Q10 Chapter 7 Examples Q5(i) 65/3/1 2026 / Section A Q11 65/4/1 2022 / Section B Q8(b) 65/5/1 2026 / Section A Q11 Chapter 7 Examples Q5(ii) 65/2/3 2026 / Section A Q12 Chapter 7 Examples Q5(iii) Chapter 7 Examples Q5(iv) Chapter 7 Examples Q6(i) 65/2/1 2022 / Section C Q12 Chapter 7 Examples Q6(ii) Chapter 7 Examples Q6(iii) Chapter 7 Examples Q7(i) 65/4/1 2022 / Section C Q13 Chapter 7 Examples Q7(ii) Chapter 7 Examples Q7(iii) Chapter 7 Examples Q8(i) Chapter 7 Examples Q8(ii) Chapter 7 Examples Q9(i) Chapter 7 Examples Q9(ii) 65/1/1 2024 / Section B Q23(a) 65/3/1 2024 / Section B Q23(a) Chapter 7 Examples Q9(iii)