Graph the piecewise function given by

f(x)= -1/3x +2, x<0
x-5,x>0

if you can graph one line, surely you can graph two.

You can see the two lines at

http://www.wolframalpha.com/input/?i=plot+y+%3D+-1%2F3+x+%2B+2%2C+y%3Dx-5+for+x+%3D+-5+to+10

Just pick the blue line left of x=0 and the purple line to the right.

To graph the piecewise function f(x) = -1/3x + 2 when x < 0 and f(x) = x - 5 when x > 0, follow the steps below:

1. Plot the graph of f(x) = -1/3x + 2 for x < 0:
- For x < 0, start by choosing a few values for x such as -3, -2, -1, and 0.
- Substitute these x-values into the equation f(x) = -1/3x + 2 to find the corresponding y-values.
- Plot the points (-3, 3), (-2, 2.67), (-1, 2.33), and (0, 2).
- Draw a straight line passing through these points.

2. Plot the graph of f(x) = x - 5 for x > 0:
- For x > 0, choose a few values for x such as 1, 2, 3, and 4.
- Substitute these x-values into the equation f(x) = x - 5 to find the corresponding y-values.
- Plot the points (1, -4), (2, -3), (3, -2), and (4, -1).
- Draw a straight line passing through these points.

3. Combine the two graphs:
- Since the function has different definitions for x < 0 and x > 0, you will have two separate lines.
- The line f(x) = -1/3x + 2 will be present for x values less than 0, while the line f(x) = x - 5 will be present for x values greater than 0.
- Draw both lines on the same graph.

This is how you can graph the piecewise function.