The People's Share

GED Math · Lines and Graphs · Worksheet

Graphing Lines

From an equation to a table, and from the table to a straight line on the grid. Then the two numbers that describe a line: its slope and its y-intercept. Five worked examples, ten lines to graph on large grids, and 26 short questions.

← Lines, slope, and systems · Math · GED at The People’s Share

Before you begin

What this sheet is about

An equation like y = 2x − 1 is true for many pairs of numbers. When x is 0, y is −1. When x is 1, y is 1. When x is 2, y is 3. A table of values lists some of those pairs, and the Tables of Values sheet shows how to make one.

Each pair is a point on the coordinate plane. When you plot the points from an equation like this one, they fall in a straight line. Drawing that line is called graphing the equation. The line is a picture of the equation: every point on it is a pair of numbers that makes the equation true.

Once a line is drawn, two numbers describe it: how steep it is, called its slope, and where it crosses the up-and-down axis, called its y-intercept. The second half of this sheet is about reading those two numbers.

What you need

A pencil and a ruler. Any straight edge will do in place of a ruler: the edge of a book, a folded piece of cardboard, or a library card. Print the sheet if you can, so that you can draw on its grids. If you cannot print, copy each grid onto paper: draw the two axes and mark the numbers from −8 to 8 on each, evenly spaced. Graph paper makes this easier.

If plotting a point is new to you, read Parts 4 to 6 of The Coordinate Plane first. If making a table of values is new, do the Tables of Values sheet first. Part A of this sheet graphs six of the equations from that sheet, with the same inputs, so if you have done it, six of your tables are already made.

The sheet is long. Two or three sittings is a good pace. The answer key, with every table filled in and every line drawn, is behind one button at the end.

The method

Graphing a line from a table

  1. Make a table of values with at least three rows. Five is better. Use small numbers for x, and include 0.
  2. Plot each pair. Start at the origin, the point where the two axes cross. Go across by the first number: right if it is positive, left if it is negative. Then go up or down by the second number: up if it is positive, down if it is negative. Make a dot.
  3. Look at the dots. They should line up in one straight row. If one dot is out of line, the row of the table it came from has a mistake. Work that row again before you draw.
  4. Draw the line. Lay your ruler along the dots and draw one straight line through all of them. Carry it past the dots to the edges of the grid, and put an arrow at each end. The arrows say that the line keeps going.
Why more than two points?

Two points are enough to draw a line, because only one straight line passes through any two points. The third point is a check. If it does not sit on the line through the other two, one of the three has a mistake.

Worked examples

Three lines, start to finish

Worked example 1

Graph y = 2x − 1.

The table. Use x = −2, −1, 0, 1, 2. For the first row, put −2 in place of x: 2(−2) − 1 = −4 − 1 = −5. The pair is (−2, −5).

xthe number you put inPut it in and work it outywhat comes out(x, y)the pair
−22(−2) − 1 = −4 − 1 = −5−5(−2, −5)
−12(−1) − 1 = −2 − 1 = −3−3(−1, −3)
02(0) − 1 = 0 − 1 = −1−1(0, −1)
12(1) − 1 = 2 − 1 = 11(1, 1)
22(2) − 1 = 4 − 1 = 33(2, 3)

The points. For (−2, −5), start at the origin, go 2 to the left, then 5 down, and make a dot. Plot the other four the same way.

The line. The five dots line up in one straight row, so the table is right. A ruler laid along them gives the line in the picture. It is drawn past the dots to the edges of the grid, with an arrow at each end.

−6−6−5−5−4−4−3−3−2−2−1−1112233445566xy(−2, −5)(−1, −3)(0, −1)(1, 1)(2, 3)
The line y = 2x − 1, through the five points in the table.
Worked example 2 · a line that goes down

Graph y = −x + 3.

The table. −x means −1 times x. Put each input in parentheses so that the signs stay clear. For x = −2: −(−2) + 3 = 2 + 3 = 5.

xthe number you put inPut it in and work it outywhat comes out(x, y)the pair
−2−(−2) + 3 = 2 + 3 = 55(−2, 5)
−1−(−1) + 3 = 1 + 3 = 44(−1, 4)
0−(0) + 3 = 0 + 3 = 33(0, 3)
1−(1) + 3 = −1 + 3 = 22(1, 2)
2−(2) + 3 = −2 + 3 = 11(2, 1)

The line. Read a line from left to right, the way you read a sentence. This one goes down. In the table, each time x goes up by 1, y goes down by 1.

