Limits with piece-wise defined functions are very similar to limits with absolute values. We have to work separately in each region, and then patch our results together.