Representing Linear Relations
A linear relation can be shown as a real situation, a table of values, a graph, or an equation. They all tell the same story, just in different languages. This page shows you how to move between them, and how to find the two numbers that describe every linear relation: the rate of change and the initial value.
Key ideas
Section titled “Key ideas”One relation, four representations
Section titled “One relation, four representations”Here’s a taxi fare: $4 to start, plus $2 for every kilometre.
Table of values. Let be the distance in kilometres and the cost in dollars.
| (km) | ||||||
|---|---|---|---|---|---|---|
| (dollars) |
Equation. Start with , then add for each kilometre:
Graph. Plot the points from the table and join them with a straight line (the blue line in the figure below). It’s a line because the cost goes up by the same amount every kilometre.
Rate of change
Section titled “Rate of change”The rate of change is how much changes when goes up by . For the taxi it’s $2 per kilometre. You can find it in every representation:
| Representation | Where to find the rate of change | Taxi |
|---|---|---|
| situation | the amount “per” or “for each” | $2 per km |
| table | the first difference (when goes up by ) | |
| graph | the slope, | |
| equation | the number multiplying | the in |
A rate of change has units: here it’s dollars per kilometre. If it’s negative, the relation goes down as goes up. (For more on slope, including a formula for any two points, see equations of lines.)
Initial value
Section titled “Initial value”The initial value is the value of when . It’s where the relation starts.
| Representation | Where to find the initial value | Taxi |
|---|---|---|
| situation | the starting amount or fixed fee | $4 to start |
| table | the -value in the column | |
| graph | the -intercept (where the line crosses the -axis) | |
| equation | the number added on | the in |
The equation y = mx + b
Section titled “The equation y = mx + b”Every linear relation can be written as
where is the rate of change (the slope) and is the initial value (the -intercept). The Grade 9 curriculum also writes this as ; the letters are different but the idea is the same.
In real situations we often use letters that remind us what they stand for, like for cost and for distance.
Direct and partial variation
Section titled “Direct and partial variation”- Direct variation: the initial value is , so the equation is . The graph goes through the origin . If doubles, doubles too.
- Partial variation: the initial value is not , so the equation is with . The graph crosses the -axis somewhere other than the origin. There’s a fixed part () and a part that varies ().
Suppose a second taxi company charges $2 per kilometre with no starting fee. Its cost is , a direct variation. Our first taxi, , is a partial variation.
On the SAT
Section titled “On the SAT”On the SAT, Desmos helps when a linear relation is given as a table: enter the values in a table, then type y_1 ~ mx_1 + b to get the rate of change and the initial value (for exactly linear data, ). For an equation, click the line to see its y-intercept. Many SAT questions, though, ask what the slope or the intercept means in the story (“what does the represent?”), and Desmos can’t answer that; think about units instead: the rate is “per” something, the initial value is the amount at the start. See using Desmos on the SAT.
Worked examples
Section titled “Worked examples”Example 1: From a situation to an equation
Section titled “Example 1: From a situation to an equation”Use the taxi fare from above.
- (a) How much does a km ride cost?
- (b) How far can you go for $30?
Solution.
(a) Substitute :
The ride costs $19.
(b) Substitute and solve for :
You can go km. Check: . ✓
Example 2: From a table to an equation
Section titled “Example 2: From a table to an equation”A phone plan’s monthly cost depends on how much data you use.
| Data, (GB) | |||||
|---|---|---|---|---|---|
| Cost, (dollars) |
- (a) Find the rate of change and the initial value, and say what each means.
- (b) Write the equation.
- (c) How much does the plan cost in a month when you use GB?
Solution.
(a) The first differences are all , so the relation is linear with a rate of change of $5 per GB: each gigabyte adds $5. When , , so the initial value is $30: the base price of the plan, even if you use no data.
(b) . This is a partial variation.
(c) . The plan costs $75.
Example 3: From a graph to an equation
Section titled “Example 3: From a graph to an equation”The graph shows Sam’s distance from home while walking to a friend’s house.
- (a) Find the rate of change and the initial value. What do they mean?
- (b) Write an equation for the relation.
- (c) Sam’s friend lives m from Sam’s home. When does Sam arrive?
Solution.
(a) Use the two marked points, and . From to , the distance goes from m to m:
Sam walks at metres per minute. The line crosses the -axis at , so the initial value is m: Sam was already m from home when the timing started.
(b)
(c) Solve : , so . Sam arrives after minutes.
Check: . ✓
Example 4: Direct or partial?
Section titled “Example 4: Direct or partial?”For each situation, write an equation and say whether it’s a direct or partial variation.
- (a) Gas costs $1.50 per litre. Let be the cost of litres.
- (b) Bowling costs $5 to rent shoes plus $7 per game. Let be the cost of games.
Solution.
(a) There’s no fixed fee, so . This is a direct variation. Check the doubling rule: L costs $15 and L costs $30, twice as much. ✓
(b) The shoe rental is a fixed part and the games are the varying part, so . This is a partial variation. Doubling doesn’t work here: games cost $19 but games cost $33, not $38.
Common mistakes
Section titled “Common mistakes”Using the first -value as the initial value when the table doesn’t start at . If a table starts at , the first -value is not . Work backwards using the rate of change, or substitute a point into and solve for (see Practice question 4).
Forgetting to divide when goes up by more than . If goes up by and goes up by , the rate of change is , not .
Mixing up and . For “$4 to start plus $2 per km”, the equation is , not . The “per” amount multiplies the variable; the fixed amount is added on.
Thinking every line passes through the origin. Only direct variations do. If there’s a starting fee or a head start, the graph crosses the -axis above (or below) the origin.
Leaving out units. “The rate of change is ” doesn’t say much. ” metres per minute” does. Units also help you check that your answer makes sense.
Misreading the scale on a graph. In Example 3, each grid line on the vertical axis is m, not m. Always read the axis labels before counting squares.
Practice
Section titled “Practice”1. (Warm-up) For , state the rate of change and the initial value. Is it a direct or partial variation?
Solution
The rate of change is and the initial value is . Since the initial value isn’t , it’s a partial variation.
2. (Warm-up) Write an equation for this table. Is it a direct or partial variation?
Solution
The first differences are all , and when . So , a direct variation.
3. (Warm-up) Renting a canoe costs $20 plus $12 per hour. Write an equation for the cost of renting for hours, and find the cost of a -hour rental.
Solution
.
For : . A -hour rental costs $56.
4. (Core) Find the equation of the linear relation in this table.
Solution
The first differences are all , so . The table doesn’t start at , so find by substituting the point into :
The equation is . (You can also work backwards: from to is two steps back, so .)
Check: gives . ✓
5. (Core) A water tank holds L. When a tap is opened, the line on a graph of volume against time goes through and , where time is in minutes.
- (a) Find the rate of change, with units. What does its sign tell you?
- (b) Write an equation for the volume after minutes.
- (c) When will the tank be empty?
Solution
(a)
The rate of change is litres per minute. It’s negative because the volume goes down over time.
(b) The initial value is , so (or ).
(c) Solve : , so . The tank is empty after minutes.
6. (Core) A pattern is made of squares. Figure 1 has squares, Figure 2 has , and Figure 3 has .
- (a) Write an equation for the number of squares in Figure .
- (b) How many squares are in Figure 20?
- (c) Is this a direct or partial variation?
Solution
(a) The pattern adds squares each time, so . Going back one step from Figure 1 gives a “Figure 0” with squares, so :
Check: gives . ✓
(b) squares.
(c) Partial variation, because the initial value is , not .
7. (Core) A part-time job pays $17.50 per hour.
- (a) Write an equation for your pay for working hours.
- (b) How much do you earn in a week where you work hours?
- (c) Explain why this is a direct variation.
Solution
(a)
(b) . You earn $210.
(c) There’s no fixed amount: working hours earns $0, so the graph goes through the origin. Doubling the hours doubles the pay: hours would earn dollars, which is .
8. (Challenge) A long-distance calling plan has this cost table.
| Minutes, | ||||
|---|---|---|---|---|
| Cost, (dollars) |
- (a) Find the rate of change per minute, and write the equation.
- (b) How much does minutes of calling cost?
- (c) How many minutes can you talk for $40?
Solution
(a) Each minutes adds dollars. Per minute, that’s , so $0.25 per minute. The initial value is $12, so
(b) . It costs $34.50.
(c) Solve : , so . You can talk for minutes.
Check: . ✓
9. (Challenge)
- (a) varies directly with , and when . Find when .
- (b) A different linear relation has an initial value of and also passes through . Find when .
Solution
(a) Direct variation means . Substitute : , so . Then .
(b) Now . Substitute :
So , and when , .
Both relations pass through , but they give different answers at because they start in different places.
Homework
Section titled “Homework”Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site.
Foundations
Section titled “Foundations”H1. (Foundations) For each equation, state the rate of change and the initial value. Then say whether it’s a direct or partial variation.
- (a)
- (b)
- (c)
H2. (Foundations) Use this table of values.
- (a) Find the rate of change and the initial value, and write the equation.
- (b) Find when , and find when .
- (c) Sketch the graph. Label the point where it crosses the -axis.
H3. (Core) A school club is ordering custom hoodies. The supplier charges a $60 setup fee plus $22 per hoodie.
- (a) Make a table of values showing the cost for hoodies.
- (b) Write an equation for in terms of . Is it a direct or partial variation?
- (c) How much do hoodies cost?
- (d) The club has $500 to spend. What is the greatest number of hoodies it can order?
H4. (Core) Find the equation of the linear relation in this table. Then find when .
H5. (Core) A graph of a phone’s battery charge (as a percent) against time (in hours) is a straight line through and .
- (a) Find the rate of change, with units. What does its sign tell you?
- (b) What does the initial value mean here? Write an equation for .
- (c) The phone warns you when the charge drops to . When does that happen?
- (d) If you keep using the phone the same way, after about how many hours does the battery run out? Round to one decimal place.
H6. (Core) (SAT style) The table shows some values of a linear relation.
Which equation represents the relation?
- A)
- B)
- C)
- D)
(On the SAT, you could enter the table in Desmos and use y_1 ~ mx_1 + b, or test each answer choice against all three points.)
Challenge
Section titled “Challenge”H7. (Challenge) A rain barrel is draining. The table shows the volume (in litres) after minutes.
| (min) | ||||
|---|---|---|---|---|
| (L) |
Malik looked at the table and wrote .
- (a) Show that Malik’s equation gives the wrong volume at .
- (b) Explain his mistake, and write the correct equation.
- (c) When will the barrel be empty? Give your answer in minutes and seconds.
H8. (Challenge) A community skating rink in Edmonton offers two ways to pay. Option A: $9 per visit. Option B: a $40 season membership plus $4 per visit.
- (a) Write an equation for the cost of visits under each option. Which one is a direct variation?
- (b) For Option B, does doubling the number of visits from to double the cost? Use numbers to explain why or why not.
- (c) For how many visits do the two options cost the same?
- (d) Jaya plans to skate times this season. Which option should she choose? Justify your answer.
H9. (Challenge) During a snowstorm in Montréal, the depth of snow (in centimetres) on a deck hours after midnight is modelled by .
- (a) Explain what and mean in this situation. Include units.
- (b) A friend says, “The snow was cm deep at 1 a.m.” Explain the error, and find the correct depth at 1 a.m.
- (c) At what time does the snow reach cm deep?
- (d) Would this model be reasonable for predicting the depth at midnight two days later ()? Explain.
H10. (Challenge) A linear relation passes through the points and .
- (a) Find its equation. Is it a direct or partial variation?
- (b) Ben says, “Since is on the line and is double , the point must be on the line too.” Show that Ben is wrong, and explain when his “doubling” reasoning does work.
- (c) Find the value of so that the point is on the line.