−6−6−5−5−4−4−3−3−2−2−1−1112233445566xy(−2, 5)(−1, 4)(0, 3)(1, 2)(2, 1)
The line y = −x + 3 goes down from left to right.
Worked example 3 · a fraction in front of x

Graph y = 12x − 2.

The table. 12x means half of x. Choose even numbers for x, so that each half comes out whole: −4, −2, 0, 2, 4. For x = −4: half of −4 is −2, and −2 − 2 = −4.

xthe number you put inPut it in and work it outywhat comes out(x, y)the pair
−412(−4) − 2 = −2 − 2 = −4−4(−4, −4)
−212(−2) − 2 = −1 − 2 = −3−3(−2, −3)
012(0) − 2 = 0 − 2 = −2−2(0, −2)
212(2) − 2 = 1 − 2 = −1−1(2, −1)
412(4) − 2 = 2 − 2 = 00(4, 0)

The line. This line climbs, but slowly: 1 unit up for every 2 units across.

−6−6−5−5−4−4−3−3−2−2−1−1112233445566xy(−4, −4)(−2, −3)(0, −2)(2, −1)(4, 0)
The line y = 12x − 2 climbs 1 unit for every 2 units across.
Slope and y-intercept

The two numbers that describe a line

Look again at the three lines. They are different in two ways. They cross the y-axis in different places, and some climb or fall more steeply than others. Each of those has a name, and each can be read in three places: on the graph, in the table, and in the equation.

The y-intercept: where the line crosses the y-axis

The y-intercept is the point where the line crosses the y-axis, the axis that stands up and down. Every point on the y-axis has 0 as its first number, so the y-intercept is always a point of the form (0, a number). People often give just the number: “the y-intercept is −1.”

On the graph, find where the line crosses the y-axis. In worked example 1, it crosses at (0, −1).

In the table, look at the row where x is 0. In worked example 1, that row says y is −1.

In the equation, it is the number at the end, with its sign. In y = 2x − 1, that is −1. Here is why: put 0 in for x, and the x part becomes 0. y = 2(0) − 1 = −1.

The slope: how steep, and which way

The slope of a line says how steep it is and which way it goes. Read the line from left to right. If it goes up, its slope is a positive number. If it goes down, its slope is a negative number. A flat line has a slope of 0. The larger the number, leaving its sign aside, the steeper the line.

To measure the slope, take two points on the line. Count how many units you go across, to the right, to get from the first point to the second. That is the run. Then count how many units you go up to get there. That is the rise. If you have to go down, the rise is a negative number. The slope is the rise divided by the run:

slope = riserun

Count the spaces between the grid lines, not the lines themselves. From the line at 1 to the line at 3 is 2 units.

−5−5−4−4−3−3−2−2−1−11122334455xyrun 1rise 2
Example 1: run 1, rise 2, slope 2
−5−5−4−4−3−3−2−2−1−11122334455xyrun 1rise −1
Example 2: run 1, rise −1, slope −1
−5−5−4−4−3−3−2−2−1−11122334455xyrun 2rise 1
Example 3: run 2, rise 1, slope 12

On the graph. In worked example 1, go from (1, 1) to (2, 3). The run is 1 and the rise is 2, so the slope is 2 ÷ 1 = 2. In worked example 2, go from (1, 2) to (2, 1). The run is 1, and the rise is −1 because you go down, so the slope is −1 ÷ 1 = −1. In worked example 3, go from (−4, −4) to (−2, −3). The run is 2 and the rise is 1, so the slope is 1 ÷ 2 = 12.

Any two points on the same line give the same slope. In worked example 1, try (−2, −5) and (0, −1) instead: the run is 2 and the rise is 4, and 4 ÷ 2 = 2 again.

In the table. The slope is how much y changes each time x goes up by 1. In worked example 1, the y column reads −5, −3, −1, 1, 3: up 2 every time. When the x values go up by more than 1, divide the change in y by the change in x. In worked example 3, x goes up by 2 on each row and y goes up by 1, so the slope is 1 ÷ 2 = 12.

In the equation. The slope is the number multiplying x, with its sign. In y = 2x − 1 it is 2. In y = −x + 3 it is −1, because −x means −1 times x. In y = 12x − 2 it is 12. Here is why: each time x goes up by 1, the x part of the equation changes by that number, and so does y.

y = mx + b

You may have seen these two numbers named with letters, in the equation y = mx + b. The letter m stands for the slope, and the letter b stands for the y-intercept. Every straight line can be written this way except a line that stands straight up and down. This way of writing a line is called slope-intercept form, and it is printed on the formula sheet you are given on the test.

