Graphing Proportional Relationships

Learning goals

  • Test whether a table or graph is proportional, using yx\frac{y}{x} and the origin
  • Write y=kxy = kx from a table, reading kk as the unit rate with its units
  • Plot a proportional table as ordered pairs, and read new values off the line
  • Explain why the points of y=kxy = kx lie on a straight line through the origin
  • Interpret a negative kk, and the inputs a real situation allows

Proportional tables

Here is the walk as a table. Let xx be the number of hours walked and yy the number of miles covered, at a steady 33 miles per hour.

Hours walked, xx0011223344
Miles covered, yy003366991212

Divide each yy by its xx. You get 31=3\frac{3}{1} = 3, 62=3\frac{6}{2} = 3, 93=3\frac{9}{3} = 3 and 124=3\frac{12}{4} = 3: every ratio is the same number. In the language of the ratios chapter, the columns are equivalent ratios of miles to hours. The ratio 6:26 : 2 is 3:13 : 1 scaled by 22, and 12:412 : 4 is 3:13 : 1 scaled by 44.

That is what makes the table proportional. A quantity yy is proportional to a quantity xx when the ratio yx\frac{y}{x} is the same nonzero number for every pair with xx not zero. Any pair with x=0x = 0 must also have y=0y = 0. That shared number is the constant of proportionality, written kk. For the walk, k=3k = 3. This lesson leaves out k=0k = 0, the relationship where yy is always 00.

The clause about x=0x = 0 is there because that column has no ratio to test. The ratio y0\frac{y}{0} has no value, whatever yy is, since division by zero has no answer. What the column must do instead follows from the ratio. If yy is always kk times xx, then an input of 00 gives k×0=0k \times 0 = 0. Zero hours of walking covers zero miles.

So the test for a table has two parts. Divide yy by xx in every column where xx is not 00, and the ratios must all match and not be 00. Any column with x=0x = 0 must have y=0y = 0. If both hold, the table is proportional; if even one ratio differs, or x=0x = 0 gives some other yy, it is not.

The walk passes only because the pace is steady. A walker who stops for lunch covers no miles in that hour, and the ratios stop matching.

Check your understanding

Which table is proportional?

Answer choices

The equation y = kx

Start with one column of the walk. There 62=3\frac{6}{2} = 3, and multiplying both sides by 22 gives 6=3×26 = 3 \times 2: the miles are the rate times the hours. Every other column works the same way, since 9=3×39 = 3 \times 3 and 12=3×412 = 3 \times 4.

In general, every column with xx not zero has yx=k\frac{y}{x} = k. Multiply both sides by xx, the balance move from solving one-step equations, which is safe because xx is not 00:

yx=k⟹y=kx.\frac{y}{x} = k \quad\Longrightarrow\quad y = kx.

The equation also covers the zero column, because k×0=0k \times 0 = 0. So one equation describes the whole table. For the walk it is y=3xy = 3x.

The number kk is the unit rate. Put x=1x = 1 into the equation and you get y=ky = k, so kk is the output for one unit of input: the miles in one hour. That is the unit rate from the rates lesson, and it keeps its units. Write the walk’s constant as k=3k = 3 miles per hour, not as a bare 33. In general the units of kk are the units of yy per unit of xx.

Which quantity you call yy decides which rate kk is. Put hours on top instead and the ratio is 13\frac{1}{3} hour per mile. That is the same relationship read the other way round: the reciprocal rate, with the units reversed. So say which way you are reading it.

The equation answers questions in both directions. To find yy, put in xx and multiply by kk. To find xx, put in yy and solve kx=ykx = y by dividing both sides by kk, which works because kk is not 00.

Worked example 1 From a table to y=kxy = kx, then forward and backward

A pump fills a pool at a steady rate. The table gives the liters yy in the pool after xx minutes.

Minutes, xx225588
Liters, yy30307575120120

Divide each yy by its xx:

302=755=1208=15.\frac{30}{2} = \frac{75}{5} = \frac{120}{8} = 15.

The ratios match, so the table is proportional with k=15k = 15 liters per minute, and y=15xy = 15x.

Forward: after 77 minutes the pool holds y=15×7=105y = 15 \times 7 = 105 liters.

Backward: to reach 300300 liters, solve 15x=30015x = 300. Divide both sides by 1515:

x=300÷15=20.x = 300 \div 15 = 20.

The pool reaches 300300 liters after 2020 minutes. Check it: 15×20=30015 \times 20 = 300.

Check your understanding

A table for a steady bike ride shows 3636 kilometers after 22 hours and 9090 kilometers after 55 hours. Which equation and unit rate fit it?

