A piecewise function is several ordinary functions, each living on its own stretch of the axis. Draw them one by one and simply ignore whatever happens outside the interval written next to the formula. The only place the pieces interact is the boundary. There the inequality decides the dot: a or means the endpoint belongs to that piece and gets a filled dot, a strict or means it does not and gets a hollow one. If the two pieces give different values at the boundary, the graph has a visible jump - that is correct, not a mistake.
Sketch the graph of the function
For the rule is - a straight line with slope . Only the part to the left of the -axis is drawn. Two points are enough: at we get , and at the boundary we get . The inequality is , so the point belongs to the graph - a filled dot.
For the rule is - a straight line with slope , drawn only to the right of the -axis. At we get . Towards the boundary the line approaches the height , but is excluded by the strict inequality, so gets an open dot.
The left ray comes from the lower left, passes through and stops at the filled dot . The right ray starts at the open dot , passes through and continues down to the right. At the graph jumps from down to : a gap of units. The function is defined at and its value there is - the height the filled dot sits at.
Screenshot any problem on your screen and get the steps. Chrome on a computer; free.