Evaluate : \(\int^3_1(|x-1|+|x-2|+|x-3|)\ dx\)
CBSE Class 12 Maths · Integrals
CBSE Class 12 Maths · Integrals
Think of absolute value like measuring distance on a number line — it is always positive. Imagine walking from point 1 to point 3 on a road. Along the way, the "distance" to certain landmarks flips its sign at key spots. We cut the journey at the tricky spot, which is at \( x = 2 \). On each small piece, the distance formula becomes simple arithmetic. Adding up both pieces gives the total area under the curve, and that total turns out to be 5.
Answer: \[ \int_1^3 \left(|x-1| + |x-2| + |x-3|\right) dx = 5 \]
An absolute value function like \( |x - a| \) is defined piecewise. It equals \( x - a \) when \( x \ge a \) and \( -(x - a) = a - x \) when \( x < a \). The point where the sign changes is \( x = a \). To integrate a modulus over an interval, we must break the interval at these critical points so that inside each sub-interval the modulus can be replaced by a plain (non-modulus) expression. Here the integrand has three modulus terms with critical points at \( x = 1 \), \( x = 2 \) and \( x = 3 \). Since we integrate from \( 1 \) to \( 3 \), the only interior break point is \( x = 2 \). We use the property that a definite integral can be split over sub-intervals: \[ \int_a^c f(x)\, dx = \int_a^b f(x)\, dx + \int_b^c f(x)\, dx \]
\[ |x-a| = \begin{cases} x - a & x \ge a \\ a - x & x < a \end{cases} \] and \[ \int_1^3 f(x)\, dx = \int_1^2 f(x)\, dx + \int_2^3 f(x)\, dx \]
\[ \int_1^3 \left(|x-1| + |x-2| + |x-3|\right) dx = 5 \]
A common mistake is forgetting to split the interval at the critical point \( x = 2 \) and treating \( |x - 2| \) as a single expression over all of \( [1, 3] \). Since \( x - 2 \) is negative on \( [1, 2] \) and positive on \( [2, 3] \), you must use \( 2 - x \) on the first part and \( x - 2 \) on the second part; using only one form gives the wrong answer.
\[ \int_1^3 \left(|x-1| + |x-2| + |x-3|\right) dx = 5 \]
One common mistake: students forget that \\ \( |x - 3| = 3 - x \) (not \\ \( x - 3 \)) throughout \\ \( [1, 3] \) because \\ \( x \le 3 \) on this interval, and similarly treat \\ \( |x - 1| \) incorrectly near the left endpoint — always check the sign of \\ \( (x - a) \) on the specific sub-interval before removing the modulus.
Answer: \[ \int_1^3 \left(|x-1| + |x-2| + |x-3|\right) dx = 5 \]
Question: Evaluate \[ \int_0^4 \left(|x-1| + |x-3|\right) dx \]
Solution: Step 1: Identify critical points. The expressions \(|x-1|\) and \(|x-3|\) change sign at \(x = 1\) and \(x = 3\) respectively. Since the interval is \([0, 4]\), we split it at \(x = 1\) and \(x = 3\). Step 2: Write the integrand without absolute values on each sub-interval. On \([0, 1]\): \(x - 1 < 0\) and \(x - 3 < 0\), so \(|x-1| + |x-3| = -(x-1) + -(x-3) = -2x + 4\). On \([1, 3]\): \(x - 1 \ge 0\) and \(x - 3 < 0\), so \(|x-1| + |x-3| = (x-1) + -(x-3) = 2\). On \([3, 4]\): \(x - 1 \ge 0\) and \(x - 3 \ge 0\), so \(|x-1| + |x-3| = (x-1) + (x-3) = 2x - 4\). Step 3: Split and evaluate the integral. \[ I = \int_0^1 (-2x + 4) \, dx + \int_1^3 2 \, dx + \int_3^4 (2x - 4) \, dx \] First integral: \[ \int_0^1 (-2x + 4) \, dx = \left[-x^2 + 4x\right]_0^1 = (-1 + 4) - 0 = 3 \] Second integral: \[ \int_1^3 2 \, dx = \left[2x\right]_1^3 = 6 - 2 = 4 \] Third integral: \[ \int_3^4 (2x - 4) \, dx = \left[x^2 - 4x\right]_3^4 = (16 - 16) - (9 - 12) = 0 - (-3) = 3 \] Step 4: Add all parts. \[ I = 3 + 4 + 3 = 10 \]
Answer: \(I = 10\)
Question: Evaluate \[ \int_1^4 \left(|x-2| + |x-3|\right) dx \]
Solution: Step 1: Identify critical points. The expressions \(|x-2|\) and \(|x-3|\) change sign at \(x = 2\) and \(x = 3\) respectively. Both lie in \([1, 4]\), so we split at \(x = 2\) and \(x = 3\). Step 2: Write the integrand without absolute values on each sub-interval. On \([1, 2]\): \(x - 2 < 0\) and \(x - 3 < 0\), so \(|x-2| + |x-3| = -(x-2) + -(x-3) = -2x + 5\). On \([2, 3]\): \(x - 2 \ge 0\) and \(x - 3 < 0\), so \(|x-2| + |x-3| = (x-2) + -(x-3) = 1\). On \([3, 4]\): \(x - 2 \ge 0\) and \(x - 3 \ge 0\), so \(|x-2| + |x-3| = (x-2) + (x-3) = 2x - 5\). Step 3: Split and evaluate the integral. \[ I = \int_1^2 (-2x + 5) \, dx + \int_2^3 1 \, dx + \int_3^4 (2x - 5) \, dx \] First integral: \[ \int_1^2 (-2x + 5) \, dx = \left[-x^2 + 5x\right]_1^2 = (-4 + 10) - (-1 + 5) = 6 - 4 = 2 \] Second integral: \[ \int_2^3 1 \, dx = \left[x\right]_2^3 = 3 - 2 = 1 \] Third integral: \[ \int_3^4 (2x - 5) \, dx = \left[x^2 - 5x\right]_3^4 = (16 - 20) - (9 - 15) = -4 - (-6) = 2 \] Step 4: Add all parts. \[ I = 2 + 1 + 2 = 5 \]
Answer: \(I = 5\)
Question: Evaluate: \[\int_0^3 \left(|x - 1| + |x - 2|\right) dx\]
Answer: \[\int_0^3 \left(|x-1| + |x-2|\right) dx = 5\]