Chapter 10 · Relationships between two variables
Interpret and Check Graphs of Relationships
Read what points on a graph mean in a real situation, connect a graph to its table and equation, and find mistakes by testing points.
A variable is a letter that stands for a quantity that can change. Many situations have two variables that change together, such as the time you walk and the distance you cover. A graph shows a relationship like that as points on a coordinate plane, which is a grid with a horizontal axis and a vertical axis.
Each point is an ordered pair : two numbers in a fixed order, called the point's coordinates. The first number, , is read on the horizontal axis. The second number, , is read on the vertical axis.
In this lesson you will use graphs in three ways. You will say what a graph means in a real situation, connect a graph to a table and an equation, and find mistakes in a graph.
Start with a hike. Maya walks along a trail at a steady pace. Let be the time she has walked, in hours. Let be the distance she has walked, in miles. The distance depends on the time, so time is called the independent variable and distance is called the dependent variable.
In the figure below, the horizontal axis shows in hours and the vertical axis shows in miles. The grid lines are 1 unit apart, and the figure shows 0 to 10 on both axes. Check that spacing first whenever you read a graph, because it tells you what each grid line is worth.
Line A is the graph of the hike in that part of the plane. Point A and Point B are two points on Line A. Each one sits where two grid lines cross, so you can read its coordinates exactly.
Worked example
Reading the graph of a hike
Line A shows Maya's hike. is the time she has walked, in hours, and is the distance she has walked, in miles. (a) What does Point A mean? (b) How far has Maya walked after 4 hours? (c) How many miles does she walk each hour?
Match each coordinate to its axis and its unit. The first coordinate is read on the horizontal axis, which shows time in hours. The second coordinate is read on the vertical axis, which shows distance in miles.
Answer (a). Point A sits where the grid line at 3 on the horizontal axis crosses the grid line at 6 on the vertical axis. So x is 3 and y is 6, which means 3 hours and 6 miles.
Answer (b). The question gives a time, so start at 4 on the horizontal axis. Go straight up to Line A. You reach Point B, which is level with 8 on the vertical axis. Point B is on a crossing of grid lines, so the reading is exact.
Answer (c). Compare Point A and Point B. The time goes up by 1 hour and the distance goes up by 2 miles.
Check that this pace fits the whole line. Line A is straight, so each 1-hour step to the right rises by the same 2 miles. Line A also passes through the point (0, 0), where the two axes meet, which means 0 miles at 0 hours. Three hours at 2 miles each hour gives 6 miles, and that is Point A.
Answer
Point A means that after 3 hours Maya has walked 6 miles. After 4 hours she has walked 8 miles. She walks 2 miles each hour.
Maya's hike can be shown in two more ways. An equation is a statement that two expressions are equal. Here it tells how to get the dependent variable, , from the independent variable, . Maya walks 2 miles each hour, so the distance is 2 times the time. The equation is , where means .
A table lists some of the pairs. In the table below, each row is one ordered pair, so each row is one point on Line A. Every one of these points sits where two grid lines cross. The last column puts the row's into and shows that the result equals the row's .
| Time x (hours) | Distance y (miles) | Point on Line A | Check: 2x equals y |
|---|---|---|---|
Any of the three views can answer a question about the hike. Try this one: how long does Maya take to walk 8 miles?
- Graph: start at 8 on the vertical axis and go straight across to Line A. You meet it at Point B. Go straight down to 4 on the horizontal axis.
- Table: find the row where is 8. Its is 4.
- Equation: replace with 8 to get . Division undoes multiplication, so divide both sides by 2. Dividing both sides by the same nonzero number keeps them equal. Since and , you get .
All three give 4 hours, because all three describe the same relationship.
Key concept
One relationship, three views
An equation, a table and a graph can all show one relationship between two variables. The equation is the rule that every pair follows. The graph shows the pairs that fit in the part of the plane that is drawn. The table lists a few of them.
A pair is on the graph of an equation exactly when it makes the equation true. So you can test any table row or plotted point: put its and into the equation and see whether both sides are equal. If they are, the pair belongs. If they are not, it does not.
In a real situation, use only values that make sense there, such as times that are not negative.
Now use that test to match an equation to a table and a graph. This time there is no story: and are two variables that stand for plain numbers with no units. The table below lists three pairs of their values. In the figure after it, the horizontal axis shows , the vertical axis shows , and the grid lines are 1 unit apart. The three pairs are plotted, which means marked as points on the plane. Each point is labeled with its coordinates, and Line B passes through all three.
| x | y |
|---|---|
Worked example
Which equation matches?
The table and Line B show the same three pairs. Which equation matches them: or ?
Connect the table to the graph. Each row is an ordered pair (x, y), so the rows are the points (2, 4), (4, 6) and (6, 8). In the figure, each one is a labeled point where two grid lines cross, and Line B passes through all three.
Test the first pair, (2, 4), in both equations. Replace x with 2 and see whether the result equals the value of y, which is 4. Both equations give 4, so this one pair cannot decide between them.
Test a different pair, (4, 6), in y = 2x. Replace x with 4. The result is 8, but the table and the graph both say y is 6. So y = 2x does not match.
Test (4, 6) and (6, 8) in y = x + 2. Each result equals the value of y in its pair, so all three pairs make this equation true.
Say why this settles it. Line B is straight, and the graph of y = x + 2 is also a straight line. Only one straight line passes through two different points. Both lines pass through (2, 4) and (4, 6), so Line B is the graph of y = x + 2.
Answer
The equation matches the table and Line B. Of the three pairs, only makes true, so does not match.
When you graph an equation by hand, you work along a chain. The equation gives a table, the table gives points, and the points guide the line. A mistake breaks one link of the chain. To find it, check the links in order.
- Equation to table. Put each into the equation. The result must equal the in the same row.
- Table to points. Each row must be plotted at on the horizontal axis and on the vertical axis.
- Points to line. When the graph of the equation is a straight line, as it is for every equation in this lesson, the points must all lie on one straight line, and the line you draw must pass through every one of them.
The first link that fails shows where a mistake was made.
The figure below shows a student's graph to check. Its horizontal axis shows , its vertical axis shows , and its grid lines are 1 unit apart.
Worked example
Find the mistake in a graph
Priya graphs . Her table has the rows , , and . The figure shows the four points she plotted. Only three of them lie on one straight line, Line C. Find her mistake and fix it.
Check equation to table. Put each x from the table into x + 3. Every result equals the y in its row, so the table is correct.
Check table to points. Look for each row among the plotted points. The rows (1, 4), (4, 7) and (6, 9) each have a point. The row (2, 5) has no point, and the plot has a point at (5, 2) that is not a row of the table.
Name the mistake. The point (5, 2) uses the numbers of the row (2, 5) in the opposite order. Priya put 5 on the horizontal axis and 2 on the vertical axis, so she swapped x and y.
Confirm with the equation. Put x = 5 into x + 3. The result is 8, not 2, so (5, 2) does not make the equation true and is not on its graph.
Fix it. Plot the row (2, 5) at 2 on the horizontal axis and 5 on the vertical axis. Line C is the straight line through her correct points (1, 4) and (4, 7), so it is the graph of y = x + 3. The pair (2, 5) makes the equation true, so it lies on Line C.
Answer
Priya swapped the coordinates of the row and plotted instead. The correct point is , which lies on Line C with her other three points.
Here is the idea to keep. An equation, a table and a graph are three views of one relationship. Each point on the graph of a real situation tells a small story: its first number is the value on the horizontal axis, its second number is the value on the vertical axis, and each comes with its unit. To connect the views or to check a graph, test pairs. A pair belongs only if it makes the equation true. When a graph has a mistake, check the chain from equation to table to points to line, and look for the first link that breaks.