Sequences and functions
Representing simple functions
A function machine takes a number in and puts a different one out. Run it backwards and you can find what went in.
Function machines
A FUNCTION is a relationship between two sets of numbers. You can draw it as a FUNCTION MACHINE. The numbers you put in are the INPUT. The numbers that come out are the OUTPUT. A machine that adds 3: input 2 โ +3 โ output 5 input 4 โ +3 โ output 7 input 5 โ +3 โ output 8 That is a ONE-STEP function machine, because it does one thing.
Mapping diagrams
You can also draw a function as a MAPPING DIAGRAM: two number lines, with arrows joining each input to its output. For the 'add 3' machine, 2 maps to 5, 4 maps to 7, and 5 maps to 8. 'Maps to' is just another way of saying 'goes in and comes out as'.
Working backwards
To find the OUTPUT, apply the rule. To find the INPUT, work backwards using the INVERSE OPERATION. For a 'ร 2' machine: input 1 โ output 2 input 3 โ output 6 output 10 โ what was the input? Instead of multiplying by 2, DIVIDE by 2: 10 รท 2 = 5. The inverse of adding is subtracting. The inverse of multiplying is dividing.
Worked examples
An 'add 3' machine with input 4
- Apply the rule to the input.
- 4 + 3 = 7.
Answer: Output 7
A 'ร 2' machine with output 10 โ what went in?
- Work backwards with the inverse operation.
- Instead of ร 2, do รท 2.
- 10 รท 2 = 5.
Answer: Input 5
What does 2 map to on the 'add 3' machine?
- 2 + 3 = 5.
Answer: 5
The inverse of adding
- Adding is undone by taking away.
Answer: Subtracting
The inverse of multiplying
- Multiplying is undone by sharing out.
Answer: Dividing
An 'add 3' machine with output 12
- Work backwards: subtract 3.
- 12 โ 3 = 9.
Answer: Input 9
Where you see this in real life
- A currency converter is a function machine: pounds in, euros out, one fixed rule.
- Working out how much you started with after spending ยฃ8 is running the machine backwards โ the inverse operation.
Key words
- Function
- a relationship between two sets of numbers
- Function machine
- a diagram showing a function as input, rule and output
- Input
- the number that goes in
- Output
- the number that comes out
- Mapping diagram
- a diagram with arrows joining inputs to outputs
- Inverse operation
- the operation that undoes another
- One-step function
- a machine that does just one thing
- Maps to
- goes in and comes out as
- Rule
- what the function machine does to the input