Determine which is the graph of the given function

Shown below
A piecewise-defined function is a function defined by two or more equations over a specified domain. So [tex]f(x)[/tex] is defined by three equations:
1. Equation 2x.
2. Equation 2x - 2
3. Equation -2
All these equations are straight lines. Thus, from the figure below we know that 2x is the line in purple, 2x-2 is the line in orange and -2 is the line in green, and they are defined by its inequalities.