Inverse Functions
Undoing a function machine, swap and solve, x on the top and bottom, and squared functions with a domain.
- 7 steps
- 5 min
- 4 syllabuses
Try a real exam question on this
0580/42 · Feb/Mar 2025 · Q14 · 5 marks · Solve it step by step, the way the examiner marks it.
Loading the animated solution…
See the solution as textText version of the solution
For f(x) = 5 − 4x, evaluate the function at a value, form a composite expression in x, and find the inverse function.
(a) 1 mark
Calculate f(−3) using f(x) = 5 − 4x.
- Understand the question. The function f of x is five minus four x, and we must find the value of f at minus three.
- Substitute minus three into the function. The rule is five minus four times x, so replace x with minus three.
- f(−3) = 5 − 4 × (−3) = 5 + 12 = 17
Answer 17
(b) 2 marks
Substitute 3 − 2x into f and simplify the resulting expression.
- Understand the question. The function f of x is five minus four x, and we must find f of three minus two x, in its simplest form.
- Substitute the expression into the function. The rule is five minus four times x, so replace x with three minus two x.
- f(3 − 2x) = 5 − 4(3 − 2x)
- Expand the bracket. Four times three is twelve and four times minus two x is minus eight x, so subtracting gives minus twelve plus eight x.
- = 5 − 12 + 8x
- Collect like terms. Five minus twelve is minus seven, and the x term stays eight x.
- = 8x − 7
Answer 8x − 7
(c) 2 marks
Determine f⁻¹(x) for the function f(x) = 5 − 4x.
- Understand the question. The function f of x is five minus four x, and we must find its inverse, f to the power minus one of x.
- Find the inverse function. Start with y as the output, then swap x and y and make y the subject.
- Why does this work? The inverse function undoes the function. Its inputs are the function's outputs, and its outputs are the inputs.
- So swap x and y, then rearrange to make y the subject. That writes the undoing as a formula.
- y = 5 − 4x, swap: x = 5 − 4y
- Rearrange for y. Add four y to both sides and subtract x, so four y is five minus x.
- 4y = 5 − x
- Divide by four. y is five minus x all divided by four, so the inverse is that expression.
- f⁻¹(x) = (5 − x)/4
Answer (5 − x)/4
The lesson, step by step
Step 1 of 7
What an Inverse Does
A function is a machine: a number goes in, a new number comes out. The inverse machine runs it backwards, from the output to the input.
Worked example
- 1
— f is a two-step machine: times 3, then add 2. We want the input that gives 20.
- 2
— Go backwards and do the opposite of each step, last one first: undo +2 with −2, then undo ×3 with ÷3.
- 3
— Check by running f forwards: 6 × 3 + 2 = 20.
Common mistake
Reading as . The −1 means “undo”, not “one over”.
Key idea
The Roman writer Suetonius tells us Julius Caesar hid messages by moving each letter 3 places on: A became D. To read them, you need the inverse: move each letter 3 places back. Try it: FDW means CAT.
Step 2 of 7
Swap and Solve
To find : write y for f(x), make x the subject, then swap the letters.
Key idea
Why does this work? The inverse function undoes the function. Its inputs are the function's outputs, and its outputs are the inputs.
So swap x and y, then rearrange to make y the subject. That writes the undoing as a formula.
Worked example
- 1
— f(x) = (2x + 7) ÷ 5
- 2
— multiply both sides by 5
- 3
— take 7 from both sides
- 4
— divide by 2
- 5
— swap y back to x
Key idea
Check with a number: f(4) = 3, so must come out as 4. It does: .
Step 3 of 7
x on Top and Bottom
When x is on the top and the bottom of a fraction, gather the x terms on one side and factorise.
Worked example
- 1
— Write y for f(x). The letter x is on the top and the bottom.
- 2
— Multiply both sides by (x − 2) to clear the bottom of the fraction.
- 3
— Expand the bracket: y times x, and y times −2.
- 4
— Take 3x from both sides, so the x terms are together.
- 5
— Add 2y to both sides, so the terms without x are on the right.
- 6
— Take x out as a common factor, so x is written only once.
- 7
— Divide both sides by (y − 3).
- 8
— Swap y for x.
Common mistake
Stopping one line early. While x is in two places, it is not the subject. Factorise to get one x.
Step 4 of 7
A Squared Function (Higher)
A square has two roots, so the question gives a domain like . The domain tells you which sign to keep.
Worked example
- 1
— the function
- 2
— take 2 from both sides
- 3
— square root both sides
- 4
— x ≥ 3, so keep the plus
- 5
— swap y to x
Key idea
The inputs of f are the outputs of the inverse. Here f only gives numbers from 2 up, so the inverse only takes x ≥ 2.
Step 5 of 7
Inverse of a Quadratic (Higher)
Exams give you with a domain. Write it as a squared bracket first. Then swap and solve, and let the domain choose the sign.
Worked example
- 1
— Write y for f(x). The x terms are in two places, so complete the square.
- 2
— Take out the 2 from the x terms, so that x² has no number in front.
- 3
— Half of 4 is 2. The bracket (x + 2)² has an extra 4, so take 4 away.
- 4
— Multiply the −4 by the 2 outside the bracket.
- 5
— Work out −8 + 3.
- 6
— Add 5 to both sides.
- 7
— Divide both sides by 2.
- 8
— Square root both sides. A square has two roots.
- 9
— The domain x ≥ −2 means x + 2 is 0 or more, so keep the plus. Then take 2 from both sides.
- 10
— Swap y for x.
Key idea
The lowest value of f is , so the inverse takes . That is the same as saying the number under the root cannot be negative.
Step 6 of 7
A Function and Its Inverse
A function followed by its own inverse changes nothing. Exams use this to simplify, and to spot a function that is its own inverse.
Formula
Rule
The answer is just . It is not 1 and it is not 0. Do the function and then undo it, and you are back where you began.
Worked example
- 1
— Test whether doing f twice gives x back. If it does, f undoes itself.
- 2
— Put the whole of f(x) into f, inside a bracket.
- 3
— Remove the bracket. The minus changes the sign of every term inside, so −(9 − x) = −9 + x.
- 4
— 9 − 9 = 0, so only x is left.
- 5
— Doing f twice gets x back, so f is its own inverse.
Worked example
- 1
— Another test: is h its own inverse?
- 2
— Put 1/x into h. The bottom of the fraction is now 1/x.
- 3
— 1 divided by 1/x flips back to x, so h is its own inverse.
Key idea
Any function is its own inverse. From you get , which is the same rule.
Step 7 of 7
Which Method? Read the Question
Look at where x appears.
| You see | You do |
| x once | Undo each step, last first |
| x top and bottom | Gather x terms, factorise |
| A square and a domain | Square root, keep one sign |
| “Find ” | Solve f(x) = 3 |
| “Solve f(x) = f⁻¹(x)” | Solve f(x) = x instead |
Key idea
means . You do not always need the whole inverse.
More real exam questions on this
Solve one in Lemmara and see where every mark goes.
- 0580/42Feb/Mar 2026 · Q158 marksGiven f(x) = 10 − 2x and g(x) = 2x² + 3, find a range, an inverse function, a composite function, and evaluate an inverse for h(x) = 10^(2/x).Solve it →
- 0580/41May/Jun 2026 · Q209 marksWork with functions f, g, h and j: evaluate, solve a composite equation, find a range from a domain, and solve with an inverse.Solve it →
- 0580/42May/Jun 2026 · Q177 marksf(x) = 20 − 3x, g(x) = 64/2ˣ and h(x) = 7 + 2x. Find f(4), the inverse of h, gg(5), and solve g⁻¹(x) = 8.Solve it →
- 0580/43May/Jun 2026 · Q188 marksWork with f(x) = 3x + 1 and g(x) = 5 − 3x: solve an equation, invert, compose, then use an inverse for h(x) = 2²ˣ.Solve it →
- 4024/23May/Jun 2026 · Q156 marksWith f(x) = 6x + 8 and g(x) = (x − 1)/3, evaluate f, find an inverse, and solve a composite equation.Solve it →
- 0580/21May/Jun 2025 · Q148 marksGiven f(x) = 3x − 4 and g(x) = 4x + 1, evaluate and invert f, find the form of fg(x), and combine two fractions.Solve it →
Lemmara is an independent study tool, not affiliated with or endorsed by Cambridge International Education or Pearson Edexcel. The lessons and worked examples are Lemmara’s own.