Math Bonk! Learning Centre Play the game

Functions, Slope and the Equation of a Line

A ski slope

What your child is learning

A function is a rule that gives exactly one output for every input. Put in 3, get out 7. Put in 3 again, get out 7 again. A vending machine works this way: one button, one snack. A taxi meter works this way: one distance, one fare. A rule that gave two different answers for the same input would not be a function.

Children learn to:

The table-and-rule work behind this guide is in the guide to linear and non-linear patterns. Undoing an equation to find an unknown is covered in the guide to solving equations with rational numbers.

The function y = 3x + 2: the slope is 3 (up 3 for every 1 right) and the y-intercept is 2.The function y = 3x + 2: the slope is 3 (up 3 for every 1 right) and the y-intercept is 2.0246810121401234y
The function y = 3x + 2: the slope is 3 (up 3 for every 1 right) and the y-intercept is 2.

Why it matters

Slope is the first time a single number describes a rate that never stops. Fifteen dollars an hour, two degrees a minute, three pages a day: each is a slope, and each draws a straight line. Once children can pull that number out of a table, a graph or a story, they can predict what happens at any point, not just the ones listed.

The word function is the doorway to high school math. Courses there assume it is understood, not explained. Meeting it now, with tables and graphs and familiar stories, makes that first high school unit feel like a review.

How to teach it

1. Start with a machine that always answers the same way

Say the rule out loud: “Add 4.” Feed in 3 and get 7. Feed in 10 and get 14. Feed in 3 once more and get 7 again. That steadiness is the whole idea. Then break it on purpose. “Double the input, or maybe add 1, depending on my mood” gives two answers for 3. Ask which one you should write down. Your child will see the problem before you name it: a function owes you one answer.

2. Test a table

Give three columns of inputs and outputs. One column repeats an input with two different outputs. The job is to find the impostor. The test is simple and always the same: no input appears twice with different answers. If it does, the table is not a function.

A function: (1, 5), (2, 8), (3, 11), (4, 14). Each input appears once.
Not a function: (1, 5), (2, 8), (2, 9), (4, 14). The input 2 has two outputs.

3. Find the rule, then the rate

In that first table, every time the input goes up by 1, the output goes up by 3. Three per one. That is the rate of change. The output when the input is 0 is 2. Put the two together and the rule is y = 3x + 2. Check it: 3 × 1 + 2 = 5, 3 × 2 + 2 = 8. The rule predicts every row.

4. Turn the rate into slope

Plot the points and they fall on a straight line. Pick any two of them. Slope is how far the line rises divided by how far it runs.

From (1, 5) to (3, 11): rise = 11 − 5 = 6, run = 3 − 1 = 2
Slope = 6 ÷ 2 = 3. The same 3 as the table.

Try another pair on the same line, (2, 8) and (4, 14). Rise 6, run 2, slope 3 again. The slope does not care which two points you pick. That is what makes a line straight.

5. Read a negative slope and a zero slope

A line that goes down from left to right has a negative slope. A flat line has slope 0. A vertical line has no slope at all, because the run is 0 and division by 0 is not allowed. It is also the one graph that fails the function test, since one x would need several y values.

From (0, 10) to (4, 2): rise = 2 − 10 = −8, run = 4
Slope = −8 ÷ 4 = −2. The line falls 2 for every 1 it moves right.

6. Use y = mx + b

m is the slope. b is the y-intercept, the output when the input is 0. For y = −2x + 10 the line starts at 10 and falls 2 for each step right. Draw it by marking 10 on the y-axis, then counting down 2 and right 1, again and again. For a story such as a $10 download fee plus $2 per song, the same equation describes the total cost. Comparing two plans means comparing their m and their b: the higher starting value loses to the higher rate over a long enough run.

Common mistakes

Do this together

Taxi fair or unfair. Invent two taxi companies. One charges a $4 pick-up fee and $3 a kilometre. The other charges a $9 pick-up fee and $1 a kilometre. Write both rules as equations, make a table from 1 to 6 kilometres, and graph both lines on the same grid.

Find where the lines cross. For short trips one company is cheaper and for long trips the other is. Decide how far you would have to travel before you switch companies, then explain your answer using the two rates.

Printable worksheet

19 questions, a picture warm-up and drawing tasks, with an answer key on its own page. Print it or save it as a PDF.

Open the worksheet

Every worksheet is on the printable worksheets page.

U.S. Common Core: Grade 8, Functions and Expressions and Equations, standard 8.F.1–8.F.3, 8.EE.5, 8.EE.6 · official standards · U.S. Common Core crosswalk