FA7, HA7 - Inputs and outputs
Turn an expression into a rule that acts on an input and produces an output. FA7 and this part of HA7 connect algebra to number machines: read the operations, calculate outputs in the correct order, and work backwards to recover a missing input.
Functions as rules
Two machines use the operations “multiply by ” and “add ”. One multiplies first; the other adds first. Will an input of produce the same output?
An input is the starting number. An output is the result after the rule has acted on it. The expression describes the output when the input is : multiply the input by , then add .
Function
A function is a rule that gives exactly one output for each allowed input. A number machine displays the operations in the order they act.
The input letter is a placeholder for a number. In , the multiplication is done before the addition. In , the brackets make the addition happen first. The same operations in a different order can give different functions.
Worked example 1: reading an expression as a machine
Question. Describe the machine for the output . Find its output when the input is .
Plan. Read the expression using the usual order of operations.
The machine first multiplies the input by , then adds .
Answer. Multiply by , then add ; the output is .
Check. Substitute directly into the expression: . Reversing the steps also returns : , .
Keep both operations, but put the addition inside brackets.
Worked example 2: brackets change the order
Question. Describe the machine for the output . Find its output when the input is .
Plan. Complete the bracket before multiplying.
Answer. Add , then multiply by ; the output is .
Check. Expanding gives . At , . This differs from , so the opening machines do not have the same output.
You can translate other expressions in the same way. For , divide by , then add . For , add , then divide the whole result by .
Watch out
“Multiply by , then add ” gives , not . Brackets change which quantity is multiplied.
Read the operations in a new expression.
Evaluating outputs
To calculate an output, pass the input through every operation once, in order. The result of one step becomes the input to the next.
You already know substitution: replace the letter by the whole signed input. Writing the intermediate value makes it easier to see where an error occurs. This is especially useful with negative or fractional inputs.
Worked example 3: following a two-step rule
Question. A machine multiplies by , then subtracts . Work out the output when the input is .
Plan. Multiply the input first and subtract from the intermediate result.
Answer. The output is .
Check. Undoing the steps gives , then , recovering the given input.
Change only the sign of the input. The operations themselves stay the same.
Worked example 4: using a negative input
Question. The same machine multiplies by , then subtracts . Work out its output when the input is .
Plan. Keep the negative sign during the multiplication, then subtract .
Answer. The output is .
Check. and . The recovered input has the required negative sign.
Continue this lesson.
You’re previewing NovaLearn without an account. Create a free account to read the rest.
Create free account