Study Blocks

World map β€Ί Linear functions & gradient β€Ί Lesson 5

Four views of one line: words, table, graph, equation

⏱ about 50 min · MYP criteria A, B, C, D

By the end of this lesson you can…
🌍 The big question

Four friends each describe Lin’s savings plan β€” but one of them has got it wrong. Which one is the impostor? Decide before reading on, and be ready to say how you checked.

A β€” Words. β€œLin starts with $20 in her money box and adds $5 every week.”

B β€” Table.

weeks0246
savings ($)20304050

C β€” Graph.

β†’ time (weeks)↑ savings (dollars)

D β€” Equation. S=20w+5S = 20w + 5, where SS is Lin’s savings in dollars and ww is the number of weeks.

Words, table, graph and equation are four different languages for the same idea. Being fluent in all four β€” and able to translate between them β€” is what lets you spot the impostor in a second.

πŸ§ͺ Explore β€” try it, no scoring

Try these first. Nothing is marked: just have a go.

no hints, nothing is marked

A straight line has gradient 22 and passes through the point (3,10)(3, 10).

Where does it cross the yy-axis? Give the yy-coordinate.

no hints, nothing is marked

A kayak-hire shop charges a fixed fee plus a price for each hour. Hiring a kayak for 2 hours costs $34. Hiring one for 5 hours costs $64. (Made-up prices.)

What is the price for each hour, in dollars?

$

Now the explorer: drag the two points. The line through them is shown four ways at once.

  1. Start with A(0,1)A(0, 1) and B(2,5)B(2, 5). In the table, how much does yy change for each step of 1 in xx? Where do you see that number in the equation and in the graph?
  2. Drag BB so the line goes down. What changes in each of the four views?
  3. Make a fraction gradient, for example A(0,0)A(0, 0) and B(3,2)B(3, 2). How do the table and the words show it?
  4. Make the line vertical. Which views break, and why?
  5. Switch the context to Savings or Water tank. Can you make a line where the story stops making sense?
🎯 Predict first

The line goes through (0,1)(0, 1) and (2,5)(2, 5). In a table with x=βˆ’2,βˆ’1,0,1,2,3x = -2, -1, 0, 1, 2, 3, how much does yy go up from one column to the next?

Context:

πŸ“ˆ Graph β€” drag the two points

β†’ xx↑ yyA(0,1)A(0, 1)B(2,5)B(2, 5)

πŸ”£ Equation

y=2x+1y = 2x + 1

m=riserun=42=2m = \dfrac{\text{rise}}{\text{run}} = \dfrac{4}{2} = 2 Β· c=1c = 1

πŸ“‹ Table

xxβˆ’2-2βˆ’1-100112233
yyβˆ’3-3βˆ’1-111335577

