Evaluate the definite integral $\int_{1}^{4}[|x-1|+|x-2|+|x-3|] d x$.

Vedclass pdf generator app on play store
Vedclass iOS app on app store
Let $I = \int_{1}^{4}[|x-1|+|x-2|+|x-3|] d x$.
$\Rightarrow I = \int_{1}^{4}|x-1| d x + \int_{1}^{4}|x-2| d x + \int_{1}^{4}|x-3| d x$.
$I = I_{1} + I_{2} + I_{3}$ ... $(1)$
where $I_{1} = \int_{1}^{4}|x-1| d x$,$I_{2} = \int_{1}^{4}|x-2| d x$,and $I_{3} = \int_{1}^{4}|x-3| d x$.
For $I_{1} = \int_{1}^{4}|x-1| d x$:
Since $(x-1) \geq 0$ for $1 \leq x \leq 4$,
$I_{1} = \int_{1}^{4}(x-1) d x = \left[\frac{x^{2}}{2} - x\right]_{1}^{4} = (8 - 4) - (\frac{1}{2} - 1) = 4 + \frac{1}{2} = \frac{9}{2}$. ... $(2)$
For $I_{2} = \int_{1}^{4}|x-2| d x$:
Since $x-2 \leq 0$ for $1 \leq x \leq 2$ and $x-2 \geq 0$ for $2 \leq x \leq 4$,
$I_{2} = \int_{1}^{2}(2-x) d x + \int_{2}^{4}(x-2) d x = \left[2x - \frac{x^{2}}{2}\right]_{1}^{2} + \left[\frac{x^{2}}{2} - 2x\right]_{2}^{4} = (4 - 2 - (2 - \frac{1}{2})) + ((8 - 8) - (2 - 4)) = \frac{1}{2} + 2 = \frac{5}{2}$. ... $(3)$
For $I_{3} = \int_{1}^{4}|x-3| d x$:
Since $x-3 \leq 0$ for $1 \leq x \leq 3$ and $x-3 \geq 0$ for $3 \leq x \leq 4$,
$I_{3} = \int_{1}^{3}(3-x) d x + \int_{3}^{4}(x-3) d x = \left[3x - \frac{x^{2}}{2}\right]_{1}^{3} + \left[\frac{x^{2}}{2} - 3x\right]_{3}^{4} = (9 - \frac{9}{2} - (3 - \frac{1}{2})) + ((8 - 12) - (\frac{9}{2} - 9)) = 2 + \frac{1}{2} = \frac{5}{2}$. ... $(4)$
From equations $(1), (2), (3),$ and $(4)$,we obtain:
$I = \frac{9}{2} + \frac{5}{2} + \frac{5}{2} = \frac{19}{2}$.

Explore More

Similar Questions

If $[2,6]$ is divided into four intervals of equal length,then the approximate value of $\int_2^6 \frac{1}{x^2-x} dx$ using Simpson's rule is

Let $g(x) = \int_0^{|x|^{3/4}} t^{2/3} \sin \frac{1}{t} \, dt$,for all real $x$. Then,$\lim_{x \rightarrow 0} \frac{g(x)}{x}$ is equal to

$\int_0^1 \frac{x}{(1-x)^{3/4}} dx = $

$\int_0^\pi \frac{\cos x}{\sqrt{1-\sin ^2 x}} d x=$

$\int_0^{\pi /2} {\frac{{\sin x\cos x\,dx}}{{{{\cos }^2}x + 3\cos x + 2}}} = $

Vedclass Products

For Students

Vedclass Test Series

Mock tests in real JEE/NEET style with performance analysis. 5-day free trial.

Start Free Trial
For Teachers

Exam Paper Generator

Generate Set A/B/C/D exam papers from 7.5L+ questions in 2 minutes. 3 chapters free.

Try Free
For Institutes

Online Exam Module

Live online exams with unlimited students, 360° analytics & white-label branding.

See Demo