Skip to main content

Unit 2 · Topic 2.8

2.8 Inverse Functions

An inverse function runs a function backward: if f sends a to b, then f⁻¹ sends b back to a. A function has an inverse only where it is one-to-one, and the inverse's graph is the reflection of the original over the line y = x.

Key terms

  • inverse function
  • one-to-one
  • reflection over y = x
  • restricted domain
  • f⁻¹(x)

When an inverse exists

f has an inverse on a domain if every output comes from exactly one input. Such a function is called one-to-one, or invertible.

On a graph, a one-to-one function passes the horizontal line test: no horizontal line hits the graph more than once. Functions that always increase or always decrease are one-to-one.

If a function isn't one-to-one, you can restrict its domain to a piece where it is. For example, x² isn't one-to-one on all real numbers, but it is on x ≥ 0.

What the inverse does

The inverse f⁻¹ maps each output of f back to its input: if f(a) = b, then f⁻¹(b) = a. As pairs, (a, b) on f becomes (b, a) on f⁻¹.

The domain of f⁻¹ is the range of f, and the range of f⁻¹ is the domain of f.

Composing a function with its inverse gives the identity: f(f⁻¹(x)) = x and f⁻¹(f(x)) = x, for inputs in the right domains.

Note that f⁻¹(x) does not mean 1f(x)\frac{1}{f(x)}. The −1 is notation for “inverse,” not an exponent.

Inverses from tables, graphs and formulas

Table: swap the input and output columns.

Graph: reflect the graph over the line y = x, which swaps the roles of the axes. A point (2, 7) becomes (7, 2).

Formula: write y = f(x), swap x and y, and solve for y. That y is f⁻¹(x). This undoes f's operations in reverse order.

Checking that two functions are inverses

Compose them both ways. If f(x) = 3x − 4 and g(x)=x+43g(x) = \dfrac{x + 4}{3}, then f(g(x))=3⋅x+43−4=xf(g(x)) = 3 \cdot \dfrac{x + 4}{3} - 4 = x and g(f(x))=(3x−4)+43=xg(f(x)) = \dfrac{(3x - 4) + 4}{3} = x. Both compositions give x, so f and g are inverses.

Notice the order. f multiplies by 3 and then subtracts 4. Its inverse undoes those steps in reverse: add 4, then divide by 3. Like taking off shoes before socks, the last step done is the first step undone.

Inverses in context

If C(t) gives the cost of a taxi ride lasting t minutes, then C⁻¹(c) gives the length of a ride that costs c dollars. The inverse answers the reverse question.

Contexts can also restrict an inverse. If t must be between 0 and 60 minutes, then C⁻¹ only makes sense for costs that C actually produces on that interval.

Worked examples

