POPStudying

Pearson Edexcel 4MA1 IGCSE  ·  Topic G2.8

G2.8 Function Machines

Image  ·  914 × 270

01 — Explanation

What is a function machine?

A function machine represents a rule as a sequence of operations: an input goes in, is transformed step by step, and an output comes out. It's a visual bridge between arithmetic and algebra — the same machine that computes "input ×2\times 2, then +1+1" is just a diagram for the formula y=2x+1y = 2x+1.

02 — Explanation

How do I find an output from a given input?

Apply each operation in order, left to right, using the result of one step as the input to the next.

Example: input −4-4, operations "×2\times 2" then "+1+1": −4×2=−8-4 \times 2 = -8, then −8+1=−7-8+1=-7.

Exam Tip

these are quick, reliable marks — always show each intermediate value rather than jumping straight to the output, since a slip part-way through can still earn a method mark if the working is visible.

03 — Explanation

How do I work backwards to find an input from an output?

Reverse both the order of operations and each operation itself (addition ↔ subtraction, multiplication ↔ division). The last operation applied going forward must be the first one undone.

Example: a machine applies "×3\times 3" then "+15+15", and the output is 48. Reverse order: undo +15+15 first (48−15=3348-15=33), then undo ×3\times 3 (33÷3=1133 \div 3 = 11). Input =11= 11.

Common Mistake

undoing the operations in the same left-to-right order instead of reversing it — e.g. calculating (48−15)÷3(48-15)\div3 when the machine was ÷3\div3 then −15-15 is correct, but the reverse order must always match which operation was actually applied last.

04 — Explanation

How do I build a function machine from an algebraic expression?

Identify which operation touches the variable first. In b=a−35b = \dfrac{a-3}{5}, the subtraction happens before the division (it's inside an implied bracket), so the machine is "subtract 3" → "divide by 5". A quick check: substitute a simple number for the variable and see which calculation you do first.

05 — Explanation

How can I use a function machine to solve an equation?

Draw the machine for the expression, then work backwards from the given output using inverse operations.

Example: solve x2−6=3\dfrac{x}{2} - 6 = 3. The machine is "÷2" then "−6", with output 3. Reverse: add 6 first (3+6=93+6=9), then multiply by 2 (9×2=189\times2=18). So x=18x=18.

06 — Worked example

Worked exam-style question

A machine applies "+5" then "×3" to an input, giving an output of 24. Find the input, then check your answer.

  1. Reverse order, undo "×3" first: 24÷3=824 \div 3 = 8.
  2. Undo "+5": 8−5=38 - 5 = 3.
  3. Check by running 3 forward through the original machine: 3+5=83+5=8, then 8×3=248\times3=24 ✓.

Answer: the input is 3. Always finish with this forward check — it catches order-of-operations errors before you commit to a final answer.

Exam Tip

function machine questions typically appear in three guises — forward (find the output), reverse (find the input), or "fill in the missing operation". All three use the same underlying skill, so a student fluent in reversing operations correctly can handle any variant with equal confidence.