AP Precalculus · Study guide

Inverse Functions

AP® Precalculus · Unit 2 · Exponential and Logarithmic Functions

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.

The idea in one paragraph

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.

Worked Example 1 Inverse from a table

Use the table of \(f\) to make a table for \(f^{-1}\) and find \(f^{-1}(5)\).

\(x\)−10123
\(f(x)\)645913
  1. 1
    Every output appears once, so each output comes from one input: \(f\) is invertible on this domain.
  2. 2
    Swap the rows: \(f^{-1}\) sends 6 to \(-1\), 4 to 0, 5 to 1, 9 to 2, 13 to 3.
Answer: \(f^{-1}(5) = 1\), since \(f(1) = 5\).
Common Mistake 1 · Reading the −1 as an exponent

\(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.

Figure 1. On all real numbers, y = x² sends two inputs to most outputs, so it has no inverse. Restricted to x ≥ 0, it does, and the inverse is √x.
Worked Example 2 Restricting the domain

\(f(x) = x^2\) has no inverse on all real numbers. Restrict its domain to make it invertible, and give the inverse.

  1. 1
    \(f(-2) = f(2) = 4\): two inputs share an output, so “undo” is ambiguous.
  2. 2
    Keep \(x \ge 0\). Now each output comes from one input. Solve \(x = y^2\) with \(y \ge 0\): \(y = \sqrt{x}\).
  3. 3
    (Keeping \(x \le 0\) instead gives the inverse \(-\sqrt{x}\).)
Answer: On \(x \ge 0\), \(f^{-1}(x) = \sqrt{x}\) (Figure 1).

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\).

Worked Example 3 Solving for the inverse

Find the inverse of \(f(x) = \dfrac{2x - 3}{5}\) and check it.

  1. 1
    Write \(y = \dfrac{2x - 3}{5}\) and swap: \(x = \dfrac{2y - 3}{5}\).
  2. 2
    Solve for \(y\): \(5x = 2y - 3\), so \(2y = 5x + 3\) and \(y = \dfrac{5x + 3}{2}\).
  3. 3
    Check: \(f\!\left(\dfrac{5x + 3}{2}\right) = \dfrac{(5x + 3) - 3}{5} = x\). The composition gives the identity, as it must.
Answer: \(f^{-1}(x) = \dfrac{5x + 3}{2}\)
Worked Example 4 A rational function and its inverse

Find the inverse of \(f(x) = \dfrac{x + 1}{x - 2}\) and its domain and range.

  1. 1
    Swap: \(x = \dfrac{y + 1}{y - 2}\). Multiply: \(xy - 2x = y + 1\). Collect \(y\): \(xy - y = 2x + 1\), so \(y(x - 1) = 2x + 1\).
  2. 2
    \(f^{-1}(x) = \dfrac{2x + 1}{x - 1}\).
  3. 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\).
Answer: \(f^{-1}(x) = \dfrac{2x + 1}{x - 1}\), domain \(x \ne 1\), range \(y \ne 2\).
Write it like this

“Since \(f(f^{-1}(x)) = x\) and \(f^{-1}(f(x)) = x\), the functions \(f\) and \(f^{-1}\) are inverses.”

Common Mistake 2 · Forgetting to check the composition

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.

Figure 2. Swapping x and y reflects a graph across the line y = x. Equal scales on both axes keep the mirror image true to shape.
Common Mistake 3 · Keeping the old domain

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.

Worked Example 5 An inverse in context

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?

  1. 1
    Solve \(F = \frac95 C + 32\) for \(C\): \(C = \frac59(F - 32)\).
  2. 2
    \(C(98.6) = \frac59(66.6) = 37\) °C.
  3. 3
    No temperature is below absolute zero, \(-273.15\) °C \(= -459.67\) °F, so both functions only make sense at or above those values.
Answer: \(C(F) = \frac59(F - 32)\); 98.6 °F is 37 °C; inputs at least \(-459.67\) °F.

Quick reference

IdeaHow it looks
Pairs\((a, b)\) on \(f\) means \((b, a)\) on \(f^{-1}\)
Exists whenEach output comes from one input (restrict the domain if needed)
Composition\(f(f^{-1}(x)) = f^{-1}(f(x)) = x\)
Domain and rangeSwap between f and its inverse
GraphReflect across y = x
From a formulaSwap \(x\) and \(y\), solve for \(y\)