A piecewise function is a function that is defined on a sequence interval.
\For example
is a piecewise function.
The absolute function is 

Since 
So, 

And 

Therefore 

And 

The piecewise function is 