Forming, using and solving equations are skills needed in many different situations. From balancing accounts to making sense of a mobile phone bill, solving equations is a vital skill.
A function machine is a way of writing rules using a flow diagram.
The equation \(3h - 6 = 9\) can be shown on a function machine by writing out the functions that have been applied to \(h\) in the order they happened. BIDMAS means multiplications happen before subtractions.
\(3h - 6 = 9\) means \(h\) has been multiplied by 3 and then 6 has been subtracted. The answer is 9.
On a function machine, this would look like this.
Example
Create a function machine for the equation \(6h + 7 = 43\).
\(6h\) means \(6 \times h\), so \(h\) has been multiplied by 6. Then 7 has been added. The answer is 43.
Begin with the letter \(h\), and then show in order what functions have been applied to the letter.
Using function machines to solve equations
Function machines can be used to solve equations by reversing, or finding the inverse operationInverse operations are opposite calculations often used in solving equations. To remove +9 from a sum, perform the inverse operation which is -9. of the steps.
Example
Solve the equation \(3h - 6 = 9\) 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:
\(9 + 6 = 15\)
\(15 \div 3 = 5\)
So: \(h = 5\)
Check this answer by substituting \(h = 5\) into the original equation:
\(3h - 6 = 9\)
\(3 \times 5 - 6 = 9\)
\(15 - 6 = 9\)
\(9 = 9\)
The equation balances, so \(h = 5\) is the correct answer.