Answer choices

Plotting a proportional table

Each column of a table is an ordered pair (x,y)(x, y). The walk gives (0,0)(0, 0), (1,3)(1, 3), (2,6)(2, 6), (3,9)(3, 9) and (4,12)(4, 12). Plot them with hours across and miles up.

A proportional table plotted: the walk at 3 miles per hourFive points from the walk’s table, (0, 0), (1, 3), (2, 6), (3, 9) and (4, 12), sit on a straight line drawn from the origin to (5, 15). A dashed staircase runs from point to point, each step 1 hour across and 3 miles up, and one step is labeled 1 across and 3 up.miles walked, yhours walked, x01234536912151 across3 up(1, 3)(2, 6)(3, 9)(4, 12)
The walk at 3 miles per hour. Its points lie on one straight line that starts at the origin, and each step from one point to the next is 1 across and 3 up. The line is drawn only from 0 hours up, because the walk has no negative times.

The points line up exactly, and the line through them passes through the origin. Look at the step from each point to the next: it is 11 across and 33 up every time. That step is the unit rate drawn on the grid, one hour across and the 33 miles walked in it up.

Once you have the line, you can read values that were never in the table. Halfway between 22 and 33 hours, at x=2.5x = 2.5, the line sits at 7.57.5 miles, and the equation agrees: 3×2.5=7.53 \times 2.5 = 7.5. When a reading falls between gridlines, the equation gives the exact value and the picture gives a check.

Worked example 2 Find kk from one point on the graph

A straight line through the origin shows the cost yy, in dollars, of xx kilograms of rice. The line passes through the point (4,6)(4, 6). Find the equation, and the cost of 1010 kilograms.

The origin cannot give kk, because 00\frac{0}{0} has no value. Use the other point, which says 44 kilograms cost 66 dollars:

k=64=1.5.k = \frac{6}{4} = 1.5.

So rice costs 1.51.5 dollars per kilogram, and y=1.5xy = 1.5x. As a check, the line should pass through (1,1.5)(1, 1.5), because one kilogram costs the unit rate.

For 1010 kilograms, y=1.5×10=15y = 1.5 \times 10 = 15, so 1010 kilograms cost 1515 dollars.

Why the points line up through the origin

The walk’s points lined up, but that was one table. The claim is that this happens for every proportional relationship, whatever its kk, and that the line always passes through the origin.

Why the points of y=kxy = kx lie on a straight line through the origin#

Take y=4xy = 4x as the example. Put in x=0x = 0 and you get y=4×0=0y = 4 \times 0 = 0, so the graph contains the origin. Every proportional graph does, because k×0=0k \times 0 = 0 whatever kk is.

Now take the point for x=1x = 1, which is (1,4)(1, 4). To reach it from the origin you go 11 across and 44 up. Call that one trip. The point for x=2x = 2 is (2,8)(2, 8), which is two trips in a row. The second trip starts where the first ended and heads in exactly the same direction, so the path does not bend at (1,4)(1, 4). The point for x=3x = 3 is (3,12)(3, 12), three trips in a row, still with no bend.

Fractions of a trip work the same way. Half a trip is 0.50.5 across and 22 up, which reaches (0.5,2)(0.5, 2), halfway along the first trip. A negative input runs the trip backward: x=−1x = -1 gives (−1,−4)(-1, -4), which continues the same straight path on the other side of the origin. So every point of y=4xy = 4x lies on the one straight line through the origin and (1,4)(1, 4).

Nothing here depended on the number 44. For any kk, the point for x=1x = 1 is (1,k)(1, k), one trip of 11 across and kk up. The point for any other xx is (x,kx)(x, kx): xx across, and kk times xx up, which is xx of those trips laid end to end. When xx is a fraction it is part of a trip, and when xx is negative the trip runs backward. Either way the point lies on the straight line through the origin and (1,k)(1, k). A negative kk changes nothing in the argument: the trip goes down instead of up.

It works the other way too. Every point of that line is some number of trips from the origin: a whole number, a fraction, or a negative number of them. A point tt trips along is (t,kt)(t, kt), which is the point of y=kxy = kx for x=tx = t. So the graph of y=kxy = kx is the whole line, not just some points on it.

The reverse is also true, and it is what lets you test a graph by eye. Take the straight line through the origin and the point (2,6)(2, 6). The ratio at that point is 62=3\frac{6}{2} = 3. The proof above shows that the points of y=3xy = 3x lie on one straight line. That line passes through the origin and through (2,6)(2, 6), since 3×2=63 \times 2 = 6. Only one straight line passes through two given points, so the line we started with is the graph of y=3xy = 3x.

