Basically, a piecewise function is two different functions that meet at a certain point on a graph, such as x=2 as the meeting point, the first function has to be to the left of two(less then two)... the second number has to be to the right of two (greater than two) you can make one of the components equal to 2 if you would like to make your function continuous an just plug in the absolute value instead of the linear equation when you do an abs.
Hope this helps