Example 2
Graphing an Equation in Two Variables by Plotting Points
Graph the equation y=−x+2 by plotting points.
Solution
First, we construct a table similar to Table 2. Choose x values and calculate y.
x | y=−x+2 | (x,y) |
−5 | y=−(−5)+2=7 | (−5,7) |
−3 | y=−(−3)+2=5 | (−3,5) |
−1 | y=−(−1)+2=3 | (−1,3) |
0 | y=−(0)+2=2 | (0,2) |
1 | y=−(1)+2=1 | (1,1) |
3 | y=−(3)+2=−1 | (3,−1) |
5 | y=−(5)+2=−3 | (5,−3) |
Now, plot the points. Connect them if they form a line. See Figure 7
Try It #1
Construct a table and graph the equation by plotting points:
Graphing Equations with a Graphing Utility
Most graphing calculators require similar techniques to graph an equation. The equations sometimes have to be manipulated so they are written in the style y=_____. The TI-84 Plus, and many other calculator makes and models, have a mode function, which allows the window (the screen for viewing the graph) to be altered so the pertinent parts of a graph can be seen.
For example, the equation y=2x−20 has been entered in the TI-84 Plus shown in Figure 8a. In Figure 8b, the resulting graph is shown. Notice that we cannot see on the screen where the graph crosses the axes. The standard window screen on the TI-84 Plus shows −10≤x≤10, and −10≤y≤10. See Figure 8c.
By changing the window to show more of the positive x-axis and more of the negative y-axis, we have a much better view of the graph and the x- and y-intercepts. See Figure 9a and Figure 9b.