Question:

Evaluate: \(\displaystyle\int_{0}^{5}\left(|x-1|+|x-2|+|x-5|\right)dx\)

Show Hint

Split [0, 5] at x = 1 and x = 2, remove the modulus signs and integrate.
Updated On: Nov 20, 2026
Show Solution
collegedunia
Verified By Collegedunia

Solution and Explanation

Step 1: Understand the question:
The integrand has three modulus terms. Each one changes its form at a point where its inside is zero.
These points are \(x=1,\ 2,\ 5\), so we split \([0,5]\) at 1 and 2.

Step 2: Remove the modulus signs on each interval:
On \([0,1]\): \(|x-1|=1-x\), \(|x-2|=2-x\), \(|x-5|=5-x\). The sum is \(8-3x\).
On \([1,2]\): \(|x-1|=x-1\), \(|x-2|=2-x\), \(|x-5|=5-x\). The sum is \(6-x\).
On \([2,5]\): \(|x-1|=x-1\), \(|x-2|=x-2\), \(|x-5|=5-x\). The sum is \(x+2\).

Step 3: Integrate on [0, 1]:
\[ \int_{0}^{1}(8-3x)\,dx=\left[8x-\frac{3x^{2}}{2}\right]_{0}^{1}=8-\frac{3}{2}=\frac{13}{2} \]

Step 4: Integrate on [1, 2]:
\[ \int_{1}^{2}(6-x)\,dx=\left[6x-\frac{x^{2}}{2}\right]_{1}^{2}=(12-2)-\left(6-\frac{1}{2}\right)=\frac{9}{2} \]

Step 5: Integrate on [2, 5]:
\[ \int_{2}^{5}(x+2)\,dx=\left[\frac{x^{2}}{2}+2x\right]_{2}^{5}=\left(\frac{25}{2}+10\right)-(2+4)=\frac{33}{2} \]

Step 6: Add the three parts:
\[ \frac{13}{2}+\frac{9}{2}+\frac{33}{2}=\frac{55}{2} \]

Final Answer:
The value of the integral is \(\dfrac{55}{2}\). \[ \boxed{\dfrac{55}{2}} \]
Was this answer helpful?
0
0