01 / 21

Inverse Functions
Algebraically

Learn how to find inverse functions by swapping variables, and verify them using composition: \( f(f^{-1}(x)) = x \).

College Algebra

What Is an Inverse Function?

An inverse function "undoes" the work of the original function. If \( f \) sends \( a \) to \( b \), then the inverse \( f^{-1} \) sends \( b \) back to \( a \).

Reflection over \( y = x \)

Graphically, a function and its inverse are mirror images across the line \( y = x \). Every point \( (a, b) \) on \( f \) becomes \( (b, a) \) on \( f^{-1} \).

\( y = x \)
\( f(x) = 2x + 1 \)
\( f^{-1}(x) \)
x y (1, 3) (3, 1)

When Does an Inverse Exist?

A function has an inverse if and only if it is one-to-one (injective): each output comes from exactly one input. Graphically, it passes the Horizontal Line Test.

✓ One-to-One
Every horizontal line hits the graph at most once. Inverse exists.
✕ Not One-to-One
Some horizontal line hits the graph twice or more. No inverse (unless we restrict the domain).

The Swap-and-Solve Method

To find \( f^{-1}(x) \) algebraically, follow these steps:

1
Replace \( f(x) \) with \( y \).
2
Swap \( x \) and \( y \) in the equation.
3
Solve the new equation for \( y \).
4
Write the result as \( f^{-1}(x) = y \).

Verifying with Composition

After finding a candidate for \( f^{-1} \), you must verify by checking both compositions:

Condition 1
\( f\left(f^{-1}(x)\right) = x \)
Condition 2
\( f^{-1}\left(f(x)\right) = x \)
x f
\( f(x) \)
\( f^{-1} \)
returns to x

\( f^{-1}(x) \) vs. \( \frac{1}{f(x)} \)

A common source of confusion: the notation \( f^{-1}(x) \) looks like it could mean "one over \( f(x) \)," but it does not.

\( f^{-1}(x) \) \( \frac{1}{f(x)} \)
Meaning The inverse function The reciprocal
Also written \( g(x) \) where \( f(g(x)) = x \) \( [f(x)]^{-1} \)
Example for \( f(x)=2x \) \( \frac{x}{2} \) \( \frac{1}{2x} \)
Composition test \( f(f^{-1}(x)) = x \) ✓ \( f\left(\frac{1}{f(x)}\right) \neq x \) ✕

How to Apply the Method

1
Confirm the function is one-to-one (or restrict the domain).
2
Write \( y = f(x) \), then swap \( x \) and \( y \).
3
Isolate \( y \) using inverse operations (add/subtract, multiply/divide, roots, etc.).
4
Write the answer as \( f^{-1}(x) = \ldots \)
5
Verify: Compute both \( f(f^{-1}(x)) \) and \( f^{-1}(f(x)) \). Both must equal \( x \).

Example 1: Linear Function

Find the inverse of \( f(x) = 3x - 7 \).

1
Write \( y = 3x - 7 \).
2
Swap: \( x = 3y - 7 \).
3
Solve: \( x + 7 = 3y \), so \( y = \frac{x + 7}{3} \).
4
Result: \( f^{-1}(x) = \frac{x + 7}{3} \).

Example 2: Rational Function

Find the inverse of \( f(x) = \frac{2x + 1}{x - 3} \), where \( x \neq 3 \).

1
Write \( y = \frac{2x+1}{x-3} \), then swap: \( x = \frac{2y+1}{y-3} \).
2
Multiply both sides by \( (y - 3) \): \( x(y - 3) = 2y + 1 \).
3
Distribute: \( xy - 3x = 2y + 1 \). Collect \( y \)-terms: \( xy - 2y = 3x + 1 \).
4
Factor: \( y(x - 2) = 3x + 1 \), so \( y = \frac{3x + 1}{x - 2} \).

Verifying the Rational Inverse

Let us verify \( f(x) = \frac{2x+1}{x-3} \) and \( f^{-1}(x) = \frac{3x+1}{x-2} \).

Example 3: Radical Function

Find the inverse of \( f(x) = \sqrt[3]{x - 4} + 2 \).

1
Write \( y = \sqrt[3]{x - 4} + 2 \), then swap: \( x = \sqrt[3]{y - 4} + 2 \).
2
Isolate the radical: \( x - 2 = \sqrt[3]{y - 4} \).
3
Cube both sides: \( (x - 2)^3 = y - 4 \).
4
Solve for \( y \): \( y = (x - 2)^3 + 4 \).

Domain and Range Swap

When you find an inverse, the domain of \( f \) becomes the range of \( f^{-1} \), and the range of \( f \) becomes the domain of \( f^{-1} \).

\( f(x) \)
Domain A Range B
\( f^{-1}(x) \)
Domain B Range A swap swap

Restricting Domains for Inverses

When a function is not one-to-one, we can restrict its domain to a portion where it passes the Horizontal Line Test.

1 2 3 4 1 2 3 4
\( y = x^2, x \geq 0 \)
\( y = \sqrt{x} \)
\( y = x \)
x y

Common Mistakes to Avoid

✕ Confusing \( f^{-1} \) with \( \frac{1}{f} \)
\( f^{-1}(x) \) is the inverse function, not the reciprocal \( \frac{1}{f(x)} \). They produce completely different results.
✕ Forgetting to Swap
Solving for \( x \) in terms of \( y \) without swapping first just rearranges the original equation: it does not give you the inverse.
✕ Skipping Verification
An algebraic slip can give a wrong answer that looks plausible. Always check both compositions \( f(f^{-1}(x)) \) and \( f^{-1}(f(x)) \).

Summary: Inverse Functions at a Glance

Concept Key Idea
Definition \( f(f^{-1}(x)) = x \) and \( f^{-1}(f(x)) = x \)
Existence Function must be one-to-one (pass HLT)
Finding method Replace, swap, solve, rename
Verification Check both compositions equal \( x \)
Domain/Range Domain of \( f \) = Range of \( f^{-1} \), and vice versa
Graph Reflection of \( f \) over the line \( y = x \)

Question 1 of 5

What is the inverse of \( f(x) = 5x + 3 \)?

Question 2 of 5

To verify that \( g \) is the inverse of \( f \), which conditions must both hold?

Question 3 of 5

Which function does not have an inverse on its natural domain (all reals)?

Question 4 of 5

If \( f(x) = \frac{x+1}{x-2} \), what is \( f^{-1}(x) \)?

Question 5 of 5

The domain of \( f \) is \( [0, \infty) \) and the range of \( f \) is \( (-3, \infty) \). What are the domain and range of \( f^{-1} \)?