The absolute value ∣x−2∣ changes behavior at x=2.
When x<2: (x−2) is negative, so ∣x−2∣=−(x−2)=2−x
When x≥2: (x−2) is positive, so ∣x−2∣=x−2
Since the limits go from 1 to 4, and the behavior changes at x=2:
∫14∣x−2∣dx=∫12∣x−2∣dx+∫24∣x−2∣dx
=∫12(2−x)dx+∫24(x−2)dx
For the first integral:
∫12(2−x)dx=[2x−2x2]12
=(2(2)−24)−(2(1)−21)
=(4−2)−(2−0.5)
=2−1.5
=21
For the second integral:
∫24(x−2)dx=[2x2−2x]24
=(216−8)−(24−4)
=(8−8)−(2−4)
=0−(−2)
=2
Adding both parts:
∫14∣x−2∣dx=21+2
=21+24
=25