Piecewise Functions - Challenge Question

1. Use the Piecewise command to reproduce the following plot.

(Hint: in order to prevent your graph looking like this it may be useful to use an ‘option’ when you plot your function.)

(If you struggle to find what you are looking for, try: http://mathematica.stackexchange.com/questions/21867/join-a-piecewise-plot)

2. Now use the Piecewise command to reproduce the following plot.

(Hint 1: use the table command)

(Hint 2: try reproducing the graph in section 1 using the piecewise & table command, then increase the range of the table).