Week 4 · Unit 2: Sequences and functions · 4 lessons
1
Function machines and mappings
Coursebook 9: Unit 2, pp. 20–22
GoalRepresent a function as a machine, an equation and a mapping, and find outputs.
New words
function · a rule that turns each input into one outputmapping · a function written with an arrow, such as x → 3x − 4input and output · the number that goes in and the number that comes out
Explanation
A function takes an input, does something to it and gives an output. You can show a function in three ways. As a function machine you draw boxes for each step. As an equation you write y = 3x − 4. As a mapping you write x → 3x − 4. All three mean ‘multiply the input by 3 and then subtract 4’. To find an output, substitute the input in place of x and follow the order of operations. To find an input from an output, you must reverse the steps; this idea becomes the inverse function in the next lesson.
Worked examples
Input x
2
5
−1
Output y
2
11
−7
The function is y = 3x − 4. Find the outputs for inputs 2, 5 and −1. For 2: 3 × 2 − 4 = 2. For 5: 3 × 5 − 4 = 11. For −1: 3 × −1 − 4 = −3 − 4 = −7.
Write ‘divide by 2 and then add 1’ as a mapping and find the output when the input is 12. The mapping is x → x/2 + 1. For 12: 12 ÷ 2 = 6 and 6 + 1 = 7.
The function y = 3x − 4 gives an output of 17. Find the input. Work backwards: add 4 to get 21, then divide by 3 to get 7. Check: 3 × 7 − 4 = 17.
Class activity
Machine game. Draw a function machine on paper with two operations. Ask a partner for an input, then tell them the output without saying the rule. After three pairs of numbers they must guess the rule, write it as an equation and a mapping, and test it with a fourth input.
Practice
1
The function is y = 4x − 3. Find the output when x = 6.
21
2
The mapping is x → x/2 + 5. Find the output when the input is 12.
11
3
The mapping is x → 5 − 2x. Find the output when the input is −3.
11
4
The function is y = 2x + 9. The output is 25. Find the input.