The teacher hasn't uploaded a solution for this question yet.
We need to consider the intervals where the expressions inside the absolute values change signs. $|x-2| = \begin{cases} x-2, & x \geq 2 \\ 2-x, & x < 2 \end{cases}$ $|x-4| = \begin{cases} x-4, & x \geq 4 \\ 4-x, & x < 4 \end{cases}$
Since the integral is from 1 to 4, we split the integral at $x=2$. $\int_{1}^{4}(|x-2|+|x-4|)dx = \int_{1}^{2}(|x-2|+|x-4|)dx + \int_{2}^{4}(|x-2|+|x-4|)dx$
For $1 \leq x < 2$, $|x-2| = 2-x$ and $|x-4| = 4-x$. $\int_{1}^{2}(2-x+4-x)dx = \int_{1}^{2}(6-2x)dx = [6x-x^2]_{1}^{2} = (12-4) - (6-1) = 8-5 = 3$
For $2 \leq x \leq 4$, $|x-2| = x-2$ and $|x-4| = 4-x$. $\int_{2}^{4}(x-2+4-x)dx = \int_{2}^{4}2dx = [2x]_{2}^{4} = 8-4 = 4$
$\int_{1}^{4}(|x-2|+|x-4|)dx = 3 + 4 = 7$
Final Answer: 7
AI generated content. Review strictly for academic accuracy.