The integral to evaluate is ∫02(∣x∣+∣x−2∣)dx
For ∣x∣ on the interval [0,2]:
Since x≥0 throughout [0,2], we have ∣x∣=x
For ∣x−2∣ on the interval [0,2]:
Since x≤2 throughout [0,2], we have x−2≤0
Therefore ∣x−2∣=−(x−2)=2−x
Substituting into the expression:
∣x∣+∣x−2∣=x+(2−x)
=x+2−x
=2
The integral becomes:
∫022dx
=2x02
=2(2)−2(0)
=4
Therefore, the value of the integral is 4.