VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

Input, Output and Function Machines as Early Function Thinking

Function machines are often introduced as simple boxes: put a number in, apply a rule, get a number out. The picture can look elementary, but it contains the core logic of functions, algebraic substitution, inverse operations and composition.

This guide uses function machines as an early bridge into formal function thinking. The aim is to move from “do this to a number” toward a stable understanding of input, process, output, reversibility and chained transformations.

The machine idea

Suppose the machine rule is “multiply by 3, then add 2”.

input x → ×3 → +2 → output 3x+2

If x=4, the output is 14. If x=-2, the output is -4.

Why order matters

“Multiply by 3, then add 2” is not the same as “add 2, then multiply by 3”.

x → ×3 → +2 gives 3x+2
x → +2 → ×3 gives 3x+6

The machine representation makes operation order visible before formal function composition is introduced.

Worked example 1: build the rule from a machine

A machine doubles the input and subtracts 5. Write the output expression.

x → 2x → 2x-5

The rule is 2x-5.

Worked example 2: recover the input

The same machine produces output 13. What was the input?

2x-5=13
2x=18
x=9

Thinking backward through the machine gives the same result: add 5, then divide by 2.

Forward rules and inverse operations

If the forward machine is “×4 then +7”, the reverse sequence is “−7 then ÷4”. Notice that inverse operations are applied in reverse order.

This prepares students for solving equations and later inverse functions.

Chaining machines

Suppose Machine A adds 3 and Machine B squares the result. Starting from x:

x → x+3 → (x+3)²

Changing the order changes the result:

x → x² → x²+3

This is the concrete beginning of composite-function thinking.

From table to rule

Consider:

InputOutput
15
28
311
414

The output rises by 3 whenever the input rises by 1, suggesting a rule with coefficient 3. Testing 3x+2 gives all four outputs.

Function-machine thinking therefore connects patterns to algebraic generalisation.

From words to function notation

Once the machine idea is stable, formal notation becomes less mysterious.

f(x)=3x+2

This is simply the machine rule written compactly. f(5) means “send 5 through this machine”.

Why some machines cannot be reversed uniquely

Consider the machine x→x². Both 3 and -3 produce 9. If the output is 9, the original input cannot be identified uniquely unless the permitted inputs have been restricted.

This is the first hint that inverse functions require careful domain choices.

Diagnostic table

Observed mistakeLikely issueRepair
Reverses operations but not orderInverse-sequence logicTrace one numerical input backward
Changes machine order without noticingComposition orderWrite each intermediate output
Cannot turn machine into algebraRepresentation gapUse x as a general input
Assumes every machine reverses uniquelyMany-to-one mappingUse x² as counterexample

A tutor’s teaching route

  1. Begin with numerical inputs and a verbal rule.
  2. Record intermediate steps.
  3. Replace the number with x.
  4. Reverse the process to recover inputs.
  5. Chain two machines in both possible orders.
  6. Introduce f(x) notation as a compression of the same process.

Practice

  1. A machine multiplies by 5 then subtracts 4. Find the output when input is 3.
  2. The same machine gives output 21. Find the input.
  3. Write the algebraic rule for “add 2, then square”.
  4. Explain why x→x² cannot always be reversed to one unique input.

Answers

1. 11. 2. 5. 3. (x+2)². 4. Different inputs such as 3 and -3 can produce the same output 9.

Connected routes

Use What a Function Really Is for the formal definition, then continue to Domain, Range and Restrictions and Composite and Inverse Thinking Before Additional Mathematics. Return to the Mathematics Learning Hub.