← MATH 141 MathScape 0 MATH141

Inverse Functions

12 min read

Jump to a section
Textbook: OpenStax Precalculus 2e  •  Chapter: 1  •  Section: 7

Quick Reference

Field Value
Textbook OpenStax Precalculus 2e
Location Chapter 1: Functions, Section 1.7 Inverse Functions
Subsection 1.7 Inverse Functions
Pages Page numbers pending faculty verification.
Course MATH 141 (Precalculus I)

Before You Start: Prerequisite Check

πŸ“‹ Can you do these? (Click to reveal self-test)

Test yourself on these prerequisite skills:

  1. Function notation: If $f(x) = 2x + 5$, find $f(3)$.

    Check

    $f(3) = 2(3) + 5 = 11$.

  2. Composition: If $f(x) = x + 4$ and $g(x) = x - 4$, find $f(g(x))$.

    Check

    $f(g(x)) = f(x - 4) = (x - 4) + 4 = x$. The two functions undo each other.

  3. Solving for a variable: Solve $y = 3x - 6$ for $x$.

    Check

    $x = \dfrac{y + 6}{3}$.

If you struggled:


Try This First

A vending machine takes a code and gives back a snack. Suppose pressing $A1$ gives back a granola bar, $A2$ gives back pretzels, and $A3$ gives back trail mix.

Now imagine the snacks come back to the machine and you want to recover which code produced each one. The granola bar points back to $A1$. The pretzels point back to $A2$. The trail mix points back to $A3$.

Before reading any formula, answer this in your own words: what does the reversed machine do, and why does each snack have to point back to exactly one code?

One way to think about it

The reversed machine takes a snack as its input and returns the code that produced it. This only works cleanly because no two codes give back the same snack. If both $A1$ and $A2$ gave back pretzels, then handing the reversed machine a bag of pretzels would leave it unsure which code to return. The reverse of a process is itself a function only when the original process never sends two different inputs to the same output.

The Idea: A Function Run Backward

A function is a process that takes an input and gives back an output. An inverse function runs that process backward: it takes the output and gives back the input that produced it.

Two pictures help hold the idea together.

Picture 1 (the machine). The original function $f$ turns an input $x$ into an output $y$. The inverse $f^{-1}$ takes that same $y$ and returns the original $x$.

$$x \;\xrightarrow{\;f\;}\; y \qquad\qquad y \;\xrightarrow{\;f^{-1}\;}\; x$$

Picture 2 (the table). Reversing a function swaps the role of input and output. Read the same pairs from right to left.

Input $x$ $f(x)$ Input for $f^{-1}$ $f^{-1}$ output
$1$ $4$ $4$ $1$
$2$ $7$ $7$ $2$
$3$ $10$ $10$ $3$

The left table sends $1 \to 4$. The right table sends $4 \to 1$. The inverse is the same set of pairs with the arrows turned around. Translate between the two pictures yourself: which column of the machine picture matches which column of the table?

A reversal only produces a function when every output came from a single input. A function with that property is called one-to-one: different inputs always give different outputs. The vending machine in the opener works as a reversible process for exactly this reason.

Prerequisite Map

This skillInverse Functions
Leads tono further branch yet

Builds on

Prerequisite Why it is needed
Functions and Function Notation The inverse reverses a function, so the function process and the notation $f(x)$ come first.
Function Composition The inverse is verified by composing the two functions and checking that the input comes back.
Transformation of Functions (helpful) Reflecting a graph across the line $y = x$ is the transformation that produces the inverse graph.

Unlocks

The scope lists no direct successor skill for this node yet. The idea returns later in the course when inverse trigonometric functions and logarithms are introduced as the inverses of trigonometric and exponential functions.


Quick Reference

Property Value
Section 1.7
Course MATH 141
Difficulty Intermediate
Time ~30 minutes

Inverse Functions at a Glance

Symbol or phrase What it means
$f^{-1}$ Read β€œf inverse.” It is the reversed function, not a reciprocal.
$f^{-1}(x) \ne \dfrac{1}{f(x)}$ The $-1$ is notation for reversal, not an exponent.
One-to-one Different inputs give different outputs; required for an inverse to exist.
Horizontal line test A way to read one-to-one off a graph: no horizontal line meets the graph more than once.
Domain and range swap The domain of $f$ becomes the range of $f^{-1}$, and the range of $f$ becomes the domain of $f^{-1}$.

Key Concepts

The Official Definition

