1.02PureStretch

Inverse Functions

If f\mathrm{f} converts Celsius to Fahrenheit, its inverse\textbf{inverse} f−1\mathrm{f}^{-1} converts back. Finding an inverse is mostly careful rearrangement, but the real content of this lesson is the conditions: an inverse only exists for a one-to-one function, and its domain and range are the original’s range and domain, swapped.

40 min Functions

The big picture

An inverse function reverses a mapping, so applying a function and then its inverse returns you exactly where you started: f−1f(x)=x\mathrm{f}^{-1}\mathrm{f}(x) = x. That requirement is why many-to-one functions have no inverse — if two inputs share an output, there is no single way back. The fix, restricting the domain, is how x\sqrt{x}, ln⁡x\ln x and the inverse trigonometric functions are defined at all. Graphically, swapping inputs and outputs is a reflection in y=xy = x, which gives a quick check on any inverse you find and explains why the natural log and exponential graphs are mirror images.

What you'll be able to do

  • Explain why only one-to-one functions have inverses
  • Find f−1(x)\mathrm{f}^{-1}(x) algebraically and state its domain and range
  • Sketch y=f−1(x)y = \mathrm{f}^{-1}(x) as the reflection of y=f(x)y = \mathrm{f}(x) in y=xy = x
  • Use ff−1(x)=f−1f(x)=x\mathrm{ff}^{-1}(x) = \mathrm{f}^{-1}\mathrm{f}(x) = x and restrict domains to create inverses
1

When an inverse exists

The inverse f−1\mathrm{f}^{-1} must send each output of f\mathrm{f} back to the input that produced it. If f\mathrm{f} is many-to-one, some output came from two inputs, and f−1\mathrm{f}^{-1} would have to give two answers — so it would not be a function.

Therefore f−1\mathrm{f}^{-1} exists if and only if f is one-to-one\textbf{if and only if f is one-to-one} on its domain.

Notation warning: f−1(x)\mathrm{f}^{-1}(x) means the inverse function, not 1f(x)\dfrac{1}{\mathrm{f}(x)}.

f−1f(x)=xandff−1(x)=x\mathrm{f}^{-1}\mathrm{f}(x) = x \quad\text{and}\quad \mathrm{ff}^{-1}(x) = x
An inverse undoes the function, in either order.
Why this works

The swap also exchanges the sets: the domain of f−1\mathrm{f}^{-1} is the range of f\mathrm{f}, and the range of f−1\mathrm{f}^{-1} is the domain of f\mathrm{f}. Many marks on inverse questions are for stating these, not for the algebra.

2

Finding an inverse algebraically

Write y=f(x)y = \mathrm{f}(x), rearrange to make xx the subject, then swap the letters to write f−1(x)\mathrm{f}^{-1}(x) in terms of xx.

Then state the domain of f−1\mathrm{f}^{-1} — which is the range of f\mathrm{f}, so you usually need to find that first.

Example 1f(x)=2x+3x−1\mathrm{f}(x) = \dfrac{2x + 3}{x - 1}, x>1x > 1. Find f−1(x)\mathrm{f}^{-1}(x) and state its domain.
1Let y=2x+3x−1y = \dfrac{2x + 3}{x - 1}, so y(x−1)=2x+3y(x - 1) = 2x + 3.
2Expand and collect xx terms: xy−2x=y+3xy - 2x = y + 3, so x(y−2)=y+3x(y - 2) = y + 3.
3Hence x=y+3y−2x = \dfrac{y + 3}{y - 2}; swap letters.
4Range of f\mathrm{f}: writing f(x)=2+5x−1\mathrm{f}(x) = 2 + \dfrac{5}{x-1}, for x>1x > 1 the fraction takes every positive value, so f(x)>2\mathrm{f}(x) > 2.
Answerf−1(x)=x+3x−2\mathrm{f}^{-1}(x) = \dfrac{x + 3}{x - 2}, domain x>2x > 2.

Tip — Whenever xx appears more than once, multiply out, gather every xx term on one side, and factorise xx out. That single technique handles almost every rational inverse.

