Level:
Correct: 0
Incorrect: 0
Marks: 0/0
Practice
Course:
Topics:
Year 7 Maths Smart practice A mixed round aimed at your weak spots
Unit 1
Place value and the number system
Unit 2
Calculating
Unit 3
Factors, multiples and powers
Unit 4
Fractions
Unit 5
Fractions, decimals and percentages
Unit 6
Algebraic expressions
Unit 7
Equations and inequalities
Unit 8
Sequences and graphs
Unit 9
Ratio and proportion
Ratio, proportion and rates of change
Writing and simplifying ratios
Quick practice5 skills
Sharing in a ratio
Quick practice5 skills
Proportion and best buys
Quick practice5 skills
Scale drawings and maps
Quick practice4 skills
Unit 10
Measures, perimeter, area and volume
Unit 11
Angles and shapes
Unit 12
Probability
Unit 13
Statistics
Avg
score:
–
Topics
done:
0/63

Function machines

Practise 24 questions on Function machines for Year 7 Maths. Tap or type your answer and find out straight away if you are right, with the Study Helper on hand if you get stuck.

  • 24 questions
  • 1–5 marks each
  • Instant marking
  • No sign-up needed
20 questions, marked as you go

Sample questions with model answers

Here are 4 of the questions in this topic, each with a model answer, an explanation of why it earns the marks and the mark scheme.

Question 1

1 mark

Here is a function machine.

The input is \(n\). Write an expression for the output.

Flow chart of 3 boxes joined by arrows, read from left to right. The first box is "Input n", which leads to "× 7", which leads to "Output".

Model answer

\(n \times 7 = 7n\)

Explanation

The machine multiplies the input by 7, so \(n\) becomes \(n \times 7\). In algebra we write the number first and leave out the times sign, so the output is \(7n\). A common mistake is to write \(n + 7\), but \(7n\) means 7 lots of \(n\).

Mark scheme
  1. 1 mark

    \(7n\)

    Accept \(7 \times n\), \(n \times 7\) or \(n7\). Do not accept \(n + 7\) or 7 on its own.

Question 2

2 marks

Here is a function machine.

The output is 25. Work out the input.

Flow chart of 4 boxes joined by arrows, read from left to right. The first box is "Input", which leads to "× 4", which leads to "− 3", which leads to "Output 25".

Model answer

Work backwards with inverse operations:
\(25 + 3 = 28\)
\(28 \div 4 = 7\)
The input is 7.
Check: \(7 \times 4 - 3 = 25\)

Explanation

To find the input, start at the output and go backwards. Undo the last step first: the inverse of subtract 3 is add 3, so \(25 + 3 = 28\). Then the inverse of multiply by 4 is divide by 4, so \(28 \div 4 = 7\). A common mistake is to undo the steps in the wrong order.

Mark scheme
  1. 1 mark

    \(25 + 3 = 28\); or the correct answer 7 with no working

    Award this mark for \(28 \div 4\) seen.

  2. 1 mark

    7

    Do not accept 3.25 (\(25 \div 4 - 3\), the inverse steps in the wrong order) or 97. A correct answer with no working scores full marks.

Question 3

2 marks

Kofi writes the equation \(5x - 4 = 31\) as this function machine.

Use inverse operations to solve the equation.

Flow chart of 4 boxes joined by arrows, read from left to right. The first box is "Input x", which leads to "× 5", which leads to "− 4", which leads to "Output 31".

Model answer

Work backwards from 31:
\(31 + 4 = 35\)
\(35 \div 5 = 7\)
\(x = 7\)
Check: \(5 \times 7 - 4 = 31\)

Explanation

The equation says: start with \(x\), multiply by 5, subtract 4, and you get 31. To find \(x\), go backwards using inverse operations in reverse order: add 4 to get 35, then divide by 5 to get 7. Check by putting 7 back into the equation.

Mark scheme
  1. 1 mark

    \(31 + 4 = 35\); or the correct answer \(x = 7\) with no working

    Award this mark for \(35 \div 5\) seen.

  2. 1 mark

    \(x = 7\)

    Accept 7. Do not accept 5.4 (\((31 - 4) \div 5\), subtracting instead of adding) or 10.2 (\(31 \div 5 + 4\), the inverse steps in the wrong order). A correct answer with no working scores full marks.

Question 4

4 marks

Here is a function machine.

The input is \(n\). Write an expression for the output.

The output is 36. Work out the input.

Flow chart of 4 boxes joined by arrows, read from left to right. The first box is "Input n", which leads to "− 3", which leads to "× 4", which leads to "Output".

Model answer

Expression: \(n - 3\), then \(\times 4\), so \(4(n - 3)\) (which is \(4n - 12\)).
Output 36, going backwards:
\(36 \div 4 = 9\)
\(9 + 3 = 12\)
The input is 12. Check: \((12 - 3) \times 4 = 36\)

