Function Machines and Function Notation | OCR 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.

Function Machines and Function Notation diagram

What the picture shows

  1. Forwards (blue): 5×3=15, then 15+4=19. The output is 19.
  2. Backwards (pink): start from the output 19 and undo each box. That is on the next page.

Recipe: using a function machine

  1. Put the input in on the left.
  2. Do the first box's operation, then the next, and so on. Write the number between boxes.
  3. 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 writeWhy I do it
1: 1×2=2, 2−5=−3.Follow the boxes in order.
4: 8−5=3.Same rule every time.
โˆ’3: −3×2=−6, −6−5=−11.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 x: x×3=3x, then 3x+4.
  • So the machine "ร—3 then +4" is the expression 3x+4. Putting in x=5 gives 3×5+4=19, as before.
  • Order matters. "+4 then ร—3" gives (x+4)×3=3(x+4)=3x+12. 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.

  1. Find the output when the input is 10.
  2. Find the output when the input is โˆ’6.
  3. Write the output when the input is n.

Answer:

  1. 10÷2=5, 5+7=12.
  2. −6÷2=−3, −3+7=4.
  3. n2+7

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.

  1. 5x−1
  2. 5(x−1)
  3. x2+3

Answer:

  1. ร—5 then โˆ’1.
  2. โˆ’1 then ร—5.
  3. 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

  1. Function Machines and Function Notation
  2. Inverse Functions and Composite Functions
  3. 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.

Start your free 7-day trial

Questions? Chat with us on WhatsApp ยท Try one live lesson

Next note: Inverse Functions and Composite Functions

Function Machines and Function Notation on other exam boards

All OCR GCSE Maths topics ยท GCSE Maths