Skip to main content
Logo image

Section 3.9 Strategies for Graphing Lines

Previous several sections covered methods for plotting a graph of a linear equation in two variables.
We’ve learned three forms for a linear equation:
slope-intercept form \(y=mx+b\)
point-slope form \(y=m\left(x-x_0\right)+y_0\)
standard form \(Ax+By=C\)
We’ve studied two special types of line:
horizontal line \(y=k\)
vertical line \(x=h\)
We’ve practiced three ways to graph a line:
building a table of \(x\)- and \(y\)-values
plotting one point (often the \(y\)-intercept) and drawing slope triangles
plotting its \(x\)-intercept and \(y\)-intercept
In this section, we review these ideas, especially what steps to take to plot a graph of a linear equation.
Figure 3.9.1. Alternative Video Lesson

Subsection 3.9.1 Graphing Lines in Slope-Intercept Form

To review various methods for plotting a line, we’ll start by taking one line, \(y=-2x+1\text{,}\) and graph it using each of the strategies we’ve learned.

Example 3.9.2. Building a Table.

First, we’ll graph \(y=-2x+1\) by building a table of values. Our first task is to pick some \(x\)-values to use in the table, and we arbitrarily choose \(-2,-1,0,1,2\text{.}\) It’s a good habit to use at least five values when plotting this way. After this, we carefully evaluate \(y\) over and over, and plot the resulting points.
\(x\)-value \(y\)-value Point
\(\highlight{-2}\) \(\begin{aligned}[t]y\amp=-2(\substitute{-2})+1\\\amp=5\end{aligned}\) \((-2,5)\)
\(\highlight{-1}\) \(\begin{aligned}[t]y\amp=-2(\substitute{-1})+1\\\amp=3\end{aligned}\) \((-1,3)\)
\(\highlight{0}\) \(\begin{aligned}[t]y\amp=-2(\substitute{0})+1\\\amp=1\end{aligned}\) \((0,1)\)
\(\highlight{1}\) \(\begin{aligned}[t]y\amp=-2(\substitute{1})+1\\\amp=-1\end{aligned}\) \((1,-1)\)
\(\highlight{2}\) \(\begin{aligned}[t]y\amp=-2(\substitute{2})+1\\\amp=-3\end{aligned}\) \((2,-3)\)
Figure 3.9.3. Table for \(y=-2x+1\)
this is a graph of the line y=-2x+1. The following points on the line are plotted: (-2,5),(-1,3),(0,1),(1,-1),(2,-3)
Figure 3.9.4. Graphing \(y=-2x+1\) using a table of values

Example 3.9.5. Using Slope Triangles.

Although making a table is straightforward, the slope triangle method is faster and reinforces the true meaning of slope. With the slope triangle method, we first identify some point on the line. Our line is in slope-intercept form, so we know the \(y\)-intercept is \((0,1)\text{.}\) Plot this first, and then we can draw slope triangles in both directions to find more points. The slope we will use is also apparent: \(-2=\frac{-2}{1}\text{.}\)
Figure 3.9.6. Marking a point and some slope triangles
This is a graph of the line y=-2x+1. The following points on the line are plotted: (-2,5),(-1,3),( 0,1),(1,-1),(2,-3). There are a few slope triangles. One starts at (-2,5), passes (-1,5), and ends at (-1,3). One    starts at (-1,3), passes (0,3), and ends at (0,1). One starts at (0,1), passes (1,1), and ends at (1,-1). One starts at (1,-1), passes (2,-1), and ends at (2,-3).
Figure 3.9.7. Graphing \(y=-2x+1\) by slope triangles
Compared to the table method, the slope triangle method:
  • is more sophisticated;
  • doesn’t take the time and space to make a table;
  • doesn’t involve lots of calculations where you might make a human error;
  • shows slope triangles, which reinforces the meaning of slope.

Example 3.9.8. Using intercepts.

If we use \(x\)- and \(y\)-intercepts to plot \(y=-2x+1\text{,}\) we have to find those intercepts first. For our current line, it is apparent that the \(y\)-intercept is at \((0,1)\text{.}\) But where is the \(x\)-intercept?
Set \(y=0\text{.}\)
\begin{align*} y\amp=-2x+1\\ \substitute{0}\amp=-2x+1\\ 0\subtractright{1}\amp=-2x\\ -1\amp=-2x\\ \divideunder{-1}{-2}\amp=x\\ \frac{1}{2}\amp=x \end{align*}
So the \(x\)-intercept is at \(\left(\frac{1}{2},0\right)\text{.}\) Plotting both intercepts, we can connect the dots with a straight line.
Figure 3.9.9. Using slope triangles
This worked, but here are some observations about why this method is not the greatest.
  • Algebra was required to solve for at least one of the intercepts.
  • We had to plot a point with a fraction in its coordinates.
  • We only plotted two points and they turned out to be very close to each other. So if there is even a small inaccuracy in where we marked the points or how we use a straight edge, it could result in a line that is significantly off.

Note 3.9.10.