The same argument works for any straight line through the origin, other than an axis. Pick a point on it other than the origin, and call the ratio yx\frac{y}{x} there kk. The graph of y=kxy = kx is a straight line through the origin and that point. Only one straight line passes through both, so the line is y=kxy = kx. The vertical axis is the exception, because every point on it has x=0x = 0 and no ratio yx\frac{y}{x} exists. The horizontal axis is left out too, because its kk would be 00.

Check your understanding

A proportional relationship has the point (5,8)(5, 8) on its graph. Which other point must also be on it?

Answer choices

Steepness and the sign of k

Every line y=kxy = kx passes through the origin and through (1,k)(1, k). Between two positive values of kk, the larger one puts that second point higher. Its line climbs more for each step across, so it is steeper. A walk at 33 miles per hour leaves a steeper trail than a walk at 22. For a positive kk, steepness on these graphs is the unit rate.

The rate can also be negative. Then yy goes down as xx goes up. The line y=−2xy = -2x passes through (1,−2)(1, -2). From the origin, each step of 11 across goes 22 down, so the line falls from left to right. The ratio yx\frac{y}{x} is still the same at every point except the origin: −21\frac{-2}{1}, −42\frac{-4}{2} and 6−3\frac{6}{-3} all equal −2-2.

So the sign of kk gives the direction, rising for a positive kk and falling for a negative one. The size of kk, its absolute value, gives the steepness. The lines y=2xy = 2x and y=−2xy = -2x are equally steep, tilted opposite ways.

The size of k sets the steepness, the sign sets the directionThree lines cross at the origin. The blue line y = 2x rises steeply and passes through (1, 2). A thinner line y = 0.5x rises gently and passes through (1, 0.5). A red dashed line y = -2x falls just as steeply as y = 2x rises and passes through (1, -2).xy-4-212442-2-4(1, 2)(1, 0.5)(1, -2)y = 2xy = 0.5xy = -2x
Three lines through the origin, each passing through its own point (1, k). Steepness follows the size of k, and the sign of k decides whether the line rises or falls from left to right.

Worked example 3 A negative rate: the temperature falls

From noon the temperature falls at a steady 33 degrees per hour. Let xx be the hours after noon and yy the change in temperature since noon, in degrees. Find the equation, the change by 55 p.m., and the temperature then if it was 1010 degrees at noon.

After 11 hour the change is −3-3, after 22 hours it is −6-6, and after 44 hours it is −12-12. Divide each change by its hours:

−31=−62=−124=−3.\frac{-3}{1} = \frac{-6}{2} = \frac{-12}{4} = -3.

So k=−3k = -3 degrees per hour and y=−3xy = -3x. Its graph falls through the origin, and for times after noon the points sit below the x-axis, in Quadrant IV.

By 55 p.m., x=5x = 5, so the change is y=−3×5=−15y = -3 \times 5 = -15 degrees. The temperature is then 10+(−15)=−510 + (-15) = -5 degrees.

Notice what is proportional here. The change in temperature is proportional to time, because it is 00 at noon. The temperature itself is not: it is 1010 at noon, where a proportional quantity would have to be 00.

Proportional or not?

A relationship can fail to be proportional in two different ways, and each shows up on the graph.

Take a bike rental that charges a 44-dollar fee plus 22 dollars per hour. One hour costs 66 dollars, two cost 88, three cost 1010 and four cost 1212. The cost goes up by the same 22 dollars every hour, but the ratios are 66, 44, 103\frac{10}{3} and 33, which do not match. On the graph the points lie on a straight line, but the line meets the y-axis at (0,4)(0, 4), the fee, instead of at the origin.

Now take the area of a square: side 11 gives area 11, side 22 gives 44, side 33 gives 99. Here the ratios are 11, 22 and 33. The graph does start at the origin, since a square with side 00 has no area. But the points bend upward instead of lying on a straight line.

Straight is not enough, and through the origin is not enoughLeft panel, titled straight but misses the origin: the proportional line y = 2x in blue passes through the origin and rises 2 for each 1 across; the bike rental’s cost line, labeled 4 dollars plus 2 per hour, in red dashes rises just as steeply but starts at (0, 4). Right panel, titled through the origin but curved: the points (0, 0), (1, 1), (2, 4) and (3, 9) for a square’s area lie on a red dashed curve that bends upward.Straight, but misses the originThrough the origin, but curved12344812123369y = 2xrental: 4 dollars + 2 per hour(0, 4)(1, 1)(2, 4)(3, 9)square’s area
Two relationships that are not proportional. Left: the bike rental's points lie on a straight line, but it meets the y-axis at the 4-dollar fee, not at the origin; the proportional line y = 2x is shown beside it. Right: a square's area starts at the origin, but its points curve upward.

