How do you write write f(x)=|x-4|f(x)=|x4| as a piecewise function?

1 Answer
Apr 10, 2016

f(x)=x-4, x>=4 and f(x)=-(x-4), x<=4f(x)=x4,x4andf(x)=(x4),x4, representing radial lines from [4, 0], with slopes +-1±1. It is implicit that f(x)>=0f(x)0... .

Explanation:

f(x)=|x-4|f(x)=|x4| is the combined equation for the half-line equations f(x) = x-4, x>=4 and f(x)=4-x, x<=4f(x)=x4,x4andf(x)=4x,x4.
Note that f(x)>=0f(x)0..