A7 - Functions as inputs and outputs
A function turns each allowed input into one output. You will read rules, calculate input-output tables and recover an input by reversing a process, checking when an input is allowed and when an output is possible.
Rules connecting inputs and outputs
A number machine multiplies an input by three and then adds two. It displays . What went in? You could try numbers until one works, but understanding the rule will let you work forwards and backwards reliably.
You already know
Substitution replaces a letter with its value. In , multiplication comes before addition; instead adds two before multiplying.
With input , the machine produces . We can write its rule as : names the input and names the output.
Function
A function is a rule assigning exactly one output to each allowed input. The set of allowed inputs is its domain. Different inputs may share an output; one input cannot have two different outputs under the same rule.
Read a rule in the order of its operations, then substitute into the whole expression.
Worked example 1: a positive input
Question. A rule is . Find the output when .
Plan. Replace with , multiply, then add.
Why multiply first? The rule says three times the input, then two more. Adding first would calculate a different rule.
Answer. The output is .
Check. is different, confirming why the brackets and operation order matter.
The next example changes only the input's value. The rule stays exactly the same, even when the input is negative.
Worked example 2: a negative input
Question. For , find the output when .
Plan. Put the negative input in brackets and follow the original operations.
Why use brackets? The input is the complete number ; writing it clearly protects its sign.
Answer. The output is .
Check. Tripling a negative input gives ; adding two must move it two places right, to .
The diagram shows both directions for the first input. Follow the top row now; we will use the bottom row in the final part.
[DIAGRAM: asset_name: A function rule and its reverse process; asset_slug: 1ma1_m19_reverse_machine; caption: The forward rule multiplies by three then adds two; the reverse subtracts two then divides by three.; description: Two rows show input 4 leading through multiply by 3 to 12 then add 2 to output 14, and output 14 leading through subtract 2 to 12 then divide by 3 to input 4. Blue denotes the original input, sage the original output, and clay intermediate values.]

A surprising feature of a function is that it can lose information. Squaring sends both and to , yet it is still a function: each individual input has only one output. The rule gives the non-negative square root, so input gives , rather than two outputs.
Watch out
Wrong: “A rule is not a function if two inputs have the same output.” Right: the one-output condition applies to each input. Shared outputs are allowed.
Keep the same machine and change only the input again.
Input-output tables and restrictions
A table records selected input-output pairs. Calculate each entry using the rule, rather than guessing that the last change will repeat.
For a linear rule such as , increasing the input by one always increases the output by three. A squared rule behaves differently.
Worked example 3: a table for a squared rule
Question. Find the outputs of for inputs .
Plan. Square each complete input, then subtract one.
Why not continue a difference pattern? The output changes are , rather than one constant change.
Answer. In input order the outputs are .
Check. Opposite inputs have equal squares, so the two outer outputs match and the next pair match.
Change only the constant being subtracted, from one to four. Every output will be three lower.
Continue this lesson.
You’re previewing NovaLearn without an account. Create a free account to read the rest.
Create free account