3

The graphs of f and its inverse

If (a,b)(a, b) lies on y=f(x)y = \mathrm{f}(x), then f(a)=b\mathrm{f}(a) = b, so f−1(b)=a\mathrm{f}^{-1}(b) = a and (b,a)(b, a) lies on y=f−1(x)y = \mathrm{f}^{-1}(x). Swapping coordinates is a reflection in the line y=xy = x.

So the graph of f−1\mathrm{f}^{-1} is the reflection of the graph of f\mathrm{f} in y=xy = x. Intercepts swap axes and asymptotes swap orientation: a horizontal asymptote y=2y = 2 becomes a vertical asymptote x=2x = 2.

Draw axes to equal scales when sketching this, or the reflection will look wrong.

Example 1f(x)=ex+2\mathrm{f}(x) = \mathrm{e}^{x} + 2, x∈Rx \in \mathbb{R}. Find f−1(x)\mathrm{f}^{-1}(x) and describe how the graphs are related.
1y=ex+2⇒ex=y−2⇒x=ln⁡(y−2)y = \mathrm{e}^{x} + 2 \Rightarrow \mathrm{e}^{x} = y - 2 \Rightarrow x = \ln(y - 2).
2Range of f\mathrm{f} is f(x)>2\mathrm{f}(x) > 2, so the domain of the inverse is x>2x > 2.
3The asymptote y=2y = 2 of f\mathrm{f} becomes the asymptote x=2x = 2 of f−1\mathrm{f}^{-1}.
Answerf−1(x)=ln⁡(x−2)\mathrm{f}^{-1}(x) = \ln(x - 2), x>2x > 2 — the reflection of y=ex+2y = \mathrm{e}^{x} + 2 in y=xy = x.
4

Restricting the domain

A many-to-one function can be given an inverse by restricting its domain to a part on which it is one-to-one.

f(x)=(x−3)2+1\mathrm{f}(x) = (x - 3)^{2} + 1 on R\mathbb{R} is many-to-one, with vertex at (3,1)(3, 1). On x≥3x \ge 3 it is increasing and one-to-one.

Solving y=(x−3)2+1y = (x - 3)^{2} + 1 gives x=3±y−1x = 3 \pm \sqrt{y - 1}. The restriction x≥3x \ge 3 selects the positive root, so f−1(x)=3+x−1\mathrm{f}^{-1}(x) = 3 + \sqrt{x - 1}, x≥1x \ge 1.

Points where f(x)=f−1(x)\mathrm{f}(x) = \mathrm{f}^{-1}(x) always lie on y=xy = x when f\mathrm{f} is increasing, so they can be found by solving the easier equation f(x)=x\mathrm{f}(x) = x.

Example 1For f(x)=(x−3)2+1\mathrm{f}(x) = (x - 3)^{2} + 1, x≥3x \ge 3, solve f(x)=f−1(x)\mathrm{f}(x) = \mathrm{f}^{-1}(x).
1f\mathrm{f} is increasing on its domain, so solve f(x)=x\mathrm{f}(x) = x: (x−3)2+1=x(x-3)^{2} + 1 = x.
2x2−7x+10=0x^{2} - 7x + 10 = 0, so (x−2)(x−5)=0(x - 2)(x - 5) = 0.
3Only x=5x = 5 is in the domain x≥3x \ge 3.
Answerx=5x = 5

Tip — When you take a square root in an inverse, the domain restriction decides the sign. State the reason for your choice in words.

Think like an examiner

  • Justify existence by stating that the function is one-to-one on its domain.
  • Always give the domain of f−1\mathrm{f}^{-1} — it is the range of f\mathrm{f}.
  • Choose the sign of a square root using the original domain, and say so.
  • Sketch inverse graphs as reflections in y=xy = x, with intercepts and asymptotes swapped.

Common misconceptions

