Grade 8 · Unit 7 · Common Core cluster 8.F.A
Function machines, Grade 8
3 lessons, nine practice problems and an answer key with worked solutions. Free to read here and to print.
Lesson 1
A function is a rule that gives each input exactly one output.
- The left bubble holds the inputs, x: 1, 2, 3, 4.
- The rule in the green box: times 2, then add 1.
- The right bubble holds the outputs, y: 3, 5, 7, 9.
- Every input has exactly one arrow leaving it. One input, one output: a function.
Worked example
Is this table a function? Inputs x: 1, 2, 2, 3. Outputs y: 4, 5, 6, 7.
- Line up each input with its output: (1, 4), (2, 5), (2, 6), (3, 7).
- The input 2 shows up twice, once with output 5 and once with output 6.
- A function must give each input exactly one output, and 2 has two. So this table is not a function.
Answer: No, it is not a function: the input 2 has two outputs.
Other ways to do it
Table
Top row: the inputs. Bottom row: the output each one makes.
Check across all columns: if an input shows up twice, its output must be the same both times.
Graph
Each input-output pair is a dot (x, y).
Slide a straight up-and-down line across: it never hits two dots at once, so it's a function.
Rule
Put 3 in the machine: 3 × 2 + 1 = 7 comes out.
Written with letters, the same rule is y = 2x + 1.
Compare: All four show the same function. The table is quick for looking up a few pairs, the graph shows the whole pattern at a glance, and the rule is quickest for a big input like 100.
Lesson 2
To compare two functions, find the same two facts in each: where it starts and how fast it changes.
- Function one is a table. Each time x goes up 1, y goes up 3.
- Function two is a graph. Over 1 step right, it climbs 4.
- Starts: the table starts at 5, the graph starts at 2.
- The graph grows faster, so it catches up: at x = 3, both are 14.
Worked example
Phone plan A costs $20 a month plus $5 for each GB of data. Plan B is a table: 1 GB costs $28, 2 GB cost $34, 3 GB cost $40. Which plan charges more for each additional GB?
- Plan A is in words: each GB adds $5, so its rate is 5.
- Plan B is a table: each extra GB adds 34 − 28 = 6 dollars, so its rate is 6.
- Compare the rates: 6 is more than 5.
Answer: Plan B charges more for each additional GB ($6 against $5).
Other ways to do it
Two equations
The number in front of x is the rate: 3 and 4.
The number added on is the start: 5 and 2.
One graph
Both lines on one grid: orange starts higher.
Blue is steeper, crosses orange at (3, 14), then stays above.
One table
Both functions in one table, x side by side.
They match at x = 3, and after that the blue row is bigger.
Compare: Every way gives the same answer: rates 3 and 4, starts 5 and 2, equal at x = 3. Equations show rate and start fastest; one graph or one table shows best where one passes the other.
Lesson 3
y = mx + b makes a straight line because y changes by the same amount for every step in x; a rule like y = x² bends, so it is not linear.
- Orange is y = 2x + 1: its dots sit on one straight line.
- Its steps: right 1, up 2, every single time.
- Blue is y = x²: its steps go up 1, then 3, then 5, then 7.
- Same step each time means linear; growing steps make a curve, so y = x² is not linear.
Worked example
The area of a square is A = s × s, where s is the side length. Is the area a linear function of the side?
- Make a table: s = 1, 2, 3, 4 gives A = 1, 4, 9, 16.
- Find the steps: 4 − 1 = 3, 9 − 4 = 5, 16 − 9 = 7.
- The steps are not equal, so the graph bends: it can't be written as y = mx + b.
Answer: No: the area of a square is not a linear function of its side.
Other ways to do it
Table of steps
2x + 1 goes up by 2 every time: same step, linear.
x² goes up by 1, 3, 5, 7: the steps grow, not linear.
Match the form
y = 2x + 1 fits y = mx + b with m = 2 and b = 1.
y = x · x multiplies x by itself, so it can't fit the form.
Compare: All three ways agree: y = 2x + 1 is linear and y = x² is not. With an equation, matching the form is quickest; with a list of numbers, check the steps; with a picture, look for a straight line.
Practice problems
Nine problems, from warm-up to hard. The printed sheet leaves room to work.
- Warm-up
The picture shows a function machine. What is the output when the input is 6?
- Warm-up
Each list shows (input, output) pairs. Which list is NOT a function?
- A (1, 2), (2, 4), (3, 6)
- B (1, 5), (2, 5), (3, 5)
- C (2, 3), (4, 1), (2, 7)
- D (0, 0), (1, 1), (−1, 1)
- Warm-up
Which equation is a linear function, with a straight-line graph?
- A y = x² + 3
- B y = 4x − 1
- C y = 12
- D y = x × x × x
- Two steps
Function A is y = 3x + 10. Function B is linear and given by a table: input 2 gives output 9, input 5 gives output 21, and input 8 gives output 33. When the input is 20, how much greater is B's output than A's output?
- Two steps
Mia starts with $40 and adds $15 to her savings every week. The graph shows Leo's savings: x is the number of weeks and y is dollars, with two points marked. After how many weeks do Mia and Leo have the same amount?
- Two steps
A table of a linear function has inputs 1, 2, 3, 4, 5 and outputs 3, 7, 11, 16, 19. Exactly one output was copied wrong. What should that output be?
- Hard
A function f works on whole numbers. If the input is even, the output is half the input. If the input is odd, the output is the input plus 5. Start with 1 and keep feeding each output back in: 1 → 6 → 3 → … The arrow from 1 to 6 is step 1. What number do you have right after step 100?
- Hard
The function f is linear, so it can be written f(x) = mx + b. Feeding 3 into f gives 10. Feeding that output, 10, back into f gives 31. What does f give when the input is 0?
- Try it this way
Use a table. Function A is y = 2x + 3. Function B starts at 11 when x = 0 and goes down by 2 every time x goes up by 1. Make a table of both for x = 0, 1, 2, 3. For which x do A and B give the same output?
Answer key
Show the answers and worked solutions
- 14
- Multiply first: 3 × 6 = 18.
- Then subtract: 18 − 4 = 14.
- The output is 14.
- C · (2, 3), (4, 1), (2, 7)
- Check each list for a repeated input.
- (1, 5), (2, 5), (3, 5): the inputs are all different, so it's a function even though the outputs match.
- (0, 0), (1, 1), (−1, 1): inputs all different, a function.
- (2, 3), (4, 1), (2, 7): input 2 gives 3 and also 7. That list is not a function.
- B · y = 4x − 1
- y = x² + 3 squares x: its graph bends.
- y = 12 / x has x on the bottom: its graph bends.
- y = x × x × x multiplies x three times: its graph bends.
- y = 4x − 1 has the form y = mx + b with m = 4 and b = −1, so it is linear.
- 11
- B's rate: from input 2 to input 5 the output goes from 9 to 21, so 12 ÷ 3 = 4 per step.
- B's start: from input 2 back to 0 is 2 steps, so 9 − 2 × 4 = 1. B is y = 4x + 1.
- At input 20: A gives 3 × 20 + 10 = 70, and B gives 4 × 20 + 1 = 81.
- B is greater by 81 − 70 = 11.
- 3
- Leo's graph passes through (0, 100) and (4, 80): it drops from 100 to 80 over 4 weeks, so he loses 20 ÷ 4 = $5 a week.
- At the start the gap is 100 − 40 = $60.
- Each week the gap closes by 15 + 5 = $20, so it closes after 60 ÷ 20 = 3 weeks.
- Check: Mia 40 + 45 = 85, Leo 100 − 15 = 85. The answer is 3 weeks.
- 15
- Find the steps: 7 − 3 = 4, 11 − 7 = 4, 16 − 11 = 5, 19 − 16 = 3.
- The first two steps are 4. The uneven steps, 5 and 3, both touch the output 16, so 16 is the wrong one.
- With a step of 4 it should be 11 + 4 = 15. Check the last step: 19 − 15 = 4 ✓
- The output should be 15.
- 4
- Run the rule: 1 → 6 → 3 → 8 → 4 → 2 → 1. After step 6 you are back at 1.
- Because f gives one output per input, the same 6 steps repeat forever.
- 100 = 6 × 16 + 4, so after step 96 you are at 1 again, and 4 more steps give 6, 3, 8, 4.
- Right after step 100 the number is 4.
- 1
- The facts say f(3) = 10 and f(10) = 31.
- From input 3 to input 10 is 7 steps, and the output rises 31 − 10 = 21, so m = 21 ÷ 7 = 3.
- From input 3 back to 0 is 3 steps: 10 − 3 × 3 = 1.
- So f(x) = 3x + 1, and f(0) = 1. Check: f(10) = 31.
- 2
- A: x = 0, 1, … gives 3, 5, 7, 9.
- B: x = 0, 1, … gives 11, 9, 7, 5.
- The rows match in the third column, where both are 7, so x = 2.
Print this unit
The lesson, the problem set and the answer key are free PDFs, in English and Chinese. Tap a sheet to see it in full, or get the PDFs by email.
This curriculum is also in the Luchi app, with answers checked and progress tracked. Get the app
How this curriculum was made and checked · Free to print for your family or your class.


