Remember that the function f(x)=|x| is defined as:
y =xforx0 =-xforx<0.

Split up the domain of the function.