Inverse function. For any one-to-one function $f(x) = y$, a function $f^{-1}(x)$ is the inverse function of $f$ if $f^{-1}(y) = x$. The notation $f^{-1}$ is read β€œf inverse” and does not mean a reciprocal: $f^{-1}(x)$ is not equal to $\dfrac{1}{f(x)}$.

Source: OpenStax Precalculus 2e, Section 1.7 Inverse Functions.

The definition carries one warning worth stating on its own. The symbol $f^{-1}$ borrows the same superscript that means β€œreciprocal” in arithmetic, where $5^{-1} = \frac{1}{5}$. With a function name in front of it, the $-1$ is a label for reversal instead. The reciprocal $\frac{1}{f(x)}$ is a different object entirely.

Key Property: The Round Trip

Inverse composition property. If $f^{-1}$ is the inverse of $f$, then $f^{-1}(f(x)) = x$ for all $x$ in the domain of $f$, and $f(f^{-1}(x)) = x$ for all $x$ in the domain of $f^{-1}$.

Source: OpenStax Precalculus 2e, Section 1.7 Inverse Functions.

This property is the round trip. Send an input through $f$ and then back through $f^{-1}$ and you land where you started. Send an input through $f^{-1}$ and then back through $f$ and the same thing happens.

The round trip is also the test. To check whether two functions are inverses, compose them both ways. If both compositions collapse to $x$, the functions are inverses. If either one does not, they are not.

$$f^{-1}(f(x)) = x \qquad\text{and}\qquad f(f^{-1}(x)) = x$$

Reading the Inverse Off a Graph

The graph of $f^{-1}$ is the reflection of the graph of $f$ across the line $y = x$. Reversing a function swaps each pair $(a, b)$ for the pair $(b, a)$, and swapping coordinates is exactly what reflecting across $y = x$ does.

        y = x
          β•±
   b ──●  β•±
      β”‚ β•²β•±
      β”‚ β•±β•²
      β”‚β•±  ●── point (b, a) on the inverse
      β•±   β”‚
     β•±    β”‚
    ╱─────┴───
          a

A point $(a, b)$ on $f$ becomes the point $(b, a)$ on $f^{-1}$. The line $y = x$ acts as the mirror.

Finding an Inverse Algebraically

When a function is given by a formula, the inverse can often be found by solving for the input. One way to organize the work:

Step 1. Write the function as $y = f(x)$.

Step 2. Swap $x$ and $y$. (This records the role reversal: the old output becomes the new input.)

Step 3. Solve the new equation for $y$.

Step 4. Write the result as $f^{-1}(x) = y$.

Step 5. Check by composing both ways and confirming each composition gives back $x$.

Another way to see the same procedure: solve $y = f(x)$ for $x$ first, then rename the variables at the end. Both routes reach the same inverse. Which order feels clearer to you, and why?


Worked Examples

Worked Example 1: Verify an inverse with the round trip

Show that $f(x) = 3x - 6$ and $g(x) = \dfrac{x + 6}{3}$ are inverses.

Predict first. The function $f$ multiplies by $3$ and then subtracts $6$. To reverse those steps, add $6$ and then divide by $3$. The formula for $g$ adds $6$ and divides by $3$, so predict that the two compositions will collapse to $x$.

Check both directions.

$$g(f(x)) = \frac{f(x) + 6}{3} = \frac{(3x - 6) + 6}{3} = \frac{3x}{3} = x$$

$$f(g(x)) = 3\,g(x) - 6 = 3\left(\frac{x + 6}{3}\right) - 6 = (x + 6) - 6 = x$$

Both compositions return $x$, so $f$ and $g$ are inverses. The prediction matched the computation: undoing β€œtimes $3$, minus $6$” really is β€œplus $6$, divide by $3$.”

Worked Example 2: Find an inverse from a formula

Find the inverse of $f(x) = 2x + 1$.

Step 1. Write $y = 2x + 1$.

Step 2. Swap $x$ and $y$: $$x = 2y + 1$$

Step 3. Solve for $y$: $$x - 1 = 2y \qquad\Longrightarrow\qquad y = \frac{x - 1}{2}$$

Step 4. Write the inverse: $$f^{-1}(x) = \frac{x - 1}{2}$$

Step 5. Check with the round trip: $$f^{-1}(f(x)) = \frac{(2x + 1) - 1}{2} = \frac{2x}{2} = x$$ $$f\left(f^{-1}(x)\right) = 2\left(\frac{x - 1}{2}\right) + 1 = (x - 1) + 1 = x$$

Both checks give $x$, so $f^{-1}(x) = \dfrac{x - 1}{2}$ is correct.

