1) The first one is just a parabola. Sketch it from 0 to 3 and then just copy/paste it across the neighboring intervals.

2) This is the same. Just sketch one interval and then just copy/paste.

Now if you are having trouble sketching the functions themselves, that's another problem.