Skip to content
Family Table Math
Auto

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.

Here’s a taxi fare: $4 to start, plus $2 for every kilometre.

Table of values. Let dd be the distance in kilometres and CC the cost in dollars.

dd (km)001122334455
CC (dollars)446688101012121414

Equation. Start with 44, then add 22 for each kilometre:

C=2d+4C = 2d + 4

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.

The rate of change is how much yy changes when xx goes up by 11. For the taxi it’s $2 per kilometre. You can find it in every representation:

RepresentationWhere to find the rate of changeTaxi
situationthe amount “per” or “for each”$2 per km
tablethe first difference (when xx goes up by 11)6−4=26 - 4 = 2
graphthe slope, riserun\dfrac{\text{rise}}{\text{run}}42=2\dfrac{4}{2} = 2
equationthe number multiplying xxthe 22 in C=2d+4C = 2d + 4

A rate of change has units: here it’s dollars per kilometre. If it’s negative, the relation goes down as xx goes up. (For more on slope, including a formula for any two points, see equations of lines.)

The initial value is the value of yy when x=0x = 0. It’s where the relation starts.

RepresentationWhere to find the initial valueTaxi
situationthe starting amount or fixed fee$4 to start
tablethe yy-value in the x=0x = 0 column44
graphthe yy-intercept (where the line crosses the yy-axis)(0,4)(0, 4)
equationthe number added onthe 44 in C=2d+4C = 2d + 4

Every linear relation can be written as

y=mx+by = mx + b

where mm is the rate of change (the slope) and bb is the initial value (the yy-intercept). The Grade 9 curriculum also writes this as y=ax+by = ax + b; 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 CC for cost and dd for distance.

  • Direct variation: the initial value is 00, so the equation is y=mxy = mx. The graph goes through the origin (0,0)(0, 0). If xx doubles, yy doubles too.
  • Partial variation: the initial value is not 00, so the equation is y=mx+by = mx + b with b≠0b \ne 0. The graph crosses the yy-axis somewhere other than the origin. There’s a fixed part (bb) and a part that varies (mxmx).

Suppose a second taxi company charges $2 per kilometre with no starting fee. Its cost is C=2dC = 2d, a direct variation. Our first taxi, C=2d+4C = 2d + 4, is a partial variation.

Two taxi fare lines: C = 2d + 4 starts at (0, 4) and C = 2d starts at the origin; both rise $4 for every 2 km 1 2 3 4 5 6 7 8 12 16 4 0 run 2 km rise $4 (0, 4) C = 2d + 4 partial variation C = 2d direct variation distance, d (km) cost, C ($)
C=2d+4C = 2d + 4 (partial variation) and C=2dC = 2d (direct variation) have the same rate of change, so the lines are parallel. Only the starting point is different.

Example 1: From a situation to an equation

Section titled “Example 1: From a situation to an equation”

Use the taxi fare C=2d+4C = 2d + 4 from above.

  • (a) How much does a 7.57.5 km ride cost?
  • (b) How far can you go for $30?

Solution.

(a) Substitute d=7.5d = 7.5:

C=2(7.5)+4=15+4=19C = 2(7.5) + 4 = 15 + 4 = 19

The ride costs $19.

(b) Substitute C=30C = 30 and solve for dd:

30=2d+426=2dsubtract 413=ddivide by 2\begin{aligned} 30 &= 2d + 4 \\ 26 &= 2d && \text{subtract } 4 \\ 13 &= d && \text{divide by } 2 \end{aligned}

You can go 1313 km. Check: 2(13)+4=26+4=302(13) + 4 = 26 + 4 = 30. ✓

A phone plan’s monthly cost depends on how much data you use.

