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.
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.