You can
put this solution on YOUR website!OK, let's pick the domain to go from -5 to 5.
From x=-5 to x=0 (not including x=0), the function is

From x=0 (including x=0) to x=5, the function is

Since for a straight line, we only need two points we will use x=-5,0 for

.

Plot those two points, (-5,-4) and (0,1) and draw the straight line connecting them.

Next for the quadratic, we need more that 2 points, we'll pick x=0,1,2,3,4,5.

Plot those and connect those points.
Note the change in scale of the graph.

Also, note the discontinuity at x=0.