Try each one yourself first, then open the solution.

  1. Example 1

    Finding an inverse algebraically

    Find the inverse of f(x)=2x−1x+3f(x) = \dfrac{2x - 1}{x + 3}.

    Show the solution
    1. Step 1: Write y=2x−1x+3y = \dfrac{2x - 1}{x + 3}, then swap x and y: x=2y−1y+3x = \dfrac{2y - 1}{y + 3}.
    2. Step 2: Multiply both sides by (y + 3): xy + 3x = 2y − 1.
    3. Step 3: Collect y terms on one side: xy − 2y = −1 − 3x.
    4. Step 4: Factor out y: y(x − 2) = −(3x + 1), so y=−3x+1x−2=3x+12−xy = -\dfrac{3x + 1}{x - 2} = \dfrac{3x + 1}{2 - x}.
    5. Step 5: Domain check: f's range excludes 2 (its horizontal asymptote is y = 2), and f⁻¹ is undefined at x = 2, as expected.

    Answer: f−1(x)=3x+12−xf^{-1}(x) = \dfrac{3x + 1}{2 - x}, for x ≠ 2.

  2. Example 2

    Restricting the domain first

    f(x) = (x − 2)² + 1 is not one-to-one. Restrict it to x ≥ 2 and find the inverse, with its domain.

    Show the solution
    1. Step 1: On x ≥ 2, the parabola only rises, so it's one-to-one. Its range there is y ≥ 1.
    2. Step 2: Swap and solve: x = (y − 2)² + 1, so (y − 2)² = x − 1.
    3. Step 3: Take square roots: y−2=±x−1y - 2 = \pm \sqrt{x - 1}. Because the inverse's outputs must be ≥ 2 (the original domain), keep the + sign.
    4. Step 4: f−1(x)=2+x−1f^{-1}(x) = 2 + \sqrt{x - 1}, with domain x ≥ 1 (the original range).

    Answer: f−1(x)=2+x−1f^{-1}(x) = 2 + \sqrt{x - 1} for x ≥ 1.

  3. Example 3

    Trap: inverse vs reciprocal

    Let f(x) = 2x + 6. Find f⁻¹(10) and 1f(10)\frac{1}{f(10)}. Are they the same?

    Show the solution
    1. Step 1: f⁻¹(10) asks: which input gives an output of 10? Solve 2x + 6 = 10: x = 2. (Or use f−1(x)=x−62f^{-1}(x) = \dfrac{x - 6}{2}.)
    2. Step 2: 1f(10)=12⋅10+6=126\frac{1}{f(10)} = \dfrac{1}{2 \cdot 10 + 6} = \frac{1}{26}.
    3. Step 3: They're completely different. The −1 in f⁻¹ never means a reciprocal.

    Answer: f⁻¹(10) = 2, while 1f(10)=126\frac{1}{f(10)} = \frac{1}{26}. Not the same.

Common mistakes

  • Reading f⁻¹(x) as 1f(x)\frac{1}{f(x)}.
  • Forgetting to restrict the domain, or picking the wrong sign after a square root. The inverse's outputs must match the original function's domain.
  • Swapping x and y but then solving for x instead of y.
  • Not swapping domain and range: the domain of f⁻¹ is the range of f.

On the exam

  • Expect to find f⁻¹(a) from a table or graph, to find an inverse formula, and to state the inverse's domain.
  • This topic sets up logarithms (2.10) and inverse trig functions (3.9), which are both inverses of functions with restricted domains.

Connected topics

Videos

  • AP Precalculus – 2.8 Inverse Functions

    The AlgebrosWatch on YouTube (opens in a new tab)

  • Inverse Functions in Under 3 mins (AP Precalculus Topic 2.8)

    Maximum InsightWatch on YouTube (opens in a new tab)

  • Introduction to function inverses | Functions and their graphs | Algebra II | Khan Academy

    Khan AcademyWatch on YouTube (opens in a new tab)

  • Everything You Need To Know About Inverse Functions [AP Precalculus Topic 2.8]

    Michael Porinchak - AP Statistics & AP PrecalculusWatch on YouTube (opens in a new tab)

  • AP Precalculus Topic 2.8: Inverse Functions

    Erin BentsonWatch on YouTube (opens in a new tab)

Check yourself: 2.8 Inverse Functions

4 questions on 2.8 Inverse Functions. Pick an answer to see if you got it, and why.

Question 1 of 4

Let f(x) = (x − 1)³ + 2. Which of the following is f⁻¹(x)?

Question 2 of 4

Let f(x) = (x − 2)² + 1. Which of the following is the largest interval that contains x = 5 on which f is invertible?

Question 3 of 4

Let f(x)=2x+1x−3f(x) = \dfrac{2x + 1}{x - 3} for x ≠ 3. Which of the following is f⁻¹(x)?

x01234
f(x)24103
g(x)30412

Table of values

Question 4 of 4

What is the value of f⁻¹(g(0))?

0 of 4 answered

Something wrong or out of date here?

Something wrong with this page?

What's wrong?

Please don't include personal details.