Worked Example 3: A function that is not one-to-one

Find the inverse of $f(x) = x^2$, or explain why no inverse function exists.

Predict first. Squaring sends both $3$ and $-3$ to $9$. If two different inputs share an output, the reversed process cannot decide which input to return. Predict that no inverse function exists without a restriction on the domain.

Check. Suppose an inverse existed. Then $f^{-1}(9)$ would have to equal both $3$ and $-3$, because $f(3) = 9$ and $f(-3) = 9$. A function returns one output for each input, so $f^{-1}(9)$ cannot be two numbers at once. The function $f(x) = x^2$ is not one-to-one on all real numbers, so it has no inverse function there.

A repair. Restrict the domain to $x \ge 0$. On that smaller domain, $f(x) = x^2$ is one-to-one, and its inverse is $f^{-1}(x) = \sqrt{x}$. The restriction throws away the negative half so that each output traces back to a single input. Why does keeping only $x \ge 0$ fix the problem, and would keeping only $x \le 0$ work just as well?


Common Misconceptions

Common misconception

$f^{-1}(x)$ means $\dfrac{1}{f(x)}$. The $-1$ in $f^{-1}$ looks like the exponent that produces a reciprocal, but with a function name it is notation for reversal. Test the difference on $f(x) = 2x + 1$. The reciprocal is $\dfrac{1}{2x + 1}$, while the inverse is $\dfrac{x - 1}{2}$. Composing $f$ with its inverse gives $x$, but composing $f$ with its reciprocal does not, so the two are not the same object.

Common misconception

swapping the inputs and outputs of any function gives an inverse function. Reversing the pairs of a function only produces a function when the original is one-to-one. Take $f(x) = x^2$ with the pairs $(2, 4)$ and $(-2, 4)$. Reversing them gives $(4, 2)$ and $(4, -2)$, which assigns two outputs to the single input $4$. That reversed relation is not a function. This is the named pitfall input-output-confusion: the reverse is well behaved only when distinct inputs always produced distinct outputs.

Common misconception

checking one composition is enough. Confirming $f(g(x)) = x$ for one ordered pair, or even for one direction, can hide a mismatch in domains. The inverse property requires both $f^{-1}(f(x)) = x$ and $f(f^{-1}(x)) = x$. This is the named pitfall composition-is-not-chaining: an inverse is not just any function that links up with $f$ once; it must undo $f$ in both directions across the matching domains.


Practice Problems

Level 1 Reading the Notation

For $f(x) = 5x$, write down $\dfrac{1}{f(x)}$ and explain in one sentence why it is not $f^{-1}(x)$.

Thought Process

The reciprocal $\frac{1}{f(x)}$ is found by putting $f(x)$ in the denominator. The inverse reverses the process of $f$. These are different operations.

Show Answer

$$\frac{1}{f(x)} = \frac{1}{5x}$$

This is not $f^{-1}(x)$ because $\frac{1}{5x}$ is the reciprocal of the output, while the inverse $f^{-1}(x) = \dfrac{x}{5}$ reverses the function (multiplying by $5$ is undone by dividing by $5$).

Level 2 Reading an Inverse from a Table

A one-to-one function $f$ has the values below. Find $f^{-1}(8)$ and $f^{-1}(2)$.

$x$ $1$ $2$ $3$ $4$
$f(x)$ $2$ $5$ $8$ $11$
Thought Process

The inverse asks: which input produced this output? Read the table from the bottom row up to the top row.

Show Answer

$f(3) = 8$, so $f^{-1}(8) = 3$.

$f(1) = 2$, so $f^{-1}(2) = 1$.

Level 2 Concept Check: What Does the Round Trip Test?

A student checks $f(g(x)) = x$ and stops, concluding that $g$ is the inverse of $f$. What still needs to be verified before that conclusion is justified?

(A) Nothing; one composition is enough.

(B) That $g(f(x)) = x$ as well.

(C) That $f$ and $g$ have the same formula.

(D) That $f(x) = \dfrac{1}{g(x)}$.

Thought Process

The inverse composition property has two parts. Confirming one direction is necessary but not sufficient; the other direction can fail when the domains do not line up.

Show Answer

Answer: (B) That $g(f(x)) = x$ as well.

  • (A) Incorrect: the inverse property has two directions.
  • (B) Correct: both $f(g(x)) = x$ and $g(f(x)) = x$ are required.
  • (C) Incorrect: inverses almost never have the same formula.
  • (D) Incorrect: the reciprocal is a different object from the inverse.

