Solution:
Since x−5≤0 on [2,5] and x−5≥0 on [5,8],
∣x−5∣={5−x,x−5,2≤x≤55≤x≤8
Using property P2,
∫28∣x−5∣dx=∫25(5−x)dx+∫58(x−5)dx
Integrating,
=[5x−2x2]25+[2x2−5x]58
Substituting the limits,
=(225−8)+(−8+225)=29+29
Therefore,
∫28∣x−5∣dx=9
Hence, the value of the integral is 9.