GoalUse a function machine to find an output from an input, and an input from an output.
New words
input · a number you put into the machineoutput · the number the machine gives backfunction machine · a machine that does the same rule to every number put into it
Explanation
A function machine takes an input, follows a rule, and gives an output. If the rule is × 4, the input 3 gives the output 12. We can show a machine as a row of a table: input, rule, output. To find an output, follow the rule. To find an input, work backwards using the inverse operation. The inverse of + is −, the inverse of − is +, the inverse of × is ÷ and the inverse of ÷ is ×. If the rule is + 8 and the output is 15, the input is 15 − 8 = 7. One machine can take many inputs, and each input has its own output.
Input
Rule
Output
3
× 4
12
5
× 4
20
Worked examples
Input
Rule
Output
2
× 4
8
5
× 4
20
9
× 4
36
A machine has the rule × 4. Find the outputs for the inputs 2, 5 and 9. 2 × 4 = 8, 5 × 4 = 20, 9 × 4 = 36.
Input
Rule
Output
12
− 7
5
20
− 7
13
A machine has the rule − 7. Find the outputs for the inputs 12 and 20. 12 − 7 = 5 and 20 − 7 = 13.
Input
Rule
Output
?
+ 8
15
?
÷ 3
6
Find the inputs. First machine: rule + 8, output 15, so the input is 15 − 8 = 7. Second machine: rule ÷ 3, output 6, so the input is 6 × 3 = 18.
Class activity
Be the machine: choose a rule such as × 2, + 3 or − 1 and tell your partner. Your partner says an input and you give the output. After five inputs, change the game. Say an output and ask your partner for the input, using the inverse operation. Swap roles.
Practice
1
A machine has the rule × 3. Find the outputs for the inputs 4, 7 and 10.
Input
Rule
Output
4
× 3
?
7
× 3
?
10
× 3
?
12, 21 and 30
2
A machine has the rule ÷ 5. Find the outputs for the inputs 15, 40 and 100.
Input
Rule
Output
15
÷ 5
?
40
÷ 5
?
100
÷ 5
?
3, 8 and 20
3
Find the missing inputs.
Input
Rule
Output
?
+ 9
14
?
× 6
42
5 and 7
4
A machine has the rule − 5. Find the outputs for the inputs 11 and 5. What input gives the output 9?