Answer:
f(x) = {5-x for x<5; x-5 for x≥5}
Explanation:
You want to write f(x) = |x -5| as a piecewise function.
Absolute value
The absolute value function is defined as ...
We can write your absolute value function this way by substituting (x-5) for z, and simplifying the resulting conditions.