Function Machines and Function Notation | AQA GCSE Maths notes
Free preview: Function Machines and Function Notation
Function Machines: Inputs and Outputs
Foundation and Higher (the last page is Higher only)
Think of a vending machine. You put something in, it does the same job every time, and something comes out. A function machine works the same way with numbers. Put in 5, it multiplies by 3 and adds 4, and out comes 19. Every time.
Words you must know
- A function is a rule that turns each input into exactly one output.
- A function machine shows the rule as a row of boxes. Each box does one operation (add, subtract, multiply, divide, square, ...).
- The input goes in on the left. The steps happen in order, left to right.

What the picture shows
- Forwards (blue): , then . The output is 19.
- Backwards (pink): start from the output 19 and undo each box. That is on the next page.
Recipe: using a function machine
- Put the input in on the left.
- Do the first box's operation, then the next, and so on. Write the number between boxes.
- The last number is the output.
๐ Watch me do it: the machine is ร2 then โ5. Find the outputs for inputs 1, 4 and โ3.
| What I write | Why I do it |
|---|---|
| 1: , . | Follow the boxes in order. |
| 4: . | Same rule every time. |
| โ3: , . | Careful with negatives: going 5 further down from โ6 gives โ11. |
A machine is an expression
- Put a letter in instead of a number. Input : , then .
- So the machine "ร3 then +4" is the expression . Putting in gives , as before.
- Order matters. "+4 then ร3" gives . Input 5 gives 27, not 19. The brackets show the adding happens first.
๐ก In plain words
- A function machine and an expression are two ways of writing the same rule.
- Brackets in the expression mean "this box came first".
โ๏ธ YOUR TURN 1
Try this first:
The machine is รท2 then +7.
- Find the output when the input is 10.
- Find the output when the input is โ6.
- Write the output when the input is .
Answer:
- , .
- , .
Input-output tables
- A table lists several inputs and their outputs side by side. It is a quick way to see the pattern a machine makes.
- For ร3 then +4: inputs 0, 1, 2, 3 give outputs 4, 7, 10, 13. Each time the input goes up by 1, the output goes up by 3 (the number you multiply by).
- The output for input 0 is 4 (the number you add). You will use both facts on the next page to work out a machine's rule.
โ๏ธ YOUR TURN 2
Try this first:
Draw a function machine for each expression.
Answer:
- ร5 then โ1.
- โ1 then ร5.
- square then +3.
Running a Function Machine Backwards
Now the puzzle goes the other way: you know the output and want the input. Think of getting dressed: socks then shoes. To undo it, you take off your shoes first, then your socks. The last thing you did is the first thing you undo.
Unlock the full note: start 7 days free.
Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.
Log in ยท Subscribe ยท Start free trial
All notes in Functions and Iteration
- Function Machines and Function Notation
- Inverse Functions and Composite Functions
- Solving Equations by Iteration
What's inside for this topic
3 teacher notes, 51 practice questions, 43 flashcards, 3 quizzes.
Get the full notes, every practice question, flashcards, quizzes and mock papers.
Next note: Inverse Functions and Composite Functions