Writing f−1(x)=1f(x)\mathrm{f}^{-1}(x) = \dfrac{1}{\mathrm{f}(x)}.
The −1-1 denotes an inverse function, not a reciprocal.
Giving the domain of f−1\mathrm{f}^{-1} as the domain of f\mathrm{f}.
The domain of f−1\mathrm{f}^{-1} is the range of f\mathrm{f}.
Keeping ±\pm in an inverse involving a square root.
Choose the one sign consistent with the restricted domain.
Reflecting in the yy-axis instead of y=xy = x.
Swapping coordinates is a reflection in y=xy = x.

Inverse functions

f−1f(x)=ff−1(x)=x\mathrm{f}^{-1}\mathrm{f}(x) = \mathrm{ff}^{-1}(x) = x
Defining property.
domain of f−1=range of f\text{domain of } \mathrm{f}^{-1} = \text{range of } \mathrm{f}
Sets swap.
(a,b)↦(b,a)(a, b) \mapsto (b, a)
Reflection in y=xy = x.

Stretch yourself

The function f\mathrm{f} is defined by f(x)=ax+1x−a\mathrm{f}(x) = \dfrac{ax + 1}{x - a}, x≠ax \neq a, where aa is a constant. Show that f\mathrm{f} is self-inverse — that is, f−1(x)=f(x)\mathrm{f}^{-1}(x) = \mathrm{f}(x) — and explain what this means for its graph.

Hint — Rearrange y=ax+1x−ay = \dfrac{ax + 1}{x - a} for xx in the usual way and compare the result with f\mathrm{f}.

Reveal solution
SolutionLet y=ax+1x−ay = \dfrac{ax+1}{x-a}. Then xy−ay=ax+1xy - ay = ax + 1, so xy−ax=ay+1xy - ax = ay + 1 and x(y−a)=ay+1x(y - a) = ay + 1, giving x=ay+1y−ax = \dfrac{ay + 1}{y - a}. Swapping letters, f−1(x)=ax+1x−a=f(x)\mathrm{f}^{-1}(x) = \dfrac{ax + 1}{x - a} = \mathrm{f}(x). Equivalently, ff(x)=x\mathrm{ff}(x) = x. Graphically, reflecting y=f(x)y = \mathrm{f}(x) in y=xy = x gives the same curve, so the graph is symmetric about y=xy = x: its vertical asymptote x=ax = a and horizontal asymptote y=ay = a are reflections of each other, which is consistent with that symmetry. For example, with a=2a = 2: f(3)=7\mathrm{f}(3) = 7 and f(7)=155=3\mathrm{f}(7) = \dfrac{15}{5} = 3 ✓. ■\blacksquare

Questions students ask

Why does a many-to-one function have no inverse?
Two inputs share an output, so reversing the mapping would send that output to two places — which is not allowed for a function.
How do I find the domain of the inverse?
Find the range of the original function. That set is exactly the domain of the inverse.
Is sin⁡−1x\sin^{-1} x the same as 1sin⁡x\dfrac{1}{\sin x}?
No. sin⁡−1x\sin^{-1}x is the inverse of sine on a restricted domain; 1sin⁡x\dfrac{1}{\sin x} is cosec⁡x\operatorname{cosec} x.
Where do a function and its inverse intersect?
For an increasing function, always on the line y=xy = x, so solve f(x)=x\mathrm{f}(x) = x. Decreasing functions can also meet off that line.

Key takeaways

  • An inverse exists only for a one-to-one function.
  • Find f−1\mathrm{f}^{-1} by rearranging y=f(x)y = \mathrm{f}(x) for xx and swapping letters.
  • Domain and range swap between f\mathrm{f} and f−1\mathrm{f}^{-1}.
  • The graph of f−1\mathrm{f}^{-1} is the reflection of f\mathrm{f} in y=xy = x.
  • Restricting the domain can make a function one-to-one and invertible.

How this fits the course

Test yourself

Answer a few questions, then review anything you missed.

Next step

Keep practising

Start with the quiz above to check the key ideas. You can also choose another topic from the practice library.

Browse practice topics

Related lessons

All 6 lessons

Put the methods into practice: see how A-Level maths duels work. An account is required to play; the overview and sample are public.