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.
Graphing a line from a table
- Make a table of values with at least three rows. Five is better. Use small numbers for x, and include 0.
- 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.
- 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.
- 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.
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.
Three lines, start to finish
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 in | Put it in and work it out | ywhat comes out | (x, y)the pair |
|---|---|---|---|
| −2 | 2(−2) − 1 = −4 − 1 = −5 | −5 | (−2, −5) |
| −1 | 2(−1) − 1 = −2 − 1 = −3 | −3 | (−1, −3) |
| 0 | 2(0) − 1 = 0 − 1 = −1 | −1 | (0, −1) |
| 1 | 2(1) − 1 = 2 − 1 = 1 | 1 | (1, 1) |
| 2 | 2(2) − 1 = 4 − 1 = 3 | 3 | (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.
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 in | Put it in and work it out | ywhat comes out | (x, y)the pair |
|---|---|---|---|
| −2 | −(−2) + 3 = 2 + 3 = 5 | 5 | (−2, 5) |
| −1 | −(−1) + 3 = 1 + 3 = 4 | 4 | (−1, 4) |
| 0 | −(0) + 3 = 0 + 3 = 3 | 3 | (0, 3) |
| 1 | −(1) + 3 = −1 + 3 = 2 | 2 | (1, 2) |
| 2 | −(2) + 3 = −2 + 3 = 1 | 1 | (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.
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 in | Put it in and work it out | ywhat comes out | (x, y)the pair |
|---|---|---|---|
| −4 | 12(−4) − 2 = −2 − 2 = −4 | −4 | (−4, −4) |
| −2 | 12(−2) − 2 = −1 − 2 = −3 | −3 | (−2, −3) |
| 0 | 12(0) − 2 = 0 − 2 = −2 | −2 | (0, −2) |
| 2 | 12(2) − 2 = 1 − 2 = −1 | −1 | (2, −1) |
| 4 | 12(4) − 2 = 2 − 2 = 0 | 0 | (4, 0) |
The line. This line climbs, but slowly: 1 unit up for every 2 units across.
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.
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.
| Equation | m, the slope | b, the y-intercept | What the line does |
|---|---|---|---|
| y = 2x − 1 | 2 | −1 | crosses the y-axis at (0, −1), and climbs 2 for every 1 across |
| y = −x + 3 | −1 | 3 | crosses at (0, 3), and falls 1 for every 1 across |
| y = 12x − 2 | 12 | −2 | crosses 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.
Six common mistakes
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.
| xthe number you put in | Put it in and work it out | ywhat comes out | (x, y)the pair |
|---|---|---|---|
| −2 | |||
| −1 | |||
| 0 | |||
| 1 | |||
| 2 |
| xthe number you put in | Put it in and work it out | ywhat comes out | (x, y)the pair |
|---|---|---|---|
| −2 | |||
| −1 | |||
| 0 | |||
| 1 | |||
| 2 |
| xthe number you put in | Put it in and work it out | ywhat comes out | (x, y)the pair |
|---|---|---|---|
| −2 | |||
| −1 | |||
| 0 | |||
| 1 | |||
| 2 |
| xthe number you put in | Put it in and work it out | ywhat comes out | (x, y)the pair |
|---|---|---|---|
| −2 | |||
| −1 | |||
| 0 | |||
| 1 | |||
| 2 |
| xthe number you put in | Put it in and work it out | ywhat comes out | (x, y)the pair |
|---|---|---|---|
| −6 | |||
| −3 | |||
| 0 | |||
| 3 | |||
| 6 |
| xthe number you put in | Put it in and work it out | ywhat comes out | (x, y)the pair |
|---|---|---|---|
| −2 | |||
| −1 | |||
| 0 | |||
| 1 | |||
| 2 |
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.
- 7.y = 3x + 2slope y-intercept
- 8.y = 5x − 1slope y-intercept
- 9.y = −2x + 7slope y-intercept
- 10.y = −4x − 3slope y-intercept
- 11.y = x + 6slope y-intercept
- 12.y = −x − 2slope y-intercept
- 13.y = 12x + 4slope y-intercept
- 14.y = −23x + 1slope y-intercept
- 15.y = 7xslope y-intercept
- 16.y = −xslope y-intercept
- 17.y = 4slope y-intercept
- 18.y = 9 − 2xslope y-intercept
- 19.y = −5 + 3xslope y-intercept
- 20.y = 0.5x − 1.5slope y-intercept
- 21.y = −8slope y-intercept
- 22.y = 34xslope y-intercept
Now the other way around
Write the equation of each line in the form y = mx + b.
- 23.The slope is 4, and the y-intercept is −1.y =
- 24.The slope is −2, and the y-intercept is 5.y =
- 25.The slope is 1, and the y-intercept is −3.y =
- 26.The slope is 13, and the y-intercept is 0.y =
- 27.The slope is −1, and the y-intercept is 2.y =
- 28.The slope is 0, and the y-intercept is 6.y =
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.
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.
- Plot the y-intercept. It is the point (0, b), on the y-axis.
- 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.
- 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.
- Draw the line through the dots, to the edges of the grid, with an arrow at each end.
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.
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).
When you finish
- Next: Graphing with the Intercepts, the third worksheet. It shows another quick way to draw a line: find the two places where it crosses the axes.
- Then: Lesson-Quiz 42: Room for Both. It puts the slope to work in word problems, shows the other ways a line can be written, and ends with ten questions and an answer key.
- For quick practice on screen: Drill 13.03, the slope and y-intercept from y = mx + b, and Drill 13.10, graph a line from its equation. Each one gives you ten new problems every time you open it.
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.
Part A: the tables and the lines
1.y = x + 4
| xthe number you put in | Put it in and work it out | ywhat comes out | (x, y)the pair |
|---|---|---|---|
| −2 | −2 + 4 = 2 | 2 | (−2, 2) |
| −1 | −1 + 4 = 3 | 3 | (−1, 3) |
| 0 | 0 + 4 = 4 | 4 | (0, 4) |
| 1 | 1 + 4 = 5 | 5 | (1, 5) |
| 2 | 2 + 4 = 6 | 6 | (2, 6) |
Slope 1. In the table, each time x goes up by 1, y goes up by 1.
y-intercept 4. The row where x is 0 gives the point (0, 4), where the line crosses the y-axis.
2.y = 3x − 2
| xthe number you put in | Put it in and work it out | ywhat comes out | (x, y)the pair |
|---|---|---|---|
| −2 | 3(−2) − 2 = −6 − 2 = −8 | −8 | (−2, −8) |
| −1 | 3(−1) − 2 = −3 − 2 = −5 | −5 | (−1, −5) |
| 0 | 3(0) − 2 = 0 − 2 = −2 | −2 | (0, −2) |
| 1 | 3(1) − 2 = 3 − 2 = 1 | 1 | (1, 1) |
| 2 | 3(2) − 2 = 6 − 2 = 4 | 4 | (2, 4) |
Slope 3. In the table, each time x goes up by 1, y goes up by 3.
y-intercept −2. The row where x is 0 gives the point (0, −2), where the line crosses the y-axis.
3.y = −x + 5
| xthe number you put in | Put it in and work it out | ywhat comes out | (x, y)the pair |
|---|---|---|---|
| −2 | −(−2) + 5 = 2 + 5 = 7 | 7 | (−2, 7) |
| −1 | −(−1) + 5 = 1 + 5 = 6 | 6 | (−1, 6) |
| 0 | −(0) + 5 = 0 + 5 = 5 | 5 | (0, 5) |
| 1 | −(1) + 5 = −1 + 5 = 4 | 4 | (1, 4) |
| 2 | −(2) + 5 = −2 + 5 = 3 | 3 | (2, 3) |
Slope −1. In the table, each time x goes up by 1, y goes down by 1.
y-intercept 5. The row where x is 0 gives the point (0, 5), where the line crosses the y-axis.
4.y = 4x
| xthe number you put in | Put it in and work it out | ywhat comes out | (x, y)the pair |
|---|---|---|---|
| −2 | 4(−2) = −8 | −8 | (−2, −8) |
| −1 | 4(−1) = −4 | −4 | (−1, −4) |
| 0 | 4(0) = 0 | 0 | (0, 0) |
| 1 | 4(1) = 4 | 4 | (1, 4) |
| 2 | 4(2) = 8 | 8 | (2, 8) |
Slope 4. In the table, each time x goes up by 1, y goes up by 4.
y-intercept 0. The row where x is 0 gives the point (0, 0), where the line crosses the y-axis.
5.y = 13x − 1
| xthe number you put in | Put it in and work it out | ywhat comes out | (x, y)the pair |
|---|---|---|---|
| −6 | 13(−6) − 1 = −2 − 1 = −3 | −3 | (−6, −3) |
| −3 | 13(−3) − 1 = −1 − 1 = −2 | −2 | (−3, −2) |
| 0 | 13(0) − 1 = 0 − 1 = −1 | −1 | (0, −1) |
| 3 | 13(3) − 1 = 1 − 1 = 0 | 0 | (3, 0) |
| 6 | 13(6) − 1 = 2 − 1 = 1 | 1 | (6, 1) |
Slope 13. In the table, x goes up by 3 on each row and y goes up by 1, so the slope is 1 ÷ 3 = 13.
y-intercept −1. The row where x is 0 gives the point (0, −1), where the line crosses the y-axis.
6.y = −2x − 4
| xthe number you put in | Put it in and work it out | ywhat comes out | (x, y)the pair |
|---|---|---|---|
| −2 | −2(−2) − 4 = 4 − 4 = 0 | 0 | (−2, 0) |
| −1 | −2(−1) − 4 = 2 − 4 = −2 | −2 | (−1, −2) |
| 0 | −2(0) − 4 = 0 − 4 = −4 | −4 | (0, −4) |
| 1 | −2(1) − 4 = −2 − 4 = −6 | −6 | (1, −6) |
| 2 | −2(2) − 4 = −4 − 4 = −8 | −8 | (2, −8) |
Slope −2. In the table, each time x goes up by 1, y goes down by 2.
y-intercept −4. The row where x is 0 gives the point (0, −4), where the line crosses the y-axis.
Part B: reading the equation
- 7.y = 3x + 2: slope 3, y-intercept 2
- 8.y = 5x − 1: slope 5, y-intercept −1
- 9.y = −2x + 7: slope −2, y-intercept 7
- 10.y = −4x − 3: slope −4, y-intercept −3
- 11.y = x + 6: slope 1, y-intercept 6No number is written in front of x, so the number is 1.
- 12.y = −x − 2: slope −1, y-intercept −2−x means −1 times x.
- 13.y = 12x + 4: slope 12, y-intercept 4
- 14.y = −23x + 1: slope −23, y-intercept 1The minus sign belongs to the fraction.
- 15.y = 7x: slope 7, y-intercept 0Nothing is added at the end, so the y-intercept is 0. The line passes through the origin, (0, 0).
- 16.y = −x: slope −1, y-intercept 0−x means −1 times x, and nothing is added at the end.
- 17.y = 4: slope 0, y-intercept 4There is no x at all, so y is 4 whatever x is. The line is flat, and a flat line has a slope of 0.
- 18.y = 9 − 2x: slope −2, y-intercept 9The parts are in a different order. The slope is the number multiplying x, with its sign.
- 19.y = −5 + 3x: slope 3, y-intercept −5The parts are in a different order. The number standing alone is the y-intercept.
- 20.y = 0.5x − 1.5: slope 0.5, y-intercept −1.5Decimals work the same way. 0.5 is one half.
- 21.y = −8: slope 0, y-intercept −8A flat line, crossing the y-axis at (0, −8).
- 22.y = 34x: slope 34, y-intercept 0Nothing is added at the end, so the y-intercept is 0.
- 23.y = 4x − 1
- 24.y = −2x + 5
- 25.y = x − 3A slope of 1 is written as just x, with no 1 in front.
- 26.y = 13xA y-intercept of 0 adds nothing, so nothing is written at the end.
- 27.y = −x + 2A slope of −1 is written −x.
- 28.y = 6A slope of 0 makes the x part 0x, which is 0. The line is flat.
Part C: reading the graph
- 29.y = 2x + 1. The line crosses the y-axis at (0, 1). From (−1, −1) to (2, 5) the run is 3 and the rise is 6, so the slope is 6 ÷ 3 = 2.
- 30.y = −x + 4. The line crosses the y-axis at (0, 4). From (−1, 5) to (3, 1) the run is 4 and the rise is −4, so the slope is −4 ÷ 4 = −1.
- 31.y = 13x − 3. The line crosses the y-axis at (0, −3). From (−3, −4) to (3, −2) the run is 6 and the rise is 2, so the slope is 2 ÷ 6 = 13.
- 32.y = −32x + 2. The line crosses the y-axis at (0, 2). From (−2, 5) to (2, −1) the run is 4 and the rise is −6, so the slope is −6 ÷ 4 = −32.
Part D: from the slope and the y-intercept
33.y = 2x − 3
Start at (0, −3). The slope is 2, which is 21: go 1 right and 2 up. That gives (1, −1) and then (2, 1). Stepping backward gives (−1, −5).
34.y = −12x + 4
Start at (0, 4). The slope is −12: a rise of −1 and a run of 2. Go 2 right and 1 down. That gives (2, 3) and then (4, 2). Stepping backward gives (−2, 5).
35.y = 34x − 2
Start at (0, −2). The slope is 34: a rise of 3 and a run of 4. Go 4 right and 3 up. That gives (4, 1) and then (8, 4). Stepping backward gives (−4, −5).
36.y = −3x + 5
Start at (0, 5). The slope is −3, which is −31: go 1 right and 3 down. That gives (1, 2) and then (2, −1). Stepping backward gives (−1, 8).