Key insight: an inverse must undo $f$ in both directions, which is the named pitfall composition-is-not-chaining.

Level 3 Find and Check an Inverse

Find the inverse of $f(x) = 4x - 7$ and verify it with one composition.

Thought Process

Write $y = 4x - 7$, swap $x$ and $y$, solve for $y$, then check with $f^{-1}(f(x))$.

Show Answer

Find it. Start from $y = 4x - 7$. Swap to get $x = 4y - 7$. Solve: $$x + 7 = 4y \qquad\Longrightarrow\qquad y = \frac{x + 7}{4}$$ So $f^{-1}(x) = \dfrac{x + 7}{4}$.

Check it. $$f^{-1}(f(x)) = \frac{(4x - 7) + 7}{4} = \frac{4x}{4} = x$$

The composition returns $x$, so the inverse is correct.

Level 4 When an Inverse Fails Without a Restriction

Explain why $f(x) = x^2 - 4$ has no inverse function on all real numbers, then give a domain restriction on which it does have an inverse, and state that inverse.

Thought Process

Look for two different inputs with the same output. If they exist, the function is not one-to-one. Then cut the domain so that no output is repeated.

Show Answer

Why it fails. Both $x = 3$ and $x = -3$ give $f(x) = 9 - 4 = 5$. Two inputs share the output $5$, so $f$ is not one-to-one on all real numbers, and the reversed relation would have to send $5$ back to both $3$ and $-3$. No function does that.

A restriction that works. On the domain $x \ge 0$, the function $f(x) = x^2 - 4$ is one-to-one. Find the inverse by solving $y = x^2 - 4$: $$y + 4 = x^2 \qquad\Longrightarrow\qquad x = \sqrt{y + 4}$$ (the positive root, because $x \ge 0$). Renaming gives $$f^{-1}(x) = \sqrt{x + 4}.$$

Check. For $x \ge 0$: $f^{-1}(f(x)) = \sqrt{(x^2 - 4) + 4} = \sqrt{x^2} = x$.

Level 5 Domain, Range, and a Two-Way Proof

Let $f(x) = \dfrac{1}{x - 2}$ with domain $x \ne 2$. Find $f^{-1}(x)$, state its domain, and prove the inverse relationship by composing in both directions.

Thought Process

Swap $x$ and $y$ in $y = \frac{1}{x - 2}$, solve for $y$, and read off where the new formula is undefined. Then run the round trip both ways.

Show Answer

Find the inverse. Start from $y = \dfrac{1}{x - 2}$. Swap variables: $$x = \frac{1}{y - 2}$$ Solve for $y$. Multiply both sides by $y - 2$: $$x(y - 2) = 1 \qquad\Longrightarrow\qquad y - 2 = \frac{1}{x} \qquad\Longrightarrow\qquad y = \frac{1}{x} + 2$$ So $$f^{-1}(x) = \frac{1}{x} + 2.$$

Domain of the inverse. The formula $\dfrac{1}{x} + 2$ is undefined at $x = 0$, so the domain of $f^{-1}$ is $x \ne 0$. This matches the range of $f$, since $\dfrac{1}{x - 2}$ never equals $0$. The domain and range swap, as expected.

Prove both directions. $$f^{-1}(f(x)) = \frac{1}{\frac{1}{x - 2}} + 2 = (x - 2) + 2 = x \quad (x \ne 2)$$ $$f\left(f^{-1}(x)\right) = \frac{1}{\left(\frac{1}{x} + 2\right) - 2} = \frac{1}{\frac{1}{x}} = x \quad (x \ne 0)$$

Both compositions return $x$ on their domains, so $f^{-1}(x) = \dfrac{1}{x} + 2$ is the inverse.


Mastery Checklist

Novice (Level 1-2):

Competent (Level 3-4):

Proficient (Level 5):


Mental Model

The β€œundo” model. A function is a set of instructions: take $x$, do something to it, report the result. The inverse is the set of instructions that puts everything back. If $f$ says β€œmultiply by $3$, then subtract $6$,” then $f^{-1}$ says β€œadd $6$, then divide by $3$,” carried out in the reverse order. The round trip $f^{-1}(f(x)) = x$ is the promise that following the instructions and then undoing them leaves the input untouched.

The model also explains the one-to-one requirement. Instructions can only be undone if they never erase information. Squaring erases the sign of the input, so there is no single instruction that recovers it, which is why $x^2$ has no inverse until the negative half of the domain is removed.


Connections

Looking back:

Looking ahead:

Real-world connections:


Resources



Last updated: 2026-06-16