Equationm, the slopeb, the y-interceptWhat the line does
y = 2x − 12−1crosses the y-axis at (0, −1), and climbs 2 for every 1 across
y = −x + 3−13crosses at (0, 3), and falls 1 for every 1 across
y = 12x − 212−2crosses at (0, −2), and climbs 1 for every 2 across

The same two numbers in a story

The cab ride on the Tables of Values sheet is a line too: c = 2.5d + 3, where c is the cost in dollars and d is the distance in miles. The letters are different, but the two numbers work the same way. The number at the end, 3, is where the line starts: the cost when the distance is 0, the $3 charged as soon as you get in. The number multiplying d, 2.5, is the slope: the $2.50 added for each mile. In a word problem, the y-intercept is usually a starting amount, and the slope is the amount added for each mile, each hour, or each item.

Watch for these

Six common mistakes

Plotting the numbers in the wrong order. (2, 5) means 2 across and then 5 up. Going 5 across and 2 up plots (5, 2), a different point.
Bending the line to reach a dot. These equations always make a straight line. If one dot is out of the row, go back and work that row of the table again. Do not draw a zigzag.
Stopping at the last dot. The line keeps going. Draw it to the edges of the grid, with an arrow at each end.
Getting the sign of the slope backward. Always read the line from left to right. A line that falls as you read it has a negative slope.
Counting grid lines instead of spaces. From the line at 1 to the line at 3 is 2 units, not 3.
Taking the wrong number for the slope or the y-intercept. In y = 3 − 2x, the two parts are in a different order. The slope is still the number multiplying x, −2, and the y-intercept is the number standing alone, 3.
Practice · Part A

Graph these six lines

These are problems 1, 2, 7, 8, 9 and 10 from the Tables of Values sheet, with the same inputs. If you have done that sheet, copy your answers into the table. If not, fill in the table here. Then plot the points, draw the line, and write down its slope and its y-intercept. When the sheet is printed, each problem has a page of its own.

Part A · problem 1
1.Graph y = x + 4Tables of Values, problem 1
xthe number you put inPut it in and work it outywhat comes out(x, y)the pair
−2
−1
0
1
2
−8−8−7−7−6−6−5−5−4−4−3−3−2−2−1−11122334455667788xy
The slope:
The y-intercept:
Part A · problem 2
2.Graph y = 3x − 2Tables of Values, problem 2
xthe number you put inPut it in and work it outywhat comes out(x, y)the pair
−2
−1
0
1
2
−8−8−7−7−6−6−5−5−4−4−3−3−2−2−1−11122334455667788xy
The slope:
The y-intercept:
Part A · problem 3
3.Graph y = −x + 5Tables of Values, problem 7
xthe number you put inPut it in and work it outywhat comes out(x, y)the pair
−2
−1
0
1
2
−8−8−7−7−6−6−5−5−4−4−3−3−2−2−1−11122334455667788xy
The slope:
The y-intercept:
Part A · problem 4
4.Graph y = 4xTables of Values, problem 8
xthe number you put inPut it in and work it outywhat comes out(x, y)the pair
−2
−1
0
1
2
−8−8−7−7−6−6−5−5−4−4−3−3−2−2−1−11122334455667788xy
The slope:
The y-intercept:
Part A · problem 5
5.Graph y = 13x − 1Tables of Values, problem 9
xthe number you put inPut it in and work it outywhat comes out(x, y)the pair
−6
−3
0
3
6
−8−8−7−7−6−6−5−5−4−4−3−3−2−2−1−11122334455667788xy
The slope:
The y-intercept:
Part A · problem 6
6.Graph y = −2x − 4Tables of Values, problem 10
xthe number you put inPut it in and work it outywhat comes out(x, y)the pair
−2
−1
0
1
2
−8−8−7−7−6−6−5−5−4−4−3−3−2−2−1−11122334455667788xy
The slope:
The y-intercept:
Practice · Part B

The slope and the y-intercept from the equation

For each equation, write the slope and the y-intercept. You do not need to graph these. Two things to keep in mind: when no number is written in front of x, the number is 1; and when nothing is added at the end, the y-intercept is 0.

  1. 7.y = 3x + 2slope y-intercept
  2. 8.y = 5x − 1slope y-intercept
  3. 9.y = −2x + 7slope y-intercept
  4. 10.y = −4x − 3slope y-intercept
  5. 11.y = x + 6slope y-intercept
  6. 12.y = −x − 2slope y-intercept
  7. 13.y = 12x + 4slope y-intercept
  8. 14.y = −23x + 1slope y-intercept
  9. 15.y = 7xslope y-intercept
  10. 16.y = −xslope y-intercept
  11. 17.y = 4slope y-intercept
  12. 18.y = 9 − 2xslope y-intercept
  13. 19.y = −5 + 3xslope y-intercept
  14. 20.y = 0.5x − 1.5slope y-intercept
  15. 21.y = −8slope y-intercept
  16. 22.y = 34xslope y-intercept

