Inverse Functions
An inverse function runs a function backward: it takes each output and returns the input that produced it. This guide covers when an inverse exists, how to find it from a table, a graph or a formula, and how it trades domain and range.
If \(f(a) = b\), the inverse function \(f^{-1}\) sends \(b\) back to \(a\): every pair \((a, b)\) becomes \((b, a)\). That only works if each output of \(f\) comes from a single input; if not, restrict the domain to an invertible domain where it does. Composing a function with its inverse gives the identity: \(f(f^{-1}(x)) = f^{-1}(f(x)) = x\). The domain of \(f\) becomes the range of \(f^{-1}\) and vice versa, and the graph of \(f^{-1}\) is the graph of \(f\) reflected across the line \(y = x\).
1Reversing the mapping
A function is a set of input-output pairs. Its inverse is the same pairs with each one turned around. In a table, swap the rows. On a graph, swap the coordinates of every point.
Use the table of \(f\) to make a table for \(f^{-1}\) and find \(f^{-1}(5)\).
| \(x\) | −1 | 0 | 1 | 2 | 3 |
|---|---|---|---|---|---|
| \(f(x)\) | 6 | 4 | 5 | 9 | 13 |
- 1Every output appears once, so each output comes from one input: \(f\) is invertible on this domain.
- 2Swap the rows: \(f^{-1}\) sends 6 to \(-1\), 4 to 0, 5 to 1, 9 to 2, 13 to 3.
\(f^{-1}(x)\) means the inverse function, not \(\dfrac{1}{f(x)}\). For \(f(x) = 2x\), \(f^{-1}(x) = \dfrac x2\) while \(\dfrac{1}{f(x)} = \dfrac{1}{2x}\).
2When an inverse exists
Undoing must give a single answer, so each output of \(f\) must come from only one input. On a graph, that means no horizontal line crosses the graph twice. Functions that fail this test can still have an inverse on a smaller domain.
\(f(x) = x^2\) has no inverse on all real numbers. Restrict its domain to make it invertible, and give the inverse.
- 1\(f(-2) = f(2) = 4\): two inputs share an output, so “undo” is ambiguous.
- 2Keep \(x \ge 0\). Now each output comes from one input. Solve \(x = y^2\) with \(y \ge 0\): \(y = \sqrt{x}\).
- 3(Keeping \(x \le 0\) instead gives the inverse \(-\sqrt{x}\).)
3Finding an inverse from a formula
Write \(y = f(x)\), swap \(x\) and \(y\), and solve for \(y\). Then check by composing: \(f(f^{-1}(x))\) should simplify to \(x\).
Find the inverse of \(f(x) = \dfrac{2x - 3}{5}\) and check it.
- 1Write \(y = \dfrac{2x - 3}{5}\) and swap: \(x = \dfrac{2y - 3}{5}\).
- 2Solve for \(y\): \(5x = 2y - 3\), so \(2y = 5x + 3\) and \(y = \dfrac{5x + 3}{2}\).
- 3Check: \(f\!\left(\dfrac{5x + 3}{2}\right) = \dfrac{(5x + 3) - 3}{5} = x\). The composition gives the identity, as it must.
Find the inverse of \(f(x) = \dfrac{x + 1}{x - 2}\) and its domain and range.
- 1Swap: \(x = \dfrac{y + 1}{y - 2}\). Multiply: \(xy - 2x = y + 1\). Collect \(y\): \(xy - y = 2x + 1\), so \(y(x - 1) = 2x + 1\).
- 2\(f^{-1}(x) = \dfrac{2x + 1}{x - 1}\).
- 3\(f\) has domain \(x \ne 2\) and range \(y \ne 1\) (its horizontal asymptote). The inverse swaps them: domain \(x \ne 1\), range \(y \ne 2\).
“Since \(f(f^{-1}(x)) = x\) and \(f^{-1}(f(x)) = x\), the functions \(f\) and \(f^{-1}\) are inverses.”
An algebra slip while solving is easy to make and easy to catch: plug a number in. \(f(1) = -\frac15\), and \(f^{-1}\!\left(-\frac15\right) = \frac{-1 + 3}{2} = 1\). If you do not get back where you started, something is wrong.
4Graphs and domains
Swapping coordinates reflects the graph across the line \(y = x\). Horizontal asymptotes of \(f\) become vertical asymptotes of \(f^{-1}\), and the domain and range trade places.
The inverse of \(f(x) = \dfrac{x + 1}{x - 2}\) is defined for \(x \ne 1\), not \(x \ne 2\). The excluded output of \(f\) (its asymptote \(y = 1\)) becomes the excluded input of \(f^{-1}\).
5Inverses in context
In a model, the inverse answers the reverse question: not “what output for this input?” but “what input gives this output?” The context can limit both directions, so state the restriction.
Fahrenheit from Celsius is \(F(C) = \frac95 C + 32\). Find the inverse and use it for 98.6 °F. What restriction does the context add?
- 1Solve \(F = \frac95 C + 32\) for \(C\): \(C = \frac59(F - 32)\).
- 2\(C(98.6) = \frac59(66.6) = 37\) °C.
- 3No temperature is below absolute zero, \(-273.15\) °C \(= -459.67\) °F, so both functions only make sense at or above those values.
Quick reference
| Idea | How it looks |
|---|---|
| Pairs | \((a, b)\) on \(f\) means \((b, a)\) on \(f^{-1}\) |
| Exists when | Each output comes from one input (restrict the domain if needed) |
| Composition | \(f(f^{-1}(x)) = f^{-1}(f(x)) = x\) |
| Domain and range | Swap between f and its inverse |
| Graph | Reflect across y = x |
| From a formula | Swap \(x\) and \(y\), solve for \(y\) |