The graph of the piecewise function is attached
How to determine the graph of the piecewise function
From the question, we have the following parameters that can be used in our computation:
The function
Where, we have
f(x) = 2 - x if x ≤ 1
-2 + 2x if x > 1
Using the above as a guide, we have the following:
We plot
f(x) = 2 - x in the domain x ≤ 1
f(x) = -2 + 2x in the domain x > 1
So, we plot the graph of the function
The graph of the function is attached