Here’s how to work with function machines step by step.
Key words
function
A rule that assigns one output value to each input.
input
The variable you start with, usually called x.
output
The result after applying the function rule.
inverse function
Reverses a function, swapping its inputs and outputs.
How to do it
Write the machine’s rule as y = f(x).
Substitute the input into the rule to find an output.
Set the output equal to the given value and solve for x to find the input.
Check that every arithmetic operation is performed correctly.
Watch out for
Confusing the output with the input when reversing a machine.
Adding numbers instead of multiplying or dividing during reverse steps.
Forgetting that the inverse operation must undo the original operation.
Remember: The rule for this machine is y = 4x - 3. To find an input from an output, rearrange to x = (y+3)/4.
Functions Core
A function gives an output for every input. Understanding how to write a function, find its inverse and form composites is essential.
Key words
f(x)
output expressed as a function of the input x
How to do it
Recognise a rule that assigns an output to each input; write it as \(y=f(x)=\dots\).
To find the inverse, swap the roles of the variables: replace \(y\) by \(x\) and \(x\) by \(y\), then solve for the new \(y\).
Rename the solved variable back to \(x\); this gives \(f^{-1}(x)=\dots\).
For a composite, write \((fg)(x)=g(f(x))\); substitute the whole expression of \(f(x)\) into \(g\).
Always check that you are using the correct order and that each part’s domain is respected.
Watch out for
Many pupils write \(f^{-1}(x)\) without actually interchanging variables and solving; they forget to isolate the new output.
Some mix up the order of composition, using \(fg(x)=f(g(x))\) instead of \(g(f(x))\); remember that the right‑most function is applied first.
A common mistake is treating the equation \(x+3=3x\) as a simple step, not recognising it changes the input; this can cause swapping 3 and 5 incorrectly or outputting "3" instead of the correct value.
Remember: When finding an inverse, you undo what the function does: division becomes multiplication, subtraction becomes addition, etc.
Functions Stretch
A function maps each input to exactly one output. When we write a rule such as f(x)=5x+3, the whole expression is the function f; its rule takes x (independent variable) to y (dependent). For any value of x that makes sense in the rule, f(x) gives the corresponding output.
Key words
inverse
the function that reverses the input-output relationship – if f(a)=b then f⁻¹(b)=a.
composite
applying one function after another; (f∘g)(x) = f(g(x)).
How to do it
Find any equations linking the unknown constants from the given conditions, for example by substituting known inputs into g or using a value that appears in both functions.
If an inverse is required, solve y=f(x) for x to get f⁻¹(y). A linear rule gives f⁻¹(x)=\(\frac{x-constant}{coefficient}\).
Replace the output of one function with the input expression of the other – this is the composite step, but here we usually equate an inverse result to a value produced by g.
Collect terms to form algebraic equations in the unknown constants and solve them normally.
Watch out for
Confusing the order of operations when building f(x); for example treating x+3 as 3x or mis‑applying distributive laws.
Thinking that in an inverse we simply swap numbers without ensuring the operation is correctly inverted; e.g. assuming f⁻¹(33) means 5×33-3 instead of (33-3)/5.
Using 1/f(x) for the inverse, which is division not swapping input and output.
Remember: When you see an expression like f(g(x)), remember it means ‘first apply g, then f’; don’t mistake it for multiplication or other operations.
✏️ Try 3 quick questions
Let the function \(f\) be defined by \(y = 2x + 3\). What is \(f(4)\)?
Let \(f(x)=2x+5\). Find the value of \(x\) such that \(f(x)=23\).
For the function \(f(x)=5x-9\), find \(f^{-1}(21)\).
There are more on this in 4 Triangles, with hints and worked answers, and real past-paper questions. Carry on there.
Practise it with real exam questions
4 Triangles has quick questions on functions, real GCSE past-paper questions with their mark schemes, and a revision plan that picks what to work on next.
Questions on this topic for a lesson, homework or revision - a quick "do now", misconception questions, small steps that change one thing at a time, and practice, with answers on the last page.
A function is a mathematical relationship that uniquely maps values of one set to the values of another set.
Equation
An equation is used to show 2 expressions that are equal to each other.
Domain
The domain of a function is the set of values that the mapping is performed on.
Range
The range of a function is the set of values mapped to by the function and the stated domain.
Transformation
A transformation is a process that may change the size, orientation or position of a shape or graph.
Frequency
The frequency is the number of times an event occurs; or the number of individuals (people, animals etc.) with some specific property.
Mean
The (arithmetic) mean for a set of numerical data is the sum of the values divided by the number of values. It is a measure of central tendency representing the average of the values.
Median
The median is the central (middle) piece of data when the data are in numerical order. It is a measure of central tendency representing the average of the values.
Mode
The mode is the most frequent value. It is a measure of central tendency representing the average of the values.
Inverse function
An inverse function reverses the mapping of the original function.
Many definitions from Oak National Academy (Open Government Licence).