Final answer:
To plot the function g(x), we need to consider its different cases for x values: For x<1, g(x)=-2, for x=1, g(x)=-1, and for x>1, g(x)=1. We can plot these points on a graph to visualize the function: a horizontal line at y=-2 for x<1, a single point at (1,-1), and a horizontal line at y=1 for x>1.
Step-by-step explanation:
To plot the function g(x), we need to consider its different cases for x values:
- For x < 1, g(x) = -2
- For x = 1, g(x) = -1
- For x > 1, g(x) = 1
We can plot these points on a graph to visualize the function:
- For x = 0, g(x) = -2
- For x = 1, g(x) = -1
- For x = 2, g(x) = 1
The graph will have a horizontal line at y = -2 for x < 1, a single point at (1, -1), and a horizontal line at y = 1 for x > 1.