Could you tell me how exactly to graph piecewise functions.

This video lecture should be helpful:

http://www.youtube.com/watch?v=-gwffMEr8i8