Explanation

After the first step you have \(n - 3\), and the whole of that is multiplied by 4, so the output is \(4(n - 3)\). To find the input for 36, undo the steps in reverse order: divide by 4 to get 9, then add 3 to get 12. A common mistake is to forget the brackets and write \(n - 3 \times 4\), which means \(n - 12\).

Mark scheme
  1. 2 marks

    \(4(n - 3)\)

    Accept \((n - 3) \times 4\) or \(4n - 12\). 1 mark for \(n - 3\) seen or for \(n - 3 \times 4\) (brackets missing). Do not accept \(4n - 3\) for either mark.

  2. 1 mark

    \(36 \div 4 = 9\) and \(9 + 3\); or the correct input 12 with no working

  3. 1 mark

    12

    Do not accept 6 (\(36 \div 4 - 3\)) or 9.75 (\((36 + 3) \div 4\)). A correct input of 12 with no working scores the last two marks; the first two marks are for the expression.

Ready to try the rest? Tap or type your answers and see straight away how you did.

Topic notes

Function machines

The big idea

A function machine takes a number in (the input), does one or more operations to it in order, and gives a number out (the output). A one-step machine has one operation, such as × 4. A two-step machine has two, such as × 4 and then + 1. Function machines show the steps of a rule clearly, and they show you how to undo the steps.

Finding outputs

Follow the arrows and do each operation in order, from left to right.

Flow chart of 4 boxes joined by arrows, read from left to right. The first box is "Input", which leads to "× 5", which leads to "− 8", which leads to "Output".
A two-step function machine: multiply by 5, then subtract 8.

Work out the outputs of the machine above for the inputs 2, 4 and 7.

Input 2: \(2 \times 5 = 10\), then \(10 - 8 = 2\)

Input 4: \(4 \times 5 = 20\), then \(20 - 8 = 12\)

Input 7: \(7 \times 5 = 35\), then \(35 - 8 = 27\)

The outputs are 2, 12 and 27.

The output as an expression

If the input is a letter, such as \(n\), the output is an expression. For the machine above, the output is \(5n - 8\).

The order of the steps matters. "× 4, then + 1" gives \(4n + 1\). "+ 1, then × 4" gives \(4(n + 1)\): the brackets show that you add first. Try \(n = 5\): \(4 \times 5 + 1 = 21\), but \(4 \times 6 = 24\).

Finding inputs: working backwards

Each operation has an inverse operation: an opposite that undoes it.

OperationInverse
add (+)subtract (−)
subtract (−)add (+)
multiply (×)divide (÷)
divide (÷)multiply (×)

To find the input, start at the output and go backwards through the machine, doing the inverse of each step. The last step is undone first.

A machine adds 5, then multiplies by 2. The output is −4. What was the input?

Draw the machine backwards, with the inverse operations:

Flow chart of 4 boxes joined by arrows, read from left to right. The first box is "Output −4", which leads to "÷ 2", which leads to "− 5", which leads to "Input −7".
The inverse machine: start at the output, divide by 2, then subtract 5.

Undo the × 2 first: \(-4 \div 2 = -2\)

Then undo the + 5: \(-2 - 5 = -7\)

The input was −7. Check forwards: \(-7 + 5 = -2\), and \(-2 \times 2 = -4\) ✓

Finding the rule

If you know some inputs and outputs, you can work out what the machine does. An input of 0 is very useful, because 0 multiplied by anything is 0.

A machine multiplies by a number, then adds a number. An input of 0 gives an output of 4. An input of 3 gives an output of 19. Find the two operations.

Input 0: multiplying gives 0, and the output is 4, so the machine adds 4.

Input 3: before the 4 was added, the number was \(19 - 4 = 15\). Since \(3 \times 5 = 15\), the machine multiplies by 5.

The rule is × 5, then + 4. Check with input 3: \(3 \times 5 + 4 = 19\) ✓

Solving equations

An equation can be drawn as a function machine. \(3x + 8 = 29\) means: input \(x\), × 3, + 8, output 29. Working backwards: \(29 - 8 = 21\), then \(21 \div 3 = 7\), so \(x = 7\).

Common mistakes

  • Doing the steps in the wrong order. Always follow the arrows.
  • Working backwards but keeping the same operations. Going backwards, × becomes ÷ and + becomes −.
  • Undoing the first step first. Going backwards, undo the last step first.
  • Writing "× 6, then + 1" as \(7n\). The output is \(6n + 1\): \(6n\) and 1 cannot be joined.

Top tip

When you have found an input, put it back through the machine forwards. If you get the output you were given, your answer is right.

Study Helper Hints first, answers after you try

Stuck on this one? Ask for a hint and I’ll point you in the right direction, without giving the answer away. Once you’ve checked your answer, I’ll show you how the marks are awarded.