Dove's LibraryDove's Library

2.8 - Inverse Functions

Overview

An inverse function undoes what a function does: if ff sends aa to bb, the inverse sends bb back to aa. This topic covers when a function has an inverse, how to find it from a table, a graph, or an equation, and what it means in context. Inverses are the bridge to logarithms, which are the inverses of exponential functions.

When does a function have an inverse?

On a given domain, a function ff has an inverse function, or is invertible, if each output value comes from exactly one input value. A function like this is called one-to-one.
Why this matters: the inverse has to send each output back to a single input. If two inputs share an output, the inverse wouldn't know which one to return, so it wouldn't be a function.
Horizontal line test: a function is one-to-one if no horizontal line crosses its graph more than once.

Restricting the domain

A function that isn't one-to-one can be made invertible by restricting its domain. For f(x)=x2f(x) = x^2, both 22 and −2-2 give an output of 44, so ff is not invertible on all real numbers. On the restricted domain x≥0x \geq 0, every output comes from just one input, and ff is invertible.
2.8 - Inverse Functions
There are many ways to restrict a domain. Restricting x2x^2 to x≤0x \leq 0 also works. Functions that are always increasing or always decreasing, like linear functions with a nonzero slope and exponential functions, are invertible on their whole domain.

The inverse as a reverse mapping

The inverse of ff, written f−1f^{-1}, maps each output of ff back to the input it came from:
f(a)=b⟺f−1(b)=af(a) = b \quad \Longleftrightarrow \quad f^{-1}(b) = a
In terms of ordered pairs: if ff contains the input-output pair (a,b)(a, b), then f−1f^{-1} contains the pair (b,a)(b, a).
Notation warning: f−1(x)f^{-1}(x) means the inverse function, not 1f(x)\frac{1}{f(x)}. The −1-1 is not an exponent here.

Domain and range swap

Because every pair flips, the domain of ff (on its invertible domain) becomes the range of f−1f^{-1}, and the range of ff becomes the domain of f−1f^{-1}. For a table, you find the inverse by swapping the input and output rows.

Example 1: Inverses from a table

Use the table of ff below.
xx
0
1
2
3
4
f(x)f(x)
1
3
7
15
31
(a) Make a table for f−1f^{-1}. (b) Find f−1(7)f^{-1}(7) and f−1(f(3))f^{-1}(f(3)). (c) Can you find f−1(4)f^{-1}(4) from the table?
Part (a). Swap the rows:
xx
1
3
7
15
31
f−1(x)f^{-1}(x)
0
1
2
3
4
Part (b). Since f(2)=7f(2) = 7, f−1(7)=2f^{-1}(7) = 2. Since f(3)=15f(3) = 15 and f−1(15)=3f^{-1}(15) = 3, we get f−1(f(3))=3f^{-1}(f(3)) = 3.
Part (c). No. The number 4 is not an output in the table of ff, so it isn't an input in the table of f−1f^{-1}. The inputs of f−1f^{-1} are exactly the outputs of ff.
Compare a table that is not invertible:
xx
−2-2
−1-1
0
1
2
g(x)g(x)
4
1
0
1
4
Here g(−1)=g(1)=1g(-1) = g(1) = 1, so g−1(1)g^{-1}(1) would need two answers. The function gg is not invertible on this domain.

Composing a function with its inverse

A function and its inverse undo each other, so composing them in either order returns the original input:
f(f−1(x))=xandf−1(f(x))=xf(f^{-1}(x)) = x \quad \text{and} \quad f^{-1}(f(x)) = x
In other words, f∘f−1f \circ f^{-1} and f−1∘ff^{-1} \circ f are both the identity function from Topic 2.7 (on the right domains). This is how you check that two functions are inverses: compose them both ways and see if you get xx.

Graphs of inverse functions

Swapping every (a,b)(a, b) to (b,a)(b, a) swaps the roles of the xx- and yy-axes. On a graph, that's a reflection over the line y=xy = x, the graph of the identity function.
2.8 - Inverse Functions
Here f(x)=x2+1f(x) = x^2 + 1 on the domain x≥0x \geq 0 (black), and its inverse is in red. The point (2,5)(2, 5) on ff becomes (5,2)(5, 2) on f−1f^{-1}, and the segment joining them crosses y=xy = x at a right angle, right at its midpoint. The same goes for (1,2)(1, 2) and (2,1)(2, 1), and for the endpoints (0,1)(0, 1) and (1,0)(1, 0).

Finding an inverse algebraically

To find the inverse of a function given by an equation, reverse the roles of xx and yy:
  1. Write y=f(x)y = f(x).
  1. Swap xx and yy.
  1. Solve for yy. The result is f−1(x)f^{-1}(x).
  1. State the domain of f−1f^{-1} (the range of ff), and check your answer with composition.

Example 2: A linear function