When a line is presented in slope-intercept form and \(b\) is an integer, our opinion is that the slope triangle method is the best choice for making its graph.

Subsection 3.9.2 Graphing Lines in Point-Slope Form

When we graph a line in point-slope form like \(y=\frac{2}{3}(x+1)+3\text{,}\) the slope triangle method is the obvious choice. We can see a point on the line, \((-1,3)\text{,}\) and the slope is apparent: \(\frac{2}{3}\text{.}\) Here is the graph:
This is a graph of the line y-3=2/3(x+1). The following points on the line are plotted: (-4,1),(-1,3),(2,5). There are two slope triangles. One starts at (-4,1), passes (-1,1), and ends at (-1,3). One starts at (-1,3), passes (2,3), and ends at (2,5).
Figure 3.9.11. Graphing \(y=\frac{2}{3}(x+1)+3\) using slope triangles
Other graphing methods would take more work and miss the purpose of point-slope form. To graph a line in point-slope form, we recommend always using slope triangles.

Subsection 3.9.3 Graphing Lines in Standard Form

The line \(3x+4y=12\) is in standard form. How should we graph it? We’ll review methods we learned and compare them.

Example 3.9.12. Building a Table of \(x\)- and \(y\)-values.

To make a table, we could substitute \(x\) for various numbers and use algebra to find the corresponding \(y\)-values. Let’s start with \(x=-2\text{,}\) planning to move on to \(x=-1,0,1,2\text{.}\)
\begin{align*} 3x+4y\amp=12\\ 3(\substitute{-2})+4y\amp=12\\ -6+4y\amp=12\\ 4y\amp=12\addright{6}\\ 4y\amp=18\\ y\amp=\divideunder{18}{4}=\frac{9}{2} \end{align*}
The first point we found is \(\left(-2,\frac{9}{2}\right)\text{.}\) This has been a lot of calculation, and we ended up with a fraction we will have to plot. And we have to repeat this process a few more times to get more points for the table. The table method is generally not a preferred way to graph a line in standard form. So let’s look at other options.

Example 3.9.13. Using intercepts.

Next, we’ll try graphing \(3x+4y=12\) using intercepts. We set up a small table to record the two intercepts:
\(x\)-value \(y\)-value Intercept
\(x\)-intercept \(0\)
\(y\)-intercept \(0\)
We have to calculate the line’s \(x\)-intercept by substituting \(y=0\) into the equation:
\begin{align*} 3x+4y\amp=12\\ 3x+4(\substitute{0})\amp=12\\ 3x\amp=12\\ x\amp=\divideunder{12}{3}\\ x\amp=4 \end{align*}
And similarly for the \(y\)-intercept:
\begin{align*} 3x+4y\amp=12\\ 3(\substitute{0})+4y\amp=12\\ 4y\amp=12\\ y\amp=\divideunder{12}{4}\\ y\amp=3 \end{align*}
So the line’s \(x\)-intercept is at \((4,0)\) and its \(y\)-intercept is at \((0,3)\text{.}\) Now we can complete the table and then graph the line:
\(x\)-value \(y\)-value Intercepts
\(x\)-intercept \(4\) \(0\) \((4,0)\)
\(y\)-intercept \(0\) \(3\) \((0,3)\)
Figure 3.9.14. Intercepts of \(3x+4y=12\)
This is a grid with the graph of line 3x+4y=12. The following points are plotted: (0,3), (4,0).
Figure 3.9.15. Graph of \(3x+4y=12\)

Example 3.9.16. With Slope Triangles.

We can always rearrange \(3x+4y=12\) into slope-intercept form, and then graph it with the slope triangle method:
\begin{align*} 3x+4y\amp=12\\ 4y\amp=12\subtractright{3x}\\ 4y\amp=-3x+12\\ y\amp=\divideunder{-3x+12}{4}\\ y\amp=-\frac{3}{4}x+3 \end{align*}
With the \(y\)-intercept at \((0,3)\) and slope \(-\frac{3}{4}\text{,}\) we can graph the line using slope triangles:
This is a graph of the line 3x+4y=12. The following points on the line are plotted: (-4,6),(0,3),(4,0). There  are  two slope triangles. One starts at (-4,6), passes (0,6), and ends at (0,3). One starts at (0,3), passes (4,3), and  ends at   (4,0).
Figure 3.9.17. Graphing \(3x+4y=12\) using slope triangles
Compared with the intercepts method, the slope triangle method takes more time, but it works.
Here are some observations about graphing a line equation that is in standard form:
  • The intercepts method might be the quickest approach.
  • The intercepts method only tells us two intercepts of the line. When we need to know more information, like the line’s slope, and get a more accurate graph, we should take the time to convert the equation into slope-intercept form.
  • When \(C=0\) in a standard form equation we cannot use the intercepts method to plot the line anyway.
So there’s not really a clear winner for which method is best. Using intercepts or converting to slope-intercept form and using slope triangels might be preferable depending on the situation.

Subsection 3.9.4 Graphing Horizontal and Vertical Lines

