The line of the first part of the function, without the restriction of x <=-2:
The line of the second part of the function, without the restriction is:
To graph the full function, we have to draw a line over the green dashed line until x = -2 and then continue drawing but now over the orange dashed line