Find the inverse of f(x)=4x−7f(x) = 4x - 7 and verify it.
y=4x−7y = 4x - 7x=4y−7(swap x and y)x = 4y - 7 \qquad \text{(swap } x \text{ and } y\text{)}x+7=4y⇒y=x+74x + 7 = 4y \quad\Rightarrow\quad y = \frac{x + 7}{4}
So f−1(x)=x+74f^{-1}(x) = \frac{x + 7}{4}. Check both compositions:
f(f−1(x))=4⋅x+74−7=x+7−7=xf(f^{-1}(x)) = 4 \cdot \frac{x + 7}{4} - 7 = x + 7 - 7 = xf−1(f(x))=(4x−7)+74=4x4=xf^{-1}(f(x)) = \frac{(4x - 7) + 7}{4} = \frac{4x}{4} = x
Both give xx, so the inverse is correct. Notice that ff multiplies by 4 then subtracts 7, and f−1f^{-1} undoes those steps in reverse order: add 7, then divide by 4.

Example 3: A rational function

Find the inverse of f(x)=2x+1x−3f(x) = \frac{2x + 1}{x - 3}, where x≠3x \neq 3.
x=2y+1y−3(swap)x = \frac{2y + 1}{y - 3} \qquad \text{(swap)}x(y−3)=2y+1x(y - 3) = 2y + 1xy−3x=2y+1xy - 3x = 2y + 1xy−2y=3x+1xy - 2y = 3x + 1y(x−2)=3x+1y(x - 2) = 3x + 1y=3x+1x−2y = \frac{3x + 1}{x - 2}
Answer: f−1(x)=3x+1x−2f^{-1}(x) = \frac{3x + 1}{x - 2}, where x≠2x \neq 2. The domain makes sense: ff has a horizontal asymptote at y=2y = 2 and never outputs 2, so 2 can't be an input of f−1f^{-1}. And f−1f^{-1} never outputs 3, which matches 3 being left out of the domain of ff.

Example 4: Restricting the domain first

Find the inverse of f(x)=x2+1f(x) = x^2 + 1 on the domain x≥0x \geq 0 (the function graphed above).
On x≥0x \geq 0, the range of ff is y≥1y \geq 1. Swap and solve:
x=y2+1⇒y2=x−1⇒y=±x−1x = y^2 + 1 \quad\Rightarrow\quad y^2 = x - 1 \quad\Rightarrow\quad y = \pm\sqrt{x - 1}
The outputs of f−1f^{-1} have to be the inputs of ff, which are all at least 0. So take the positive root:
f−1(x)=x−1,x≥1f^{-1}(x) = \sqrt{x - 1}, \quad x \geq 1
Check: f−1(5)=4=2f^{-1}(5) = \sqrt{4} = 2, and f(2)=5f(2) = 5. If the domain of ff had been restricted to x≤0x \leq 0 instead, the inverse would be −x−1-\sqrt{x - 1}.

Inverses in context

In context, the inverse answers the reverse question. Instead of “given the input, what's the output?”, it answers “what input gives this output?” Besides any domain restriction the math needs, the context can limit where the inverse makes sense.
In a context problem, don't blindly swap the letters. Keep track of what each variable means, and solve for the original input in terms of the original output.

Example 5: A dropped ball (AP-style)

A ball is dropped from a height of 64 feet. Its height after tt seconds is h(t)=64−16t2h(t) = 64 - 16t^2 feet, for 0≤t≤20 \leq t \leq 2. (It hits the ground at t=2t = 2.)
(a) Find h−1h^{-1} and give its domain. (b) Find and interpret h−1(28)h^{-1}(28).
Part (a). Let yy be the height in feet. Solve y=64−16t2y = 64 - 16t^2 for tt:
16t2=64−y16t^2 = 64 - yt2=64−y16t^2 = \frac{64 - y}{16}t=64−y4t = \frac{\sqrt{64 - y}}{4}
We take the positive root because time is not negative here. So h−1(y)=64−y4h^{-1}(y) = \frac{\sqrt{64 - y}}{4}. The formula works for any y≤64y \leq 64, but the ball's height is never negative, so in this context the domain of h−1h^{-1} is 0≤y≤640 \leq y \leq 64, and its range is 0≤t≤20 \leq t \leq 2.
Part (b).
h−1(28)=64−284=364=64=1.5h^{-1}(28) = \frac{\sqrt{64 - 28}}{4} = \frac{\sqrt{36}}{4} = \frac{6}{4} = 1.5
The ball is 28 feet above the ground 1.5 seconds after it is dropped. Check: h(1.5)=64−16(2.25)=64−36=28h(1.5) = 64 - 16(2.25) = 64 - 36 = 28.

Common mistakes

  • Mixing up the inverse and the reciprocal. f−1(x)f^{-1}(x) is the inverse function, not 1f(x)\frac{1}{f(x)}.
  • Skipping the domain restriction. If ff isn't one-to-one, restrict the domain first, and pick the matching sign when you take a square root.
  • Forgetting the domain of the inverse. It's the range of the original function.
  • Reflecting over the wrong line. An inverse is a reflection over y=xy = x, not over the xx-axis or yy-axis.
  • Losing the meaning of the variables in context. Solve for the original input; don't just swap letters and forget what each one means.

AP® is a registered trademark of the College Board, which is not affiliated with Dove's Library and was not involved in the production of, and does not endorse, this website.

Providing free, high-quality AP notes to help students succeed, earn college credit, and reach their educational goals, ensuring everyone has access to the resources they need.

© 2026 Standard Learning Group, Inc., which operates Dove's Library. All rights reserved.