AP Precalculus · Unit 2: Exponential and Logarithmic Functions · Lesson 2.8

Deep Dive: Inverse Functions

🔬 Deep Dive
This is your textbook for this topic. Take your time. Read it more than once.
2.8.A2.8.A.1Concept

When Does a Function Have an Inverse?

On a specified domain, a function f has an inverse function, or is invertible, if each output value of f is mapped from a unique input value. A graph test for this is the horizontal line test: if any horizontal line crosses the graph more than once, some output has two inputs.

Example. f(x) = x² is not invertible on all real numbers, because f(2) = 4 and f(−2) = 4. But the domain of a function may be restricted in many ways to make it invertible. On x ≥ 0, f(x) = x² is invertible, and so is it on x ≤ 0.

A function is invertible when each output value comes from a unique input value. Slide the horizontal line and count how many inputs land on it. If any line hits the graph twice, the function is not invertible on that domain.

output level c4
-4-2024-202468xf(x)
f(x) = x²Inputs with f(x) = 4: -2 and 2✗ Two different inputs give the output 4.Not invertible on this domain. Most outputs come from two inputs, like f(2) = f(−2) = 4.A domain can often be restricted to make a function invertible, and there is usually more than one way.
🔑Invertibility depends on the domain, not only on the formula. Restricting the domain can turn a function that fails the test into one that passes.
2.8.A2.8.A.2Math

The Inverse Is a Reverse Mapping

An inverse function, written f⁻¹, maps the output values of f on its invertible domain back to their corresponding input values. If f(a) = b, then f⁻¹(b) = a. On the invertible domain, if f consists of input-output pairs (a, b), then f⁻¹ consists of the pairs (b, a).

f(a) = b  ⟺  f⁻¹(b) = a

Example. If f(3) = 1, then f⁻¹(1) = 3. To find f⁻¹(9) from a table, look for the 9 in the output row of f and read its input.

An inverse function is a reverse mapping. If f(a) = b, then f⁻¹(b) = a. So the input-output pairs (a, b) of f become the pairs (b, a) of the inverse. Pick a table and a pair.

x12345
f(x)47196
input14679
reverse31524
f(2) = 7f⁻¹(7) = 2✓ Reversing gives a function, because each output of f was unique.The inputs of f are the outputs of f⁻¹, and the outputs of f are the inputs of f⁻¹.
⚠️f⁻¹(x) does not mean 1/f(x). The −1 is not an exponent here. It names the function that undoes f.
2.8.B2.8.B.1Concept

A Function and Its Inverse Compose to the Identity

The composition of a function f and its inverse f⁻¹ is the identity function, in either order:

f(f⁻¹(x)) = x    and    f⁻¹(f(x)) = x

This is the check you can use on any proposed inverse. Just as additive inverses add to 0 and multiplicative inverses multiply to 1, function inverses compose to give the identity function I(x) = x from Lesson 2.7.

Example. f(x) = 2x + 1 and g(x) = (x − 1)/2. Then f(g(x)) = 2·(x − 1)/2 + 1 = x and g(f(x)) = ((2x + 1) − 1)/2 = x. So g = f⁻¹. But h(x) = (x + 1)/2 gives f(h(x)) = x + 2, which is not x, so h is not the inverse.

A function and its inverse undo each other, so composing them in either order returns the input: f(f⁻¹(x)) = x and f⁻¹(f(x)) = x. That is the identity function from Lesson 2.7. Test several pairs, including one that is not an inverse pair.

input x3
-4-20246-6-4-20246xy
f(x) = 2x + 1    f⁻¹(x) = (x − 1)/2f(g(3)) = f(1) = 3g(f(3)) = g(7) = 3✓ Both compositions return the input. The graph of each is the line y = x.
💡Both compositions must return the input, on the domains where they are defined. If either one fails, the functions are not inverses.
2.8.B2.8.B.2Concept

Domain, Range, and the Mirror Line

On a function's invertible domain, the range of f is the domain of f⁻¹, and the domain of f is the range of f⁻¹. The inverse of a table of values of y = f(x) is found by reversing the input-output pairs: (a, b) corresponds to (b, a).

Example. Let f(x) = √(x − 1) + 2 with domain x ≥ 1 and range y ≥ 2. Then f⁻¹ has domain x ≥ 2 and range y ≥ 1. Since f(5) = 4, f⁻¹(4) = 5.

On an invertible domain, the range and domain of f are the domain and range of f⁻¹. If (a, b) is on the graph of f, then (b, a) is on the graph of f⁻¹, so the two graphs mirror each other across the dashed line y = x. Blue is f and gold is f⁻¹.

input a1
-202468-101234xy(1, 1)(1, 1)
f(x) = x², x ≥ 0   domain: x ≥ 0   range: y ≥ 0f⁻¹(x) = √x   domain: x ≥ 0   range: y ≥ 0f(1) = 1   so   f⁻¹(1) = 1Swapping the coordinates of every point on f gives every point on f⁻¹. Domain and range trade places.
💡Reversing every pair reflects the graph across the line y = x. This is a picture of the idea, not the definition. The definition is the reverse mapping.
2.8.B2.8.B.1Math

Finding the Inverse by Undoing the Steps

To determine the inverse of a function on an invertible domain, describe what f does to its input as a list of steps, then undo the steps in reverse order. The last operation of f is the first one you undo.

Example. f(x) = 2x + 3 multiplies by 2, then adds 3. To undo it, subtract 3, then divide by 2. So f⁻¹(y) = (y − 3)/2. Check: f(f⁻¹(y)) = 2·(y − 3)/2 + 3 = y ✓.

To find an inverse, describe what f does to its input step by step, then undo the steps in reverse order using the opposite operations. The last step of f is the first step you undo.

input x2
f does:1. multiply by 2: 2 → 42. add 3: 4 → 7f⁻¹ undoes, starting from the output 7:1. subtract 3: 7 → 42. divide by 2: 4 → 2f(x) = 2x + 3    f⁻¹(y) = (y − 3)/2✓ Undoing the steps returns the original input, 2.
⚠️Keep track of what the variables mean. The input of f⁻¹ is an output of f. Writing the inverse with the letter y for its input helps you remember that.
2.8.A2.8.BConcept

Inverses in Context

In a real situation, an inverse answers the reverse question. If f turns Celsius into Fahrenheit, f⁻¹ turns Fahrenheit into Celsius. The meaning and units of the input and output swap, so always say what f⁻¹(b) = a means in words.

Example. A taxi costs C(m) = 3 + 2m dollars for m miles. C(10) = 23 means a 10-mile ride costs $23. The inverse answers a different question: C⁻¹(23) = 10 means that $23 buys a 10-mile ride.

In a context, the inverse swaps the meaning and the units of the input and output. If f(a) = b, then f⁻¹(b) = a, and the units follow the swap.

Celsius temperature (°C)20
F(c) = 1.8c + 32    F⁻¹(f) = (f − 32)/1.8f(20 °C) = 68 °Ff⁻¹(68 °F) = 20 °CF takes °C and gives °F. F⁻¹ takes °F and gives °C.f⁻¹(68) = 20 means: when the Fahrenheit temperature is 68 °F, the Celsius temperature is 20 °C.
🔑Say it in a sentence with units: “f(a) = b means ___. f⁻¹(b) = a means ___.” The same pair of numbers tells both stories.
← Back to Lesson 2.8Try Guided Practice →Next up, 2.9: Logarithmic Expressions. The inverse of an exponential function gets a name.