A function machine is a way of writing rules using a flow diagram.
The equation can be shown on a function machine by writing out the functions that have been applied to in the order they happened. BIDMAS means multiplication happens before subtraction.
means has been multiplied by 3 and then 6 has been subtracted. The answer is 9.
On a function machine, this would look like this.
Create a function machine for the equation .
means , so has been multiplied by 6. Then 7 has been added. The answer is 43.
Begin with the letter , and then show in order what functions have been applied to the letter.
Function machines can be used to solve equations by reversing, or finding the inverse of the steps.
Solve the equation using a function machine.
Firstly, write the equation as a function machine.
Then, find the inverse of each step. This means turning multiplications into divisions and subtractions into additions. Also, instead of starting at the beginning of the function machine, now start at the end.
Now follow the function machine in reverse:
Check this answer by substituting into the original equation:
The equation balances, so is the correct answer.