We learned in Section 8 that equations in the form \(x=h\) and \(y=k\) make vertical and horizontal lines. But perhaps you will one day find yourself not remembering which is which. Making a table and plotting points can quickly remind you which type of equation makes which type of line. Let’s build a table for \(y=2\) and another one for \(x=-3\text{:}\)
\(x\)-value \(y\)-value Point
\(0\) \(2\) \((0,2)\)
\(1\) \(2\) \((1,2)\)
Figure 3.9.18. Table of values for \(y=2\)
\(x\)-value \(y\)-value Point
\(-3\) \(0\) \((-3,0)\)
\(-3\) \(1\) \((-3,1)\)
Figure 3.9.19. Table of values for \(x=-3\)
With two points on each line, we can graph them:
a graph of y=2; the points (0,2) and (1,2) are plotted, and a horizontal line passes between them
Figure 3.9.20. Graphing \(y=2\)
a graph of x=-3; the points (-3,0) and (-3,1) are plotted, and a vertical line passes between them
Figure 3.9.21. Graphing \(x=-3\)

Exercises 3.9.5 Exercises

Graphing by Table.

Make a table and then plot the equation.
1.
\(y={1-x}\)
\(x\) \(y\) Point
\(-2\)
\(-1\)
\(0\)
\(1\)
\(2\)
2.
\(y={-\left(x+3\right)}\)
\(x\) \(y\) Point
\(-2\)
\(-1\)
\(0\)
\(1\)
\(2\)
3.
\(y={-{\frac{3}{4}}x+2}\)
\(x\) \(y\) Point
\(-8\)
\(-4\)
\(0\)
\(4\)
\(8\)
4.
\(y={{\frac{2}{3}}x-2}\)
\(x\) \(y\) Point
\(-6\)
\(-3\)
\(0\)
\(3\)
\(6\)
5.
\(x=6\)
\(x\) \(y\) Point
6.
\(x=8\)
\(x\) \(y\) Point
7.
\(y=-9\)
\(x\) \(y\) Point
8.
\(y=-7\)
\(x\) \(y\) Point

Graphing Standard Form Equations.

Find the \(x\)- and \(y\)-intercepts of the line, and then use them to graph the line.
9.
\({7x+3y}={21}\)
10.
\({5x+4y}={20}\)
11.
\({9x-5y}={45}\)
12.
\({-7x+6y}={42}\)
13.
\({4x+7y}={-28}\)
14.
\({9x+8y}={-72}\)

Graphing Slope-Intercept Equations.

Use the slope and \(y\)-intercept to plot the line.
15.
\({y = 5x-3}\)
16.
\({y = 2x+3}\)
17.
\({y = -2x-5}\)
18.
\({y = -2x+4}\)
19.
\({y = -{\frac{1}{3}}x+2}\)
20.
\({y = -{\frac{1}{3}}x-5}\)
21.
\({y = {\frac{1}{4}}x+3}\)
22.
\({y = {\frac{1}{4}}x-2}\)
23.
\({y = {\frac{8}{3}}x+4}\)
24.
\({y = {\frac{9}{4}}x-1}\)
25.
\({y = x-9}\)
26.
\({y = x-7}\)
27.
\({y = -{\frac{3}{8}}x-1}\)
28.
\({y = -{\frac{4}{9}}x-5}\)

Graphing Point-Slope Equations.

Use the slope and the apparent point to plot the line.
29.
\(y={4\mathopen{}\left(x-3\right)+5}\)
30.
\(y={2\mathopen{}\left(x-4\right)+3}\)
31.
\(y={3\mathopen{}\left(x-4\right)-2}\)
32.
\(y={3\mathopen{}\left(x-5\right)-4}\)
33.
\(y={{\frac{3}{5}}\mathopen{}\left(x+8\right)-3}\)
34.
\(y={{\frac{1}{2}}\mathopen{}\left(x+9\right)-6}\)
35.
\(y={-{\frac{8}{3}}\mathopen{}\left(x+8\right)+4}\)
36.
\(y={-{\frac{9}{5}}\mathopen{}\left(x-4\right)-6}\)
37.
\(y={-0.3\mathopen{}\left(x+9\right)+8}\)
38.
\(y={-0.1\mathopen{}\left(x+6\right)+4}\)

Choosing a Method to Graph a Line.

Use whatever method you think best to plot the line.
39.
\({y = 4x-2}\)
40.
\({y = -4x+5}\)
41.
\({y = -{\frac{8}{3}}x+1}\)
42.
\({y = {\frac{9}{2}}x-3}\)
43.
\(y={{\frac{2}{3}}\mathopen{}\left(x+8\right)-2}\)
44.
\(y={{\frac{1}{7}}\mathopen{}\left(x+6\right)-8}\)
45.
\({4x+3y}={12}\)
46.
\({-2x+y}={8}\)
47.
\(x=-1\)
48.
\(x=1\)
49.
\(y=3\)
50.
\(y=5\)
You have attempted of activities on this page.