Evaluate the definite integrals in Exercises 24 to 31.\(\int^4_1\ [|x-1|+|x-2|+|x-3|]dx\)
CBSE Class 12 Maths · Integrals
CBSE Class 12 Maths · Integrals
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}. \]
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.
\[ |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 \]
\[ \int_1^4 \left[ |x-1| + |x-2| + |x-3| \right]\,dx = \frac{19}{2}. \]
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.
\[ \int_1^4 \left[ |x-1| + |x-2| + |x-3| \right]\,dx = \frac{19}{2}. \]
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.
Answer: \[ \int_1^4 \left[ |x-1| + |x-2| + |x-3| \right]\,dx = \frac{19}{2}. \]
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
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
Question: Evaluate the definite integral \[\int_1^5 \left[|x-2|+|x-3|+|x-4|\right]dx.\]
Answer: \[\int_1^5 \left[|x-2|+|x-3|+|x-4|\right]dx = 14\]