Question
Question: \int_{1}^{4} (|x| + |3-x|) \, dx...
\int_{1}^{4} (|x| + |3-x|) , dx

Answer
10
Explanation
Solution
The integral is split at x=3: For x∈[1,3], ∣x∣=x and ∣3−x∣=3−x. The integrand is x+(3−x)=3. For x∈[3,4], ∣x∣=x and ∣3−x∣=−(3−x)=x−3. The integrand is x+(x−3)=2x−3.
The integral becomes: ∫133dx+∫34(2x−3)dx =[3x]13+[x2−3x]34 =(9−3)+((16−12)−(9−9)) =6+(4−0)=6+4=10