Now the other way around

Write the equation of each line in the form y = mx + b.

  1. 23.The slope is 4, and the y-intercept is −1.y =
  2. 24.The slope is −2, and the y-intercept is 5.y =
  3. 25.The slope is 1, and the y-intercept is −3.y =
  4. 26.The slope is 13, and the y-intercept is 0.y =
  5. 27.The slope is −1, and the y-intercept is 2.y =
  6. 28.The slope is 0, and the y-intercept is 6.y =
Practice · Part C

The slope and the y-intercept from a graph

Each line passes through the two points marked on it. First find where the line crosses the y-axis. Then count the run and the rise from the left-hand point to the right-hand point, and divide the rise by the run. Last, put the two numbers into y = mx + b.

29.Read this line.
−6−6−5−5−4−4−3−3−2−2−1−1112233445566xy
The y-intercept:
The slope:
The equation:y =
30.Read this line.
−6−6−5−5−4−4−3−3−2−2−1−1112233445566xy
The y-intercept:
The slope:
The equation:y =
31.Read this line.
−6−6−5−5−4−4−3−3−2−2−1−1112233445566xy
The y-intercept:
The slope:
The equation:y =
32.Read this line.
−6−6−5−5−4−4−3−3−2−2−1−1112233445566xy
The y-intercept:
The slope:
The equation:y =
Part D · A shortcut

Graphing from the slope and the y-intercept

Once you can read the slope and the y-intercept, you do not need a table. The y-intercept gives you one point. The slope tells you how to step from it to the next.

  1. Plot the y-intercept. It is the point (0, b), on the y-axis.
  2. Write the slope as a fraction, rise over run. A whole number is that number over 1: 3 is the same as 31, and −3 is the same as −31.
  3. Step. From the point you plotted, go right by the run, then up by the rise, or down if the rise is negative. Make a dot. Step again from the new dot to make a third.
  4. Draw the line through the dots, to the edges of the grid, with an arrow at each end.
Worked example 4

Graph y = 23x + 1 without a table.

The y-intercept is 1, so plot (0, 1). The slope is 23: a rise of 2 and a run of 3. From (0, 1), go 3 to the right and 2 up. That lands on (3, 3). From there, go 3 right and 2 up again, to (6, 5). You can also step backward, 3 to the left and 2 down, to (−3, −1).

Check one of the new points in the equation: 23(3) + 1 = 2 + 1 = 3. So (3, 3) is on the line.

−7−7−6−6−5−5−4−4−3−3−2−2−1−111223344556677xyright 3up 2(3, 3)(−3, −1)
Start on the y-axis at (0, 1), then step 3 right and 2 up.
Worked example 5 · a negative slope

Graph y = −2x + 3 without a table.

Plot the y-intercept, (0, 3). The slope is −2, which is −21: a rise of −2 and a run of 1. From (0, 3), go 1 to the right and 2 down, to (1, 1). Again: 1 right and 2 down, to (2, −1).

−4−4−3−3−2−2−1−111223344xyright 1down 2
Start at (0, 3), then step 1 right and 2 down, to (1, 1) and then (2, −1).
Part D · problem 33
33.Graph y = 2x − 3without a table
The y-intercept:plot (0, )
The slope, rise over run:
Two more points:(, )(, )
−8−8−7−7−6−6−5−5−4−4−3−3−2−2−1−11122334455667788xy
Part D · problem 34
34.Graph y = −12x + 4without a table
The y-intercept:plot (0, )
The slope, rise over run:
Two more points:(, )(, )
−8−8−7−7−6−6−5−5−4−4−3−3−2−2−1−11122334455667788xy
Part D · problem 35
35.Graph y = 34x − 2without a table
The y-intercept:plot (0, )
The slope, rise over run:
Two more points:(, )(, )
−8−8−7−7−6−6−5−5−4−4−3−3−2−2−1−11122334455667788xy
Part D · problem 36
36.Graph y = −3x + 5without a table
The y-intercept:plot (0, )
The slope, rise over run:
Two more points:(, )(, )
−8−8−7−7−6−6−5−5−4−4−3−3−2−2−1−11122334455667788xy

When you finish

The key shows every table filled in and every line drawn, with the reasoning for the short questions. It prints only while it is open.