Data, gg (GB)0011223344
Cost, CC (dollars)30303535404045455050
  • (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 99 GB?

Solution.

(a) The first differences are all 55, so the relation is linear with a rate of change of $5 per GB: each gigabyte adds $5. When g=0g = 0, C=30C = 30, so the initial value is $30: the base price of the plan, even if you use no data.

(b) C=5g+30C = 5g + 30. This is a partial variation.

(c) C=5(9)+30=45+30=75C = 5(9) + 30 = 45 + 30 = 75. The plan costs $75.

The graph shows Sam’s distance from home while walking to a friend’s house.

A straight line showing distance from home over time, passing through (0, 200) and (5, 600) 1 2 3 4 5 6 100 300 400 500 600 700 800 200 0 (0, 200) (5, 600) time, t (min) distance from home, d (m)
Sam’s distance from home, dd metres, after tt minutes.
  • (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 10001000 m from Sam’s home. When does Sam arrive?

Solution.

(a) Use the two marked points, (0,200)(0, 200) and (5,600)(5, 600). From t=0t = 0 to t=5t = 5, the distance goes from 200200 m to 600600 m:

rate of change=riserun=600−2005−0=4005=80\text{rate of change} = \frac{\text{rise}}{\text{run}} = \frac{600 - 200}{5 - 0} = \frac{400}{5} = 80

Sam walks at 8080 metres per minute. The line crosses the dd-axis at 200200, so the initial value is 200200 m: Sam was already 200200 m from home when the timing started.

(b) d=80t+200d = 80t + 200

(c) Solve 80t+200=100080t + 200 = 1000: 80t=80080t = 800, so t=10t = 10. Sam arrives after 1010 minutes.

Check: 80(10)+200=800+200=100080(10) + 200 = 800 + 200 = 1000. ✓

For each situation, write an equation and say whether it’s a direct or partial variation.

  • (a) Gas costs $1.50 per litre. Let CC be the cost of LL litres.
  • (b) Bowling costs $5 to rent shoes plus $7 per game. Let CC be the cost of gg games.

Solution.

(a) There’s no fixed fee, so C=1.5LC = 1.5L. This is a direct variation. Check the doubling rule: 1010 L costs $15 and 2020 L costs $30, twice as much. ✓

(b) The shoe rental is a fixed part and the games are the varying part, so C=7g+5C = 7g + 5. This is a partial variation. Doubling doesn’t work here: 22 games cost $19 but 44 games cost $33, not $38.

Using the first yy-value as the initial value when the table doesn’t start at x=0x = 0. If a table starts at x=2x = 2, the first yy-value is not bb. Work backwards using the rate of change, or substitute a point into y=mx+by = mx + b and solve for bb (see Practice question 4).

Forgetting to divide when xx goes up by more than 11. If xx goes up by 22 and yy goes up by 1010, the rate of change is 10÷2=510 \div 2 = 5, not 1010.

Mixing up mm and bb. For “$4 to start plus $2 per km”, the equation is C=2d+4C = 2d + 4, not C=4d+2C = 4d + 2. 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 yy-axis above (or below) the origin.

Leaving out units. “The rate of change is 8080” doesn’t say much. ”8080 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 100100 m, not 11 m. Always read the axis labels before counting squares.

1. (Warm-up) For y=6x+15y = 6x + 15, state the rate of change and the initial value. Is it a direct or partial variation?

Solution

The rate of change is 66 and the initial value is 1515. Since the initial value isn’t 00, it’s a partial variation.

2. (Warm-up) Write an equation for this table. Is it a direct or partial variation?

xx00112233
yy007714142121
Solution

The first differences are all 77, and y=0y = 0 when x=0x = 0. So y=7xy = 7x, a direct variation.

3. (Warm-up) Renting a canoe costs $20 plus $12 per hour. Write an equation for the cost CC of renting for hh hours, and find the cost of a 33-hour rental.

Solution

C=12h+20C = 12h + 20.

For h=3h = 3: C=12(3)+20=36+20=56C = 12(3) + 20 = 36 + 20 = 56. A 33-hour rental costs $56.

4. (Core) Find the equation of the linear relation in this table.

xx22334455
yy1111141417172020
Solution

The first differences are all 33, so m=3m = 3. The table doesn’t start at x=0x = 0, so find bb by substituting the point (2,11)(2, 11) into y=3x+by = 3x + b:

11=3(2)+b⇒11=6+b⇒b=511 = 3(2) + b \quad\Rightarrow\quad 11 = 6 + b \quad\Rightarrow\quad b = 5

The equation is y=3x+5y = 3x + 5. (You can also work backwards: from x=2x = 2 to x=0x = 0 is two steps back, so 11−3−3=511 - 3 - 3 = 5.)

Check: x=5x = 5 gives 3(5)+5=203(5) + 5 = 20. ✓

5. (Core) A water tank holds 5050 L. When a tap is opened, the line on a graph of volume against time goes through (0,50)(0, 50) and (4,30)(4, 30), 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 VV after tt minutes.
  • (c) When will the tank be empty?
Solution

(a)

rate of change=30−504−0=−204=−5\text{rate of change} = \frac{30 - 50}{4 - 0} = \frac{-20}{4} = -5

The rate of change is −5-5 litres per minute. It’s negative because the volume goes down over time.

(b) The initial value is 5050, so V=−5t+50V = -5t + 50 (or V=50−5tV = 50 - 5t).

(c) Solve 50−5t=050 - 5t = 0: 5t=505t = 50, so t=10t = 10. The tank is empty after 1010 minutes.

6. (Core) A pattern is made of squares. Figure 1 has 66 squares, Figure 2 has 1010, and Figure 3 has 1414.

  • (a) Write an equation for the number of squares ss in Figure nn.
  • (b) How many squares are in Figure 20?
  • (c) Is this a direct or partial variation?
Solution

(a) The pattern adds 44 squares each time, so m=4m = 4. Going back one step from Figure 1 gives a “Figure 0” with 6−4=26 - 4 = 2 squares, so b=2b = 2:

s=4n+2s = 4n + 2

Check: n=3n = 3 gives 4(3)+2=144(3) + 2 = 14. ✓

(b) s=4(20)+2=82s = 4(20) + 2 = 82 squares.

(c) Partial variation, because the initial value is 22, not 00.

7. (Core) A part-time job pays $17.50 per hour.

  • (a) Write an equation for your pay PP for working hh hours.
  • (b) How much do you earn in a week where you work 1212 hours?
  • (c) Explain why this is a direct variation.
Solution

(a) P=17.5hP = 17.5h

(b) P=17.5(12)=210P = 17.5(12) = 210. You earn $210.

(c) There’s no fixed amount: working 00 hours earns $0, so the graph goes through the origin. Doubling the hours doubles the pay: 2424 hours would earn 17.5(24)=42017.5(24) = 420 dollars, which is 2×2102 \times 210.

8. (Challenge) A long-distance calling plan has this cost table.

Minutes, xx00101020203030
Cost, CC (dollars)12.0012.0014.5014.5017.0017.0019.5019.50
  • (a) Find the rate of change per minute, and write the equation.
  • (b) How much does 9090 minutes of calling cost?
  • (c) How many minutes can you talk for $40?
Solution

(a) Each 1010 minutes adds 14.50−12.00=2.5014.50 - 12.00 = 2.50 dollars. Per minute, that’s 2.50÷10=0.252.50 \div 10 = 0.25, so $0.25 per minute. The initial value is $12, so

C=0.25x+12C = 0.25x + 12

(b) C=0.25(90)+12=22.5+12=34.5C = 0.25(90) + 12 = 22.5 + 12 = 34.5. It costs $34.50.

(c) Solve 0.25x+12=400.25x + 12 = 40: 0.25x=280.25x = 28, so x=28÷0.25=112x = 28 \div 0.25 = 112. You can talk for 112112 minutes.

Check: 0.25(112)+12=28+12=400.25(112) + 12 = 28 + 12 = 40. ✓

9. (Challenge)

  • (a) yy varies directly with xx, and y=18y = 18 when x=4x = 4. Find yy when x=10x = 10.
  • (b) A different linear relation has an initial value of 33 and also passes through (4,18)(4, 18). Find yy when x=10x = 10.
Solution

(a) Direct variation means y=mxy = mx. Substitute (4,18)(4, 18): 18=4m18 = 4m, so m=4.5m = 4.5. Then y=4.5(10)=45y = 4.5(10) = 45.

(b) Now y=mx+3y = mx + 3. Substitute (4,18)(4, 18):

18=4m+3⇒15=4m⇒m=3.7518 = 4m + 3 \quad\Rightarrow\quad 15 = 4m \quad\Rightarrow\quad m = 3.75

So y=3.75x+3y = 3.75x + 3, and when x=10x = 10, y=3.75(10)+3=37.5+3=40.5y = 3.75(10) + 3 = 37.5 + 3 = 40.5.

Both relations pass through (4,18)(4, 18), but they give different answers at x=10x = 10 because they start in different places.