← All Techniques Maths

Function Machines

Working forwards and backwards through function machines to find inputs, outputs and rules.

1

What is Function Machines?

A function machine takes an input number, applies one or more operations, and produces an output. In the 11+ exam, you may need to find the output (working forwards), the input (working backwards), or the rule itself.

Working backwards through a function machine uses inverse operations – the same skill you need for solving equations.

2

Step-by-Step Method

1

Working forwards: apply operations in order

Start with the input, apply the first operation, then the second, and so on until you reach the output.

2

Working backwards: use inverse operations in reverse order

Start with the output and undo each operation from right to left. Addition becomes subtraction, multiplication becomes division.

3

Finding the rule: compare input and output

Try common operations (add, subtract, multiply, divide) to see which one transforms the input to the output.

4

For two-step machines, test both operations

If one operation does not work alone, try pairs: “multiply then add” or “subtract then multiply”.

5

Check with all given input/output pairs

Your rule must work for every pair given, not just the first one.

3

Worked Examples

Example 1 – Working Forwards

Input: 5. Operations: x3, then +2. What is the output?

Working

  1. Start with 5.
  2. 5 x 3 = 15.
  3. 15 + 2 = 17.
Answer: 17
Example 2 – Working Backwards

Output: 20. Operations: x4, then -8. What was the input?

Working

  1. Start with output 20 and work backwards.
  2. Undo “-8”: 20 + 8 = 28.
  3. Undo “x4”: 28 / 4 = 7.
Answer: 7
Example 3 – Finding the Rule

Input 3 gives output 11. Input 5 gives output 17. What is the rule?

Working

  1. Try “multiply then add”. 3 x ? + ? = 11.
  2. Try x3: 3×3=9, need +2 to get 11. Check: 5×3=15, 15+2=17. It works!
  3. The rule is: multiply by 3, then add 2.
Answer: x3, then +2
4

Common Mistakes

Common error

Applying operations in the wrong order when working backwards.

Correct approach

When working backwards, reverse the ORDER of operations as well as using inverse operations.

Common error

Forgetting to use inverse operations when working backwards (e.g. still adding instead of subtracting).

Correct approach

Backwards means undo: addition becomes subtraction, multiplication becomes division.

Common error

Finding a rule that works for one pair but not the others.

Correct approach

Always test your rule with every input/output pair given.

5

Top Tips

  • When working backwards, write “undo” above each operation as a reminder to use the inverse.
  • Common two-step rules: multiply then add, multiply then subtract, add then multiply.
  • If you cannot find the rule, try making a table and looking for the pattern in the differences.
  • Function machines are closely linked to equations: if the machine does “x3 +2” and the output is 17, the equation is 3n + 2 = 17.

Ready to practise?

Put these techniques into action with our free practice papers.

Practise Maths Questions
Scroll to Top