Chapter 10 · Relationships between two variables
Equations, Tables and Graphs: Three Views of One Rule
See how an equation, a table and a graph show the same relationship. Build a table and graph, match a line to an equation, and write an equation from a graph.
An equation such as is a two-variable equation. It has two variables, which are letters that stand for numbers. You have met their roles before. Here is the independent variable: the number you choose. And is the dependent variable: the number the equation gives you once you choose .
This equation is a rule. It gives exactly one for each you choose. Choose , and the rule gives . The pair , makes the equation true, because is a true statement.
In this lesson you will show one rule in three ways: as an equation, as a table and as a graph. You will also move from one form to another.
You write a pair of values as an ordered pair . The -value always comes first. So , becomes .
A table lists some of the pairs that make an equation true, one pair in each row.
A graph shows pairs as points on the coordinate plane. This is a grid with a horizontal -axis and a vertical -axis. The axes meet at the origin, the point . The two numbers in an ordered pair are the point's coordinates. To plot , start at the origin, move 2 units right and then 5 units up. The order matters: is a different point, 5 units right and 2 units up.
Key concept
One relationship, three views
An equation, a table and a graph can all describe the same relationship between and .
The graph of an equation is the set of all points whose coordinates make the equation true. A table lists a few of those pairs.
So, inside the part of the plane that a figure shows:
- every point on the graph makes the equation true, and
- every pair that makes the equation true is a point on the graph.
To be sure of a point's coordinates, read it at a gridline intersection. That is a place where two lines of the grid cross, one vertical and one horizontal.
Worked example
From an equation to a table and a graph
Complete a table for using , , and . Then graph the equation on a grid where each square is 1 unit.
Substitute each x-value into the equation. To substitute means to replace a variable with a number. The equation says y is 3 more than x, so add 3 to each x-value.
Write each x with its y as an ordered pair, x first. Each pair makes the equation true, so these four pairs complete the table.
Plot each pair as a point. For (2, 5), start at the origin, move 2 units right and then 5 units up. Every coordinate is a whole number and each square is 1 unit, so every point lands on a gridline intersection.
Draw a straight line through the points. You may do this because x can be any number, not only the four in the table. For an equation that adds the same number to every x, the pairs in between lie on the same straight line. Test one: x = 1 is not in the table. The equation gives y = 4, and the line passes through (1, 4).
Answer
The table holds the pairs , , and . The graph of is the straight line through those points. The table and the figure below show both.
| x | y = x + 3 | Ordered pair (x, y) |
|---|---|---|
Every figure in this lesson uses the same grid. The horizontal axis is the -axis, for the independent variable. The vertical axis is the -axis, for the dependent variable. Each grid square is 1 unit wide and 1 unit tall. The grid shows from 0 to 8 and from 0 to 10.
In the figure above, each row of the table became one point: , , and . The fifth point, , is the test from the last step. It was never in the table, yet it sits on the line.
The test point is on the line for a reason. Every equation in this lesson is one of two kinds: equals plus a fixed number, or equals a fixed number times . A fixed number is one that stays the same for every pair. For both kinds, the pairs that make the equation true lie along one straight line.
So when can be any number and you have plotted two or more points, the straight line through them is the graph. If could only be whole numbers, the graph would be separate points with no line between them.
The line carries on past the edges of the figure, but you can read only the part the figure shows.
Now suppose you have an equation and a figure with more than one line. Which line is the graph of the equation?
Use the key idea: the graph must pass through every point that makes the equation true. So you can test a line in three moves.
- Choose two or more whole-number -values.
- Use the equation to find the for each one. Keep the pairs that fit inside the figure.
- On this 1-unit grid, each whole-number pair sits at a gridline intersection. Does the line pass through it?
A line that misses even one of these points is not the graph of the equation. The figure below shows two lines to test, Line A and Line B.
Worked example
Which line matches the equation?
The figure above shows Line A and Line B on a grid where each square is 1 unit. Which line is the graph of ?
Choose two whole-number x-values and use the equation to find each y. The term 2x means 2 times x. Take x = 0 and x = 4.
The pairs (0, 0) and (4, 8) make the equation true, and both fit inside the figure. So the graph of y = 2x must pass through both points.
Test Line A. At x = 0 it passes through (0, 2), not (0, 0). At x = 4 it passes through (4, 6), not (4, 8). Line A misses points that make the equation true, so it is not the graph.
Test Line B. It passes through both (0, 0) and (4, 8). The graph of y = 2x is a straight line, and only one straight line passes through two different points. So Line B is that graph.
Answer
Line B is the graph of .
You can also go the other way, from a graph to its equation. The plan has three parts.
- Read some points on the line. Use only points at gridline intersections, so both coordinates are exact. Do not guess at a place where the line passes between gridlines.
- List the points in a table. Look for one rule that turns every into its . In this lesson the rule is one of two kinds. An add rule says is plus a fixed number, like for Line A. A multiply rule says is a fixed number times , like for Line B.
- Write the rule as an equation. Make sure it fits every point you read, not just one.
The figure below shows a new line to try. Its name is Line C.
Worked example
From a graph to an equation
The figure above shows Line C on a grid where each square is 1 unit. Write an equation for Line C that gives for each .
Read the marked points. Each one is at a gridline intersection, so its coordinates are exact. For example, one point is 1 unit right of the origin and 3 units up. That point is (1, 3).
Test for an add rule. Suppose y is x plus a fixed number. Then y minus x is that same number at every point, because taking x away from x plus the number leaves only the number. Here the differences change, so this is not an add rule.
Test for a multiply rule. At (1, 3) the fixed number must be 3, because 3 is the only number that gives 3 when you multiply it by 1. Try 3 at the other points. It gives the right y every time. The table after this example shows both tests side by side.
Write the rule as an equation: y is 3 times x. Its graph is a straight line that passes through the points you read. Only one straight line passes through two different points, so that graph is Line C.
Answer
An equation for Line C is .
| x | y | Add test: y minus x | Multiply test: 3 times x |
|---|---|---|---|
An equation, a table and a graph are three views of one relationship. Each pair that makes the equation true can be a row of the table and is a point on the graph.
So you can move between the views. Substitute values of to get pairs, then plot them. Test at least two points to match a straight line to an equation. Read points at gridline intersections, then find the one rule that fits them all.
Next, you will use these links to interpret graphs in word problems and to spot mistakes in graphing.