Function Machines

In a Nutshell

A function machine takes a number in, does something to it, and spits a number out — algebra in action.

A function machine is a diagram that shows an operation (or chain of operations) applied to an input. You read it left to right: the input enters, the machine applies a rule, and the output comes out the other side.

When there are two machines in a row, you feed the output of the first into the second. For example, if the input is 44, the first machine says ×3\times 3 and the second says +2+ 2, then the output is 4×3+2=144 \times 3 + 2 = 14.

You can also work backwards (inverse operations). To undo ×3\times 3 you ÷3\div 3, and to undo +2+ 2 you 2- 2.

Function machine diagram Input 5 goes through × 3 to get 15, then through + 2 to get 17. 5 × 3 15 + 2 17

Try different inputs and watch the value change as it flows through each machine.

Watch it work

Question: A two-step function machine does ×2\times 2 then +5+ 5. Find the output when the input is 77.

Question 2: The output of a function machine is 2020. The machine does ×4\times 4 then 8- 8. What was the input?

Have a go

Q1. Input 66 into a machine that does ×5\times 5 then 3- 3.

Q2. Input 99 into a machine that does +4+ 4 then ×2\times 2.

Q3. The output is 1515. The machine does ×3\times 3 then +6+ 6. Find the input.

Q4. The output is 1010. The machine does +7+ 7 then ×2\times 2. Find the input.