Each step of +1+1 in xx changes yy by 22 (that's mm). The highlighted value at x=0x = 0 is cc.

πŸ’¬ Words

The line starts at y=1y = 1 when x=0x = 0 (it crosses the yy-axis at (0,1)(0, 1)), and goes up 2 for every 1 step to the right.

πŸ”Ž What do you notice?
  • The same two numbers turn up in every view. The gradient mm is the rise Γ· run on the graph, the constant step in the table (when xx goes up in 1s), and the β€œfor every …” in the words. The intercept cc is where the graph crosses the yy-axis, the table entry under x=0x = 0, and the β€œstarts at …” in the words.
  • A fraction gradient such as 23\frac{2}{3} shows up in the table as fractions β€” but jump 3 columns and yy rises by exactly 2.
  • A vertical line still has a graph and an equation, x=kx = k, but no table of yy-values (there isn’t a single yy for each xx), and it can’t be written as y=mx+cy = mx + c.
  • In a context, some parts of the line are nonsense β€” like negative litres in a tank. The equation doesn’t know that; you have to.
  • Try-first 1. The line has gradient 2 and passes through (3,10)(3, 10). Walk back from x=3x = 3 to x=0x = 0: 3 steps of 1, each taking yy down 2, so y=10βˆ’6=4y = 10 - 6 = 4 there. The line is y=2x+4y = 2x + 4. A point and a gradient were enough to fix the whole line.
  • Try-first 2. The 5-hour hire costs 64βˆ’34=3064 - 34 = 30 dollars more than the 2-hour hire, for 3 extra hours: $10 per hour. That is the gradient, found from two points. Then the fixed fee is what is left of the 2-hour price: 34βˆ’2Γ—10=1434 - 2 \times 10 = 14 dollars. You will see the same two moves in the plumber example below.
πŸ“ Key idea

Four representations β€” and how to get the equation from each

representationshows bestwatch out for
Wordsthe meaning, with unitsvague language (β€œgoes up a bit”)
Tableexact values; the constant stepsteps in xx that aren’t 1; no x=0x = 0 column
Graphthe overall trend at a glance; comparing linesreading values only roughly; axis scales
Equationcompact; any value exactly, forwards or backwardsneeds interpreting to mean anything

Writing y=mx+cy = mx + c. Every method has the same three moves: find mm, find cc, check with a point you didn’t use.

  • From a graph: read cc where the line crosses the yy-axis. Pick two points where the line passes exactly through grid corners; m=riserunm = \dfrac{\text{rise}}{\text{run}}.
  • From the gradient and one point (x1,y1)(x_1, y_1): substitute into y1=mx1+cy_1 = m x_1 + c and solve for cc.
  • From two points: m=y2βˆ’y1x2βˆ’x1m = \dfrac{y_2 - y_1}{x_2 - x_1}, then use either point as above.
  • From a table: m=Ξ”yΞ”xm = \dfrac{\Delta y}{\Delta x} between any two columns; cc is the value of yy at x=0x = 0 (work backwards if that column is missing).
  • From words: first define the variables with units (β€œLet CC be the cost in dollars and nn the number of months”). The rate becomes the gradient, and the starting or fixed amount becomes the intercept.

If two points have the same xx-coordinate, the line is vertical and its equation is x=kx = k.

πŸ” Why it works

Why does substituting a point find cc? A point lies on a line exactly when its coordinates make the equation true (Lesson 4). So if (3,10)(3, 10) is on y=2x+cy = 2x + c, then 10=2Γ—3+c10 = 2 \times 3 + c must be true. That is an equation with only cc unknown.

Nothing new to memorise: use the meaning of gradient. A line has gradient 22 and passes through (3,10)(3, 10). Pick any other point (x,y)(x, y) on the line. The gradient from (3,10)(3, 10) to (x,y)(x, y) must be 22, as it is between any two points of the line:

yβˆ’10xβˆ’3=2\frac{y - 10}{x - 3} = 2

Multiply both sides by xβˆ’3x - 3, then multiply out the bracket:

yβˆ’10=2(xβˆ’3)=2xβˆ’6⟹y=2x+4y - 10 = 2(x - 3) = 2x - 6 \quad\Longrightarrow\quad y = 2x + 4

That is Try-first 1 again. Because (x,y)(x, y) stood for any point of the line, the equation holds for all of them at once. (The point (3,10)(3, 10) fits too: both sides of yβˆ’10=2(xβˆ’3)y - 10 = 2(x - 3) are 0 there.) Some books stop at yβˆ’10=2(xβˆ’3)y - 10 = 2(x - 3) and call it point–gradient form (American English: point–slope form). It is not a new rule: it is the meaning of gradient, written with a general point.

Why can you work back to x=0x = 0 in a table? In a linear relationship yy changes by the same amount for every step of 1 in xx. So stepping backwards changes yy by that same amount each step, all the way to x=0x = 0.

⚠️ Watch out

cc is the value of yy when x=0x = 0 β€” not simply the first number in a table.

xx1357
yyβˆ’1-151117

Here yy rises by 6 for each step of 2 in xx, so m=62=3m = \dfrac{6}{2} = 3 (not 6). The table doesn’t start at x=0x = 0, so go back one unit from (1,βˆ’1)(1, -1): c=βˆ’1βˆ’3=βˆ’4c = -1 - 3 = -4. The equation is y=3xβˆ’4y = 3x - 4 β€” not y=6xβˆ’1y = 6x - 1. And gradient is always rise over run: change in yy on top.

🧱 Worked example

What does the plumber charge?

A plumber charges a fixed call-out fee plus an hourly rate. A 2-hour job costs $155 and a 5-hour job costs $245. (Illustrative prices.) Find an equation for the cost.

Step 1 β€” Define the variables, with units

Let hh be the length of the job in hours and CC the cost in dollars. The two jobs give the points (2,155)(2, 155) and (5,245)(5, 245).

Step 2 β€” Find the gradient (the hourly rate)

m=245βˆ’1555βˆ’2=903=30Β dollarsΒ perΒ hourm = \frac{245 - 155}{5 - 2} = \frac{90}{3} = 30 \text{ dollars per hour}

Step 3 β€” Find the intercept (the call-out fee)

Call the intercept bb here, because CC is already the cost. Substitute the point (2,155)(2, 155) into C=30h+bC = 30h + b: 155=30Γ—2+bβ€…β€ŠβŸΉβ€…β€Šb=155βˆ’60=95155 = 30 \times 2 + b \;\Longrightarrow\; b = 155 - 60 = 95

Step 4 β€” Write the equation and check with the other point

C=30h+95C = 30h + 95 Check with (5,245)(5, 245): 30Γ—5+95=150+95=24530 \times 5 + 95 = 150 + 95 = 245 βœ“

Step 5 β€” Is the answer sensible? See it in all four views
  • Words: β€œ$95 just to turn up, plus $30 for every hour.” A positive rate (longer jobs cost more) and a call-out fee bigger than one hour’s work are both believable for a plumber.
  • Table: h=0,1,2,3β†’C=95,125,155,185h = 0, 1, 2, 3 \to C = 95, 125, 155, 185. It matches the 2-hour price βœ“
  • Graph: a line starting at (0,95)(0, 95) and rising 30 for each hour.
  • Limits: hh can’t be negative, and a β€œ0-hour job” just means the call-out fee. Many plumbers also charge in half-hour blocks, so the real graph might be a staircase close to this line.

Back to the Hook. From the words, the rate is $5 per week and the start is $20, so S=5w+20S = 5w + 20. The table agrees (+10+10 every 2 weeks is 5 per week, and 20 at week 0), and so does the graph (rise 20 over run 4 from (0,20)(0, 20) to (4,40)(4, 40) gives 5). Equation D, S=20w+5S = 20w + 5, swaps mm and cc: it predicts $45 after 2 weeks, not $30. D is the impostor.

Foundation

Write the equation of the line shown. The two marked points are (0,βˆ’2)(0, -2) and (2,4)(2, 4).

Foundation
xx0123
yy741βˆ’2-2

Write the equation connecting xx and yy.

🎬 Another explanation

Still stuck after the example? Hearing it from another teacher often helps. These videos were checked against this lesson. Try the questions again afterwards.

Linear Function As a Table, Graph, and Equation (Cell Phone Plan) Β· Mathispower4u Β· about 10 min

One phone plan told in words is turned step by step into a table, a graph and an equation, and the equation is then checked with a value from the table.

Same idea, different words: The teacher writes c=8+0.15mc = 8 + 0.15m, where cc is the cost in dollars and mm is the number of minutes. Here mm is not the gradient: the gradient is 0.150.15.

Finding the equation of a line passing through two coordinates - Corbettmaths Β· corbettmaths Β· about 4 min

How to write the equation of a straight line when you only know two points on it: find the gradient first, then put one point in to find where it crosses the y-axis.

πŸ€” Pause and think

A table shows the points (0,2)(0, 2), (1,5)(1, 5), (2,8)(2, 8) and (3,11)(3, 11). Can you be completely sure the relationship is linear β€” even at x=1.5x = 1.5? What could the words (the context) tell you that the table can’t? Which representation would you send to a friend to convince them, and which to a computer?

⛏ Practice β€” choose your level

Write the equation of the line shown. The marked points are (0,4)(0, 4) and (2,0)(2, 0).

πŸ— Build project β€” real-life task

How cold is it up the mountain?

In the lowest layer of the atmosphere (the troposphere), the air gets colder as you climb. On average the temperature falls by about 6.5 Β°C for every 1 km of height. This average is used in the International Standard Atmosphere β€” on a real day the rate varies with the weather and the humidity.

It is a hot day at the beach (sea level): 31 Β°C. Let hh be the height above sea level in km and TT the air temperature in Β°C. Answer the questions in order, and keep asking whether the model still makes sense.

FoundationCriterion C

Write an equation for the temperature TT (Β°C) at a height of hh km above sea level. (Use the letters TT and hh.)

FoundationCriterion D

A mountain village is 2.4 km above sea level. Use your model to predict the temperature there at the same moment.

Β°C
IB StandardCriterion D

According to the model, at what height does the air reach the freezing point, 0 Β°C? Give your answer in km to 1 decimal place.

km
ExtensionCriterion D

Weather balloons can rise to about 30 km. A classmate uses the model: "At 30 km, T=31βˆ’6.5Γ—30=βˆ’164T = 31 - 6.5 \times 30 = -164 Β°C."

Do you trust this prediction? Explain what limits the model, and over what range of heights you would use it.

πŸ““ Work it out in your notebook first β€” sketch, calculate, then write your answer here in full sentences. A model answer appears after you submit, so you can compare.

πŸ”— Connections
  • Spreadsheets are tables; a formula like =95+30*A2 is the equation; a chart is the graph.
  • Coding: cost = 30 * hours + 95 is y=mx+cy = mx + c written for a computer.
  • Science: when you collect lab data, you start with a table, plot a graph, find a line’s equation β€” and finish by explaining it in words in your conclusion.

Next lesson, we will put two linear models side by side β€” two phone plans, two taxi companies β€” and use all four representations to decide which is the better deal, and when.

πŸͺž Reflect

Which of the four representations do you find easiest to understand, and which is hardest to write? Why?

Describe the three moves for writing y=mx+cy = mx + c (find mm, find cc, check). Which check would have caught the impostor in the Hook fastest?

πŸ“– Read more in your book
  • Introduction to Algebra (Art of Problem Solving) β€” Chapter 8, section 8.4 β€” finding the equation of a line

The book goes deeper and its problems are harder. Read it after this lesson, with a pencil in your hand.