Salam Academy
Algebra and functions · Subtopic 14 of 16

One-one and Inverse Functions

Which functions can be undone, how to find f−1(x)f^{-1}(x), why the domain of the inverse is the range of the function, and how to invert a quadratic on a restricted domain.

Cambridge 9709 Paper 1Edexcel YMA01 WMA13Edexcel 9MA0 Paper 1Edexcel 9MA0 Paper 2≈ 45 minRevision 5 · updated 2026-10-27
Section 1 of 14

Learning objectives

  • Explain what a one-one function is, and use the horizontal line test.
  • Restrict the domain of a quadratic so that it becomes one-one.
  • Find f−1(x)f^{-1}(x) by swapping xx and yy and rearranging.
  • State the domain and range of f−1f^{-1} from the range and domain of ff.
  • Choose the correct sign of a square root when inverting a quadratic.
Pause and think

Warm-up: the rule "double, then add 33" turns 55 into 1313. Which number turns into 2121? How did you work it out?

Section 2 of 14

Core idea

Start hereUndoing a code

A spy encodes a number by "double it, then add 3": 77 becomes 1717. Her partner receives 1717 and must decode it: "subtract 3, then halve" gives 77 back. The decoder is the inverse function. But some codes can't be undone. "Square it" sends both 33 and −3-3 to 99: given 99, which was it? Inverses only exist for rules that never send two inputs to the same output.

The big idea

The inverse f−1f^{-1} undoes ff: f−1(f(x))=xf^{-1}(f(x))=x. It exists only if ff is one-one. To find it, write y=f(x)y=f(x), rearrange to make xx the subject, then swap the letters. The domain of f−1f^{-1} is the range of ff, and vice versa.

1. Undoing step by step

f and its inverse undo each other
f: ×2, then +1f⁻¹: −1, then ÷23773
The inverse runs the steps backwards and in reverse order.

To undo a sequence of operations, undo each one in reverse order (like taking off socks and shoes: shoes come off first).

2. When an inverse exists

y = x² is many-one; restricting it to x ≥ 0 makes it one-one
−3−2−11231234560xyx ≥ 0 onlyy = 4 cuts twice
With the whole curve, y=4y=4 comes from x=2x=2 and x=−2x=-2. Keep only x≥0x\ge0 and every output has just one input, so an inverse f−1(x)=xf^{-1}(x)=\sqrt x exists.
  • ff must be one-one: every horizontal line meets the graph at most once.
  • A many-one function (like x2x^2 on R\mathbb R) can be made one-one by restricting the domain, e.g. to x≥0x\ge0.

3. Finding an inverse algebraically

Worked examplef(x)=3x−12f(x)=\dfrac{3x-1}{2}

Find f−1(x)f^{-1}(x) for f(x)=3x−12f(x)=\dfrac{3x-1}2, x∈Rx\in\mathbb R.

Goal
A formula for f−1(x)f^{-1}(x).
Strategy
Let y=f(x)y=f(x), make xx the subject, swap xx and yy.
  1. y=3x−12y=\frac{3x-1}2
    Name the output yy.
  2. 2y=3x−12y=3x-1
    Multiply both sides by 22.
  3. 2y+1=3x2y+1=3x
    Add 11.
  4. x=2y+13x=\frac{2y+1}3
    Divide by 33.
  5. f−1(x)=2x+13f^{-1}(x)=\frac{2x+1}3
    Rename: inputs are called xx.
Answerf−1(x)=2x+13f^{-1}(x)=\dfrac{2x+1}{3}.
✓ Checkf(5)=7f(5)=7; f−1(7)=153=5f^{-1}(7)=\frac{15}3=5 ✓.
Worked exampleA quadratic with restricted domain

f(x)=(x−2)2+1f(x)=(x-2)^2+1 for x≥2x\ge2. Find f−1(x)f^{-1}(x) and state its domain.

Goal
Formula and domain.
Strategy
Rearrange; choose the square-root sign using the restricted domain.
  1. y=(x−2)2+1y=(x-2)^2+1
    Start.
  2. y−1=(x−2)2y-1=(x-2)^2
    Subtract 11.
  3. x−2=+y−1x-2=+\sqrt{y-1}
    Square root. Since x≥2x\ge2, x−2≥0x-2\ge0: take the positive root only.
  4. f−1(x)=2+x−1f^{-1}(x)=2+\sqrt{x-1}
    Add 22; swap letters.
  5. Range of ff: f(x)≥1f(x)\ge1 (vertex (2,1)(2,1)), so domain of f−1f^{-1} is x≥1x\ge1.

Answerf−1(x)=2+x−1f^{-1}(x)=2+\sqrt{x-1}, x≥1x\ge1.
✓ Checkf(5)=10f(5)=10; f−1(10)=2+3=5f^{-1}(10)=2+3=5 ✓.
Common misconceptionf−1(x)f^{-1}(x) is not 1f(x)\dfrac1{f(x)} The −1-1 means "inverse", not a power. For f(x)=2xf(x)=2x, f−1(x)=x2f^{-1}(x)=\frac x2, but 1f(x)=12x\frac1{f(x)}=\frac1{2x}.
Finding an inverse

Always finish by stating the domain of the inverse.

Pause and think

Why can't f(x)=x2f(x)=x^2, x∈Rx\in\mathbb R have an inverse?

Summary

  • Only one-one functions have inverses.
  • y=f(x)y=f(x), make xx the subject, swap.
  • Domain of f−1f^{-1} = range of ff.
Key words
Inverse function
f−1f^{-1}, which undoes ff.
One-one
Each output comes from exactly one input.
Horizontal line testf is one-one  ⟺  every horizontal line meets y=f(x) at most oncef\ \text{is one-one}\iff\text{every horizontal line meets }y=f(x)\text{ at most once}

A quadratic is never one-one on all real numbers, but it becomes one-one if you keep only one side of its vertex. For f(x)=(x−2)2−3f(x)=(x-2)^2-3, the domain x≥2x\ge2 (or x≤2x\le2) works.

HistoryWho wrote f⁻¹ first? The notation f−1f^{-1} was introduced in 1813 by the English astronomer John Herschel. He also wrote sin⁡−1x\sin^{-1}x for the inverse sine, and two centuries of students have since confused it with 1sin⁡x\dfrac1{\sin x}.
Fun factSecret codes need inverses. A code that shifts every letter three places (A→DA\to D, B→EB\to E, …) is a function on letters, and decoding is its inverse: shift back three. If two letters were ever coded the same way, the message could not be decoded. That is why every encryption method must be one-one.
Keep reading for free

Create a free account to read the rest of this lesson: key formulae, worked examples, explore the graph, common mistakes, exam tip, guided practice and more. Your answers are checked and your progress is saved.