So the graph test has two parts. The points must lie on a straight line, and that line must pass through the origin (and not be either axis). Neither part is enough alone: the rental passes the first and fails the second, and the square passes the second and fails the first. In a table, the same two failures show up as ratios that do not match.

Worked example 4 Two data plans: equal steps are not enough

Two phone plans charge by the gigabyte of data used in a month.

Gigabytes, xx112255
Plan A, dollars8816164040
Plan B, dollars101016163434

Assume each plan charges a fixed amount for every extra gigabyte, so the pattern in the table holds between and beyond its columns.

Plan A: divide each cost by its gigabytes.

81=162=405=8.\frac{8}{1} = \frac{16}{2} = \frac{40}{5} = 8.

The ratios match, so Plan A is proportional, with y=8xy = 8x and k=8k = 8 dollars per gigabyte.

Plan B: the first two columns already disagree.

101=10,162=8.\frac{10}{1} = 10, \qquad \frac{16}{2} = 8.

The third gives 345=6.8\frac{34}{5} = 6.8, so Plan B is not proportional, even though each extra gigabyte adds the same 66 dollars. Run that pattern back one gigabyte, from 11 to 00, and the cost drops from 1010 to 44. Plan B charges 44 dollars for using no data at all, a monthly fee, and its graph meets the y-axis at (0,4)(0, 4).

Check your understanding

A straight line passes through (0,2)(0, 2) and (3,8)(3, 8). Is it the graph of a proportional relationship?

Answer choices

What the situation allows

The equation y=2xy = 2x makes sense for every xx: negatives, fractions and decimals included. Its full graph is a straight line through the origin, running in both directions. A real situation usually allows only some of those inputs, and its graph keeps only that part of the line.

Pencils at a fixed 22 dollars each, with no bulk discount, follow y=2xy = 2x. You can buy 00, 11, 22 or 33 pencils, but not 2.52.5 of one or −1-1. So the graph of the pencil situation is a row of separate dots at whole-number values of xx. Every one of them sits on the line y=2xy = 2x.

A walk at a steady 22 miles per hour also follows y=2xy = 2x. But a walk can last any length of time from 00 up, 1.51.5 hours included. Its graph is a solid piece of the line, starting at the origin and running to the right. Negative times make no sense, so the left half of the line is not part of it. A situation can also stop: a 33-hour walk ends at the point (3,6)(3, 6).

Dots or a solid line: it depends on the allowed inputsLeft panel: dots at (0, 0), (1, 2), (2, 4), (3, 6), (4, 8) and (5, 10) for whole numbers of pencils, with a faint dashed guide line through them that is not part of the graph. Right panel: a solid line from the origin to (5, 10) for a walk at 2 miles per hour, covering every time from 0 to 5 hours.Pencils (x) and dollars (y)Hours walked (x) and miles (y)1234524681012345246810
The same equation, y = 2x, with two different sets of allowed inputs. Pencils come in whole numbers, so their graph is separate dots on the line. A walk can last any time from 0 up, so its graph is a solid piece of the line starting at the origin.

Check your understanding

A diver descends at a steady rate. For the first 1010 seconds, her change in height is y=−2xy = -2x meters after xx seconds. Which point is on the graph of this situation?

Answer choices

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Core practice

Practice problems at the level of the course, to be worked out on paper. Hints one at a time, then the answer or the full worked solution, with your progress kept in this browser.

Core practice Work it out on paper 10 problems Start →
More practice (optional)

Extra sets, as hard as the Challenge set. Each one opens on its own page.

More resources (optional)

Other explanations of this lesson, if you want a second take.

A bit of history (optional)

How do you draw something that keeps changing, like a speed?

In the 1350s a teacher named Nicole Oresme tried a picture. He worked in Paris, the capital of France. He drew a flat line to stand for time. At each moment along it he stood an upright line, and its height showed the speed at that moment. A steady speed gave uprights of equal height, so their tops made a flat edge.

Then he pictured a speed that starts at nothing and grows by the same amount in every equal stretch of time. The first upright had no height at all. Each one after it rose above the last by the same step. Their tops formed a straight, slanted edge, rising from the very start of the time line.

Oresme had no coordinate plane, and he wrote no equations. But his slanted edge is the trail this lesson drew. A speed proportional to time leaves a straight line that starts at the origin. Its steepness is how quickly the speed grows.

Your progress

See all your progress →