6.05a - Inputs and outputs
A function turns an allowed input into one output using a fixed rule. Read and write those rules as expressions or machines, follow their operation order and work backwards to recover a missing input.
Inputs and outputs
Does “multiply by 4, then subtract 1” give the same result as “subtract 1, then multiply by 4”? Try an input of 3: the first rule gives 11 and the second gives 8. A machine diagram records the order, so it can prevent a small wording change from becoming a calculation error.
A mathematical machine does not need moving parts. It is a way to describe a fixed rule. Feed in a value, apply the instruction and read out the result. The input can be negative, zero, a fraction or a decimal when the rule permits it.
Function
A function assigns exactly one output to each allowed input. The input is the value supplied; the output is the value produced by applying the rule. The same allowed input must always give the same output.
For example, “multiply by 4, then subtract 1” turns zero into . A rule containing division must avoid division by zero: “divide 6 by the input” permits and , but not zero. An excluded input has no output under that rule.
Worked example 1: following a two-step rule
Question. A machine multiplies its input by 4 and then subtracts 1. Find the output for input 3.
Plan. Apply the two operations in the stated order.
Answer. The output is 11.
Check. Undoing the final subtraction gives , and , the input.
Change only the sign of the input. The rule and its operation order stay fixed.
Worked example 2: a negative input
Question. The same machine receives input . Find the output.
Plan. Multiply the negative input first, then subtract one.
Answer. The output is .
Check. , so reversing the operations recovers the given input.
The word “input” describes a job, not a particular letter. We often use for the input and for the output, but a question may use other letters or just numbers.
Watch out
The line is wrong. After reaching , subtracting one moves further below zero to .
Follow the same rule with a new input.
Expressions as machines
An expression records the same rule compactly, but brackets decide which operations belong together.
With input and output , the rule “multiply by 4, then subtract 1” is . The rule “subtract 1, then multiply by 4” is . The brackets make the whole difference the input to the multiplication.
[DIAGRAM: asset_name: The order of two operations; asset_slug: expression-machine-order; caption: Reversing the operation order changes both the expression and the output.; description: Two horizontal machine chains begin with input x. The upper chain multiplies by four, then subtracts one, reaching output four x minus one. The lower chain subtracts one, then multiplies by four, reaching output four times the bracket x minus one. Below each chain, input three gives eleven above and eight below.]

Worked example 3: an expression without brackets
Question. Describe the machine for , and find the output when .
Plan. Read the expression using operation order, then substitute the input.
Answer. Multiply the input by 4, then subtract 1; the output is 19.
Check. Increasing the input from 3 to 5 increases by 8. The earlier output 11 should become , as it does.
Change only the bracket placement, so that subtracting one happens before multiplication.
Continue this lesson.
You’re previewing NovaLearn without an account. Create a free account to read the rest.
Create free account