Function Machines - Worksheets, Questions and Revision
57 original exam-style questions - 19 pages of questions with a full mark scheme - free printable PDF.
Function Machines revision guideMore GCSE Maths practiceMock exams
This topic is chapter 9 of GCSE Maths Foundation Topic Workbook 2 and chapter 6 of GCSE Maths Grade 3 Booster 2.

A function machine is a diagram that applies a sequence of operations, such as multiply, add or subtract, to an input number to produce an output number. It is used at GCSE Foundation level to link arithmetic and algebra, including forming an expression for the output and working backwards from an output to find the input using inverse operations.
- Read the machine from left to right and note each operation in the order it is applied.
- To find an output, apply each operation to the input one at a time, in the order shown.
- To find an input from a known output, work backwards through the machine using inverse operations in reverse order: undo addition with subtraction, undo multiplication with division, and so on.
- Write the whole machine as a single algebraic expression by replacing the input with a letter and combining the operations.
- Check your answer by substituting it back into the original machine to see if it gives the stated output.
Worked example
A function machine takes an input n. It multiplies n by 4, then subtracts 3, to give the output. (a) Work out the output when n = 6. (b) The output is 41. Find the input.
- (a) Multiply the input by 4: 6 x 4 = 24.
- Subtract 3 from the result: 24 - 3 = 21, so the output is 21.
- (b) Work backwards from the output using inverse operations in reverse order. First add 3 to undo the subtraction: 41 + 3 = 44.
- Then divide by 4 to undo the multiplication: 44 / 4 = 11.
- Final answer: (a) output = 21; (b) input = 11.
2.8 Function Machines
input --> [ +5 ] --> [ x 2 ] --> output
input --> [ -6 ] --> output
Work out the input for each output given.
p --> [ x 2.50 ] --> [ +1.20 ] --> C
input --> [ + 2 ] --> output
The output is 5. Work out the input.
input --> [ + 12 ] --> output
Work out the output when the input is each of 3, 12, 9.
input --> [ x 6 ] --> [ + 7 ] --> output
The input is n. (a) Write an expression for the output. (b) Work out the output when n = 6.
input --> [ + 2 ] --> [ - 2 ] --> output
Work out the output when the input is 10, and when the input is 1.
input --> [ - 4 ] --> output
Work out the output when the input is each of 20, 2, 15.
input --> [ + 5 ] --> [ x 2 ] --> output
The input is n. (a) Write an expression for the output. (b) Work out the output when n = 8.
input --> [ + 2 ] --> [ + 6 ] --> output
Work out the output when the input is 8, and when the input is 2.
input --> [ + 3 ] --> output
Work out the output when the input is each of 8, 13, 18.
input --> [ + 4 ] --> [ x 4 ] --> output
The input is n. (a) Write an expression for the output. (b) Work out the output when n = 9.
input --> [ x 4 ] --> [ - 9 ] --> output
The output is 71. Work out the input.
input --> [ x 3 ] --> output
Work out the output when the input is each of 2, 5, 8.
input --> [ + 8 ] --> [ - 8 ] --> output
Work out the output when the input is 15, and when the input is 1.
input --> [ x 6 ] --> [ - 6 ] --> output
The output is 84. Work out the input.
input --> [ - 10 ] --> output
Work out the output when the input is each of 12, 15, 19.
input --> [ - 6 ] --> [ - 7 ] --> output
Work out the output when the input is 6, and when the input is 13.
input --> [ + 9 ] --> [ x 4 ] --> output
The input is n. (a) Write an expression for the output. (b) Work out the output when n = 10.
input --> [ - 5 ] --> output
Work out the output when the input is each of 6, 7, 5.
input --> [ + 8 ] --> [ x 3 ] --> output
The output is 36. Work out the input.
input --> [ + 4 ] --> [ - 9 ] --> [ - 8 ] --> output
Work out the output when the input is 10, and when the input is 8.
input --> [ + 4 ] --> [ x 4 ] --> output
The input is n. (a) Write an expression for the output. (b) Work out the output when n = 3.
input --> [ + 5 ] --> [ - 9 ] --> output
The output is -2. Work out the input.
input --> [ x 11 ] --> output
Work out the output when the input is each of 4, 19, 13.
input --> [ x 9 ] --> [ + 4 ] --> output
Work out the output when the input is 15, and when the input is 8.
input --> [ x 4 ] --> [ + 9 ] --> output
The input is n. (a) Write an expression for the output. (b) Work out the output when n = 5.
input --> [ - 5 ] --> [ x 5 ] --> output
The output is 35. Work out the input.
input --> [ + 1 ] --> [ x 4 ] --> output
The input is n. (a) Write an expression for the output. (b) Work out the output when n = 9.
input --> [ x 3 ] --> [ -4 ] --> output
Complete the table of outputs.
input --> [ + 8 ] --> [ x 6 ] --> [ + 2 ] --> output
Work out the output when the input is 12, and when the input is 15.
input --> [ x 12 ] --> output
Work out the output when the input is each of 8, 19, 8.
input --> [ + 8 ] --> output
The output is 12. Work out the input.
input --> [ x 4 ] --> output
Work out the output when the input is each of 17, 7, 6.
input --> [ + 8 ] --> [ x 2 ] --> [ - 4 ] --> output
Work out the output when the input is 5, and when the input is 13.
input --> [ x 12 ] --> output
Work out the output when the input is each of 15, 16, 15.
input --> [ - 8 ] --> [ x 8 ] --> output
Work out the output when the input is 5, and when the input is 14.
input --> [ x 7 ] --> output
Work out the output when the input is each of 7, 10, 16.
h --> [ x 30 ] --> [ +45 ] --> C
A correct answer earns full marks unless the question asks for working, a method, proof or explanation.
Question 1
- (a) 12 caoB1
- (a) Answer: 12
- (b) 18 caoB1
- (b) Answer: 18
- (c) 2 seen (correct value after the first step, -3+5)M1
- (c) 4 caoA1
- (c) Answer: 4
Question 2
- (a) 16 caoB1
- (a) Answer: 16
- (b) 4 caoB1
- (b) Answer: 4
- (c) 6 caoB1
- (c) Answer: 6
Question 3
- 42 caoB1
- Answer: 42 (because 6 x 7 = 42).
Question 4
- 6 caoB1
- Answer: 6 (because 15 - 9 = 6).
Question 5
- (a) correct inverse operations identified: -2 and /5M1
- (a) correct order stated: output --> [ -2 ] --> [ /5 ] --> input oeA1
- (a) Answer: output --> [ -2 ] --> [ /5 ] --> input
- (b) 25 seen (27-2)M1
- (b) 5 caoA1
- (b) Answer: 5
Question 6
- (a) 15.00 seen (6 x 2.50)M1
- (a) 16.20 cao (accept 16.2)A1
- (a) Answer: £16.20
- (b) 25.00 seen (26.20-1.20)M1
- (b) complete method: 25.00 / 2.50M1
- (b) 10 caoA1
- (b) Answer: 10 passengers
Question 7
- (a) 7 caoB1
- (a) Answer: 7
- (b) correct method using the second term (ft): 7x2, then -3M1
- (b) 11 caoA1
- (b) Answer: 11
Question 8
- uses inverse operations or works backwardsM1
- 3 caoA1
- Answer: 3
Question 9
- one output correctB1
- two outputs correctB1
- all outputs correctB1
- Answer: 15, 24, 21
Question 10
- attempts to build the expressionM1
- 6n + 7A1
- 43 caoB1
- Answer: (a) 6n + 7, (b) 43
Question 11
- applies the operations in the correct orderM1
- 10 caoA1
- 1 caoB1
- Answer: 10 and 1
Question 12
- one output correctB1
- two outputs correctB1
- all outputs correctB1
- Answer: 16, -2, 11
Question 13
- attempts to build the expressionM1
- 2(n + 5)A1
- 26 caoB1
- Answer: (a) 2(n + 5), (b) 26
Question 14
- applies the operations in the correct orderM1
- 16 caoA1
- 10 caoB1
- Answer: 16 and 10
Question 15
- one output correctB1
- two outputs correctB1
- all outputs correctB1
- Answer: 11, 16, 21
Question 16
- attempts to build the expressionM1
- 4(n + 4)A1
- 52 caoB1
- Answer: (a) 4(n + 4), (b) 52
Question 17
- uses inverse operations or works backwardsM1
- all inverse operations in the correct orderM1
- 20 caoA1
- Answer: 20
Question 18
- one output correctB1
- two outputs correctB1
- all outputs correctB1
- Answer: 6, 15, 24
Question 19
- applies the operations in the correct orderM1
- 15 caoA1
- 1 caoB1
- Answer: 15 and 1
Question 20
- uses inverse operations or works backwardsM1
- all inverse operations in the correct orderM1
- 15 caoA1
- Answer: 15
Question 21
- one output correctB1
- two outputs correctB1
- all outputs correctB1
- Answer: 2, 5, 9
Question 22
- applies the operations in the correct orderM1
- -7 caoA1
- 0 caoB1
- Answer: -7 and 0
Question 23
- attempts to build the expressionM1
- 4(n + 9)A1
- 76 caoB1
- Answer: (a) 4(n + 9), (b) 76
Question 24
- one output correctB1
- two outputs correctB1
- all outputs correctB1
- Answer: 1, 2, 0
Question 25
- uses inverse operations or works backwardsM1
- all inverse operations in the correct orderM1
- 4 caoA1
- Answer: 4
Question 26
- applies the operations in the correct orderM1
- -3 caoA1
- -5 caoB1
- Answer: -3 and -5
Question 27
- attempts to build the expressionM1
- 4(n + 4)A1
- 28 caoB1
- Answer: (a) 4(n + 4), (b) 28
Question 28
- uses inverse operations or works backwardsM1
- all inverse operations in the correct orderM1
- 2 caoA1
- Answer: 2
Question 29
- one output correctB1
- two outputs correctB1
- all outputs correctB1
- Answer: 44, 209, 143
Question 30
- applies the operations in the correct orderM1
- 139 caoA1
- 76 caoB1
- Answer: 139 and 76
Question 31
- attempts to build the expressionM1
- 4n + 9A1
- 29 caoB1
- Answer: (a) 4n + 9, (b) 29
Question 32
- uses inverse operations or works backwardsM1
- all inverse operations in the correct orderM1
- 12 caoA1
- Answer: 12
Question 33
- attempts to build the expressionM1
- 4(n + 1)A1
- 40 caoB1
- Answer: (a) 4(n + 1), (b) 40
Question 34
- (a) -4 caoB1
- (a) Answer: -4
- (b) 2 caoB1
- (b) Answer: 2
- (c) 11 caoB1
- (c) Answer: 11
- (d) -7 caoB1
- (d) Answer: -7
Question 35
- applies the operations in the correct orderM1
- 122 caoA1
- 140 caoB1
- Answer: 122 and 140
Question 36
- one output correctB1
- two outputs correctB1
- all outputs correctB1
- Answer: 96, 228, 96
Question 37
- uses inverse operations or works backwardsM1
- 4 caoA1
- Answer: 4
Question 38
- one output correctB1
- two outputs correctB1
- all outputs correctB1
- Answer: 68, 28, 24
Question 39
- applies the operations in the correct orderM1
- 22 caoA1
- 38 caoB1
- Answer: 22 and 38
Question 40
- one output correctB1
- two outputs correctB1
- all outputs correctB1
- Answer: 180, 192, 180
Question 41
- applies the operations in the correct orderM1
- -24 caoA1
- 48 caoB1
- Answer: -24 and 48
Question 42
- one output correctB1
- two outputs correctB1
- all outputs correctB1
- Answer: 49, 70, 112
Question 43
- (a) multiply by 5 oe (x5)B1
- (a) Answer: x5 (multiply by 5)
- (b) 8 or 20 seen (correct value after the x2 step for either pair)M1
- (b) subtract 3 oe (-3), ftA1
- (b) Answer: -3 (subtract 3)
Question 44
- correct method shown, e.g. 3 x 4 = 12 and then 12 + 5M1
- 17 caoA1
- Answer: 17 (3 x 4 + 5 = 17).
Question 45
- attempt to add 8 then divide by 2, e.g. (10 + 8) / 2M1
- 9 caoA1
- Answer: 9 (because (10 + 8) / 2 = 9).
Question 46
- apply A then B correctly, e.g. (6 + 4) x 5M1
- 50 caoA1
- Answer: 50 (because (6 + 4) x 5 = 50).
Question 47
- (a) 15 seen (10 x 1.5)M1
- (a) 12.5 caoA1
- (a) Answer: 12.5
- (b) 7.5 seen (5+2.5)M1
- (b) complete method: 7.5 / 1.5M1
- (b) 5 caoA1
- (b) Answer: 5
Question 48
- 3k+4=19 or equivalent equation formedM1
- 3k=15 (correct rearrangement)M1
- k=5 caoA1
- Answer: k=5
Question 49
- (a) 90 seen (3 x 30)M1
- (a) 135 cao (accept £135)A1
- (a) Answer: £135
- (b) 120 seen (165-45)M1
- (b) complete method: 120 / 30M1
- (b) 4 caoA1
- (b) Answer: 4 hours
Question 50
- (a) 11 caoB1
- (a) Answer: 11
- (b) 11 seen (reverse Machine 2: (29+4)/3)M1
- (b) 5 seen (reverse Machine 1: (11-1)/2)M1
- (b) n=5 caoA1
- (b) Answer: 5
Question 51
- reverse method applied, e.g. 14 x 5 = 70M1
- 55 cao (70 - 15)A1
- Answer: 55 (because input = 14 x 5 - 15 = 70 - 15 = 55).
Question 52
- reverse method or simple algebra, e.g. 2x - 3 = 19 -> 2x = 22M1
- 11 caoA1
- Answer: 11 (because 2x - 3 = 19 -> x = 11).
Question 53
- 7x - 2 caoB1
- Answer: 7x - 2.
Question 54
- substitute 2 into f, e.g. f(2) = 2 x 2 - 7 = -3M1
- 0 cao (g(-3) = -3 + 3 = 0)A1
- Answer: 0 (f(2) = -3, g(-3) = 0).
Question 55
- substitute and form equation: g(f(x)) = (3x + 2) - 5 = 3x - 3M1
- solve 3x - 3 = 22 -> 3x = 25M1
- x = 25/3 caoA1
- Answer: 25/3.
Question 56
- form two equations: 2a + b = 11 and 5a + b = 20M1
- subtract to find a = 3M1
- substitute a to find b = 5M1
- input 11 cao (solve 3x + 5 = 38 -> x = 11)A1
- Answer: a = 3, b = 5, input = 11.
Question 57
- form equation (3/2)x - 4 = 8 or equivalentM1
- isolate x: (3/2)x = 12 -> x = 12 x 2/3M1
- 8 caoA1
- Answer: 8.
Mark your answers
Check answers without an account. Some answers can be checked automatically; use the mark scheme to mark the rest.