Before diving into the practice questions, take a moment to think about what you already know about this topic.
Know
- A function machine applies a rule to every input to produce an output
Understand
- Reverse machines undo the rule — this is equivalent to solving an equation
Can Do
- Follow a two-step rule through a function machine
- Identify a rule from a table of input/output pairs
- Use a reverse machine to find inputs from outputs
A function machine takes an input, applies a rule step by step, and produces an output. The machine below uses the rule “multiply by 3, then add 2.”
The same rule applied to all inputs produces a table of values:
| Input ($x$) | $\times 3$ | $+2$ | Output ($y$) |
|---|---|---|---|
| 1 | 3 | 5 | 5 |
| 2 | 6 | 8 | 8 |
| 3 | 9 | 11 | 11 |
| 4 | 12 | 14 | 14 |
The algebraic rule is $y = 3x + 2$.
Given a table of input/output pairs, you can work out the rule. If the output goes up by the same amount each time the input goes up by 1, it's a linear rule of the form $y = mx + c$.
Method:
- Find the constant difference in the outputs — this is the gradient $m$.
- Substitute one input/output pair into $y = mx + c$ to find $c$.
- Write the complete rule and verify with a second pair.
Full working for the example (1,7), (2,11), (3,15), (4,19):
- Constant difference in outputs: $11-7 = 4$, so $m = 4$
- Substitute $(1,\,7)$: $7 = 4(1) + c \;\Rightarrow\; c = 3$
- Rule: $y = 4x + 3$
- Check with $(2,\,11)$: $4(2)+3 = 11$ ✓
To find the input when you know the output, run the machine backwards using inverse operations in reverse order.
The key insight: running a reverse machine is the same as solving an equation.
Machine rule “×3 then +2, output = 14” is identical to solving $3x + 2 = 14$:
- $3x + 2 = 14$
- Subtract 2: $3x = 12$
- Divide by 3: $x = 4$
Watch Me Solve It · Worked example
-
1Write the reverse sequenceOutput 22 → undo −3 (add 3) → undo ×5 (divide by 5) → InputBecause the machine last did −3, we undo that first. Then we undo ×5 by dividing.
-
2Apply the reverse operations$22 + 3 = 25 \qquad 25 \div 5 = 5$Add 3 to undo the −3, giving 25. Then divide by 5 to undo the ×5, giving 5.
-
3Check by running forwards$5 \times 5 - 3 = 25 - 3 = 22$ ✓Substitute the input back into the original rule to confirm the output is 22.
Quick Check · 5 questions
Q1. Complete this function machine table. Rule: multiply by 2, then add 7.
Q2. Find the rule for this function machine:
Q3. A function machine: input → add 4 → multiply by 3 → output. If the output is 33, find the input. Show your working.
Extension Problems
Ready for a bigger challenge? Try these extension problems.
Key Concept
Review the main ideas from this lesson.
Formulas
Key formulas and rules.
Watch Out
Common mistakes to avoid.
Check
Always verify your answers.
Practice
Keep practicing to master.
Next
Build on these skills.
Interactive: Algebra Machine
Substitute numbers into algebraic expressions and see them evaluate step by step.
Your Badges
0 of 6Mark lesson as complete
Tick when you've finished Learn, Practice and the Stretch. Earns +90 XP and +25 coins.
Brain Trainer
Set a timer for 3 minutes. Find the rule for each input-output table.