top of page

18.3 Functions

GCSE Maths Foundation · AQA · Chapter 18: Functions and sequences

What is in the full lesson (11 activities)

Every item below opens free in the course.

A free AQA GCSE Maths Foundation lesson (8300) from OBA School: function machines, inputs and outputs, working backwards, finding a rule and generating sequences (AQA 8300: A7). Watch the video, read the explanation and worked examples, then try the revision questions. You can work through the full lesson, with interactive activities, practice quizzes and printable worksheets, in our free online course.

What you will learn

  • Use a one-step or two-step function machine to find outputs
  • Work backwards through a function machine to find the input
  • Find the rule of a function machine from its inputs and outputs
  • Write a function machine in algebra and use it to make a sequence

Key words

  • Function: A rule that changes every input into exactly one output.
  • Input: The number that goes into the function.
  • Output: The number that comes out after the rule has been used.
  • Function machine: A diagram showing the operations of a function in order, from left to right.
  • Inverse operation: The operation that undoes another one: + and − undo each other, × and ÷ undo each other.

Using a function machine

A function machine shows the operations in order. Put the input in on the left, do each operation in turn, and the output comes out on the right.

Worked example: outputs from a two-step machine

Use the machine above to find the outputs for the inputs 1, 2, 3, 4 and 5.
Input 1: 1 × 3 = 3, then 3 + 4 = 7. Input 2: 2 × 3 + 4 = 10.
Inputs 3, 4 and 5 give 13, 16 and 19.

Answer: 7, 10, 13, 16, 19

Notice that the outputs go up by 3 each time: the inputs 1, 2, 3, ... make a sequence. The "× 3" step gives the 3 times table, and the "+ 4" step moves it up by 4.

Key fact: Order matters. "× 3 then + 4" sends 5 to 19, but "+ 4 then × 3" sends 5 to 27.

Working backwards to find the input

If you know the output, start at the right and work backwards. Do the inverse of each operation, in reverse order.

  • Inverse; + 4 − 4; − 4 + 4; × 3 ÷ 3; ÷ 3 × 3

Worked example: finding the input

The output of the "× 3 then + 4" machine is 31. Work out the input.
Undo "+ 4": 31 − 4 = 27. Undo "× 3": 27 ÷ 3 = 9.
Check forwards: 9 × 3 + 4 = 27 + 4 = 31. Correct.

Answer: 9

Finding the rule

For a one-step rule, test each input and output: is the output a fixed amount more, less, times or divided? Check the rule works for every pair.

For a two-step rule "× something, then + or − something", put the inputs in order 1, 2, 3, ... When the input goes up by 1, the output goes up by the number you multiply by.

  • Output; 1 5; 2 7; 3 9; 4 11

Functions in algebra

If the input is x and the output is y, you can write the machine as an equation. Follow the machine and build the expression one step at a time.

Worked example: writing the rule

The machine x → × 2 → − 1 → y has input x and output y. Write it as an equation, and find y when x = 8.
x → × 2 → 2x → − 1 → 2x − 1, so y = 2x − 1.
x = 8: y = 2 × 8 − 1 = 15

Answer: y = 2x − 1, and y = 15

Worked example: add first, then multiply

A machine is "+ 4, then × 3". Write the output for the input x.
x + 4 comes first. Multiplying the whole thing by 3 needs brackets.

Answer: 3(x + 4), which is 3x + 12

Common mistakes

  • Working backwards in the wrong order. Start from the output and undo the last operation first.
  • Using the same operation instead of the inverse when working backwards: undo "+ 4" with "− 4", not "+ 4".
  • Writing x + 4 × 3 for "+ 4, then × 3". This means x + 12. You need brackets: 3(x + 4).
  • Finding a rule from one pair only. 2 → 6 could be "× 3" or "+ 4". Check every pair in the table.

Revision questions

Try these, then check your answers below each one.

Question 1. A function machine is "× 4, then + 5". Work out the output when the input is 6.

Answer: 29

Working: 6 × 4 = 24, then 24 + 5 = 29.

Question 2. A function machine is "- 3, then × 2". Work out the output when the input is 10.

Answer: 14

Working: 10 - 3 = 7, then 7 × 2 = 14.

Question 3. A function machine is "× 3, then - 8". The output is 13. Work out the input.

Answer: 7

Working: 13 + 8 = 21, then 21 ÷ 3 = 7. Check: 7 × 3 - 8 = 13.

Related lessons

Continue in the full course

This lesson is section 18.3 (AGCMF1803) of our free AQA GCSE Maths Foundation course. In the full course you get every video for this section, an animated interactive lesson, a self-marking practice quiz, a printable worksheet with a mark scheme, and your progress saved. Go to the full AQA GCSE Maths Foundation course.

This lesson is part of the free GCSE Maths Foundation course. You can also browse all our free GCSE courses.

 

 

 

 

 

 

 

Previous
Next
bottom of page