IB Maths AA HL Topic 2 — Functions Paper 1 & 2 ~9 min read

Inverse Functions

An inverse function f−1 is a function that undoes what f does. Feed an output back through f−1 and you get the original input. Practically that means inverses are useful for solving equations — if you can build f−1, then f(x) = k becomes x = f−1(k) immediately. The mechanics are short: swap x and y, rearrange. The catches are about whether the inverse exists at all and getting the domain right.

📘 What you need to know

What an inverse actually does

Inverse property f(f−1(x)) = x   and   f−1(f(x)) = x

Quick demo. If f(x) = 4x, then f−1(x) = x/4. Check: f(f−1(20)) = f(5) = 20. The inverse “undid” the original. The composition ff−1 just gives back the input — that’s called the identity function, id(x) = x.

Important warning:   f−1(x) is the inverse function. The reciprocal is 1/f(x) = [f(x)]−1. They look similar but are entirely different concepts. Don’t confuse them.

What an inverse looks like on a graph

Reflecting a graph in the line y = x swaps the x and y coordinates of every point. So if (a, b) is on y = f(x), then (b, a) is on y = f−1(x).

f and its inverse — reflections in y = x
x y O y = x y = f(x) y = f⁻¹(x) (a, b) (b, a)
If y = f(x) crosses the line y = x, the inverse curve passes through the same point — fixed points of f are also fixed points of f−1.

How to find f−1(x) — the swap method

🧭 Recipe — finding an inverse algebraically

  1. Write y = f(x).
  2. Swap x and y everywhere.
  3. Rearrange to make y the subject.
  4. The result is f−1(x).
  5. State its domain (this equals the range of the original f).

Domain and range swap

Domain of f ⟶ Range of f−1
inputs become outputs
e.g. domain of f is x ≥ 2 → range of f−1 is f−1(x) ≥ 2
Range of f ⟶ Domain of f−1
outputs become inputs
e.g. range of f is f(x) ≥ 5 → domain of f−1 is x ≥ 5

When does an inverse exist?

An inverse function f−1 exists only if f is one-to-one. If f is many-to-one, the “inverse” would have to give multiple outputs for one input — which is forbidden for a function.

Horizontal line test f has an inverse  ⟺  every horizontal line crosses the graph of f at most once

Restricting the domain to force one-to-one

Many-to-one functions can be made one-to-one by restricting the domain. The classic example is f(x) = x2: it’s many-to-one over all of ℝ, but if you restrict to x ≥ 0 it becomes one-to-one and the inverse is √x.

Quadratic a(xh)2 + k
restrict to xh  or  xh
cut at the vertex’s x-coordinate
Trig functions
use one cycle, e.g. −π/2 ≤ x ≤ π/2 for sin
pick an interval where the function is monotonic

Worked examples

WE 1

Find the inverse of a linear function

Find f−1(x) for f(x) = 4x + 9.

Step 1: Write y = f(x) y = 4x + 9 Step 2: Swap x and y x = 4y + 9 Step 3: Rearrange for y x − 9 = 4y y = (x − 9) / 4 f⁻¹(x) = (x − 9)/4 check: f(2) = 17, f⁻¹(17) = 8/4 = 2 ✓
WE 2

Inverse of a rational function

Find f−1(x) for f(x) = 3x + 2x − 1, x ≠ 1.

Step 1: Set y = f(x) and swap y = (3x + 2)/(x − 1) swap → x = (3y + 2)/(y − 1) Step 2: Multiply both sides by (y − 1) x(y − 1) = 3y + 2 xy − x = 3y + 2 Step 3: Get y terms on one side xy − 3y = x + 2 y(x − 3) = x + 2 y = (x + 2)/(x − 3) f⁻¹(x) = (x + 2)/(x − 3),   x ≠ 3 check: f(2) = 8/1 = 8; f⁻¹(8) = 10/5 = 2 ✓
WE 3

Find domain and range of an inverse

f(x) = 2x − 5 has domain 0 ≤ x ≤ 10. Find the domain and range of f−1(x).

Step 1: Find range of f (linear, increasing) f(0) = −5,   f(10) = 15 range of f: −5 ≤ f(x) ≤ 15 Step 2: Swap roles for the inverse domain of f⁻¹ = range of f range of f⁻¹ = domain of f domain of f⁻¹: −5 ≤ x ≤ 15;   range: 0 ≤ f⁻¹(x) ≤ 10 no need to find an actual formula for f⁻¹ — the swap rule alone gives the answer
WE 4

Restrict a quadratic to make it invertible

Let f(x) = (x + 3)2 − 4. (a) State the largest possible value of m such that f(x), xm is one-to-one. (b) Find f−1(x) and state its domain.

(a) Find the vertex in completed-square form, vertex is at (−3, −4) to be one-to-one, restrict to x ≥ −3 (right half) or x ≤ −3 (left half) (a) m = −3 (b) Swap and rearrange y = (x + 3)² − 4 swap → x = (y + 3)² − 4 x + 4 = (y + 3)² y + 3 = ±√(x + 4) y = −3 ± √(x + 4) Pick the right sign — range of f⁻¹ = domain of f = x ≥ −3 need f⁻¹(x) ≥ −3 → take the + root range of f (when x ≥ −3): f(x) ≥ −4 → domain of f⁻¹ is x ≥ −4 f⁻¹(x) = −3 + √(x + 4),   x ≥ −4 check: f(0) = 5; f⁻¹(5) = −3 + 3 = 0 ✓
WE 5

Multi-part inverse question

The function f(x) = (x − 4)2 + 1, xm, has an inverse.
(a) State the smallest value of m.   (b) Find f−1(x).   (c) State the domain of f−1(x).   (d) Find k such that f(k) = 17.

(a) Vertex at (4, 1) — restrict to x ≥ 4 for one-to-one (a) m = 4 (b) Swap and rearrange y = (x − 4)² + 1 → swap: x = (y − 4)² + 1 x − 1 = (y − 4)² y − 4 = ±√(x − 1) range of f⁻¹ = domain of f = y ≥ 4 → take + root (b) f⁻¹(x) = 4 + √(x − 1) (c) Range of f when x ≥ 4 starts at 1, increases range of f: f(x) ≥ 1 → domain of f⁻¹ is x ≥ 1 (c) domain of f⁻¹: x ≥ 1 (d) f(k) = 17 ⟺ k = f⁻¹(17) k = 4 + √(17 − 1) = 4 + √16 = 4 + 4 (d) k = 8 check directly: f(8) = (8−4)² + 1 = 16 + 1 = 17 ✓
WE 6

Verify the inverse property using composition

For f(x) = 5x − 3, find f−1(x) and verify that f(f−1(x)) = x.

Step 1: Find inverse y = 5x − 3 → swap: x = 5y − 3 y = (x + 3)/5 f⁻¹(x) = (x + 3)/5 Step 2: Compute f(f⁻¹(x)) f(f⁻¹(x)) = f((x + 3)/5) = 5 · (x + 3)/5 − 3 = (x + 3) − 3 = x ✓ f⁻¹(x) = (x + 3)/5;   f(f⁻¹(x)) = x as required this composition check is the cleanest way to verify your inverse is correct

💡 Top tips

⚠ Common mistakes

Inverse functions show up constantly in IB — solving exponential and log equations, inverse trig, and (later) chain-rule integration all hinge on knowing how to invert. The next note covers odd and even functions — special functions whose graphs have symmetry and whose properties make a lot of calculus problems much faster.

Need help with Inverse Functions?

Get 1-on-1 help from an IB examiner who knows exactly what Paper 1 & 2 are looking for.

Book Free Session →