1.4 Inverse Functions

Learning Objectives

In this section, you will learn to:
  • Determine the conditions for when a function has an inverse.
  • Use the horizontal line test to recognize when a function is one-to-one.
  • Find the inverse of a given function.
  • Draw the graph of an inverse function.
  • Evaluate inverse trigonometric functions.

Think of a function as a machine: you drop in an input, and it produces exactly one output. An inverse function reverses that process — it takes the output and hands back the original input. But not every function can be reversed cleanly. In this section we figure out exactly when a function has an inverse, how to find it, how to draw it, and how to apply the idea to the six trigonometric functions — giving us a toolkit of six new inverse trig functions that are indispensable in calculus.

1.4.1 Existence of an Inverse Function

Definition 1.4.1: Inverse Function

Given a function \(f\) with domain \(D\) and range \(R\), its inverse function (if it exists) is the function \(f^{-1}\) with domain \(R\) and range \(D\) such that \(f^{-1}(y) = x\) if \(f(x) = y\). In other words, for a function \(f\) and its inverse \(f^{-1}\),

$$ f^{-1}(f(x)) = x \quad \text{for all } x \text{ in } D, \quad \text{and} \quad f(f^{-1}(y)) = y \quad \text{for all } y \text{ in } R. $$

Note that \(f^{-1}\) is read as "f inverse." The \(-1\) is NOT an exponent: \(f^{-1}(x) \ne \frac{1}{f(x)}\). Figure 1.37 shows the domain-and-range relationship between \(f\) and \(f^{-1}\).

Figure 1.37 — Given a function f and its inverse f^-1, f^-1(y) = x if and only if f(x) = y. The range of f becomes the domain of f^-1 and the domain of f becomes the range of f^-1. Figure 1.37 — Given a function f and its inverse f^-1, f^-1(y) = x if and only if f(x) = y. The range of f becomes the domain of f^-1 and the domain of f becomes the range of f^-1.

Figure 1.37 — Given a function \(f\) and its inverse \(f^{-1}\), \(f^{-1}(y) = x\) if and only if \(f(x) = y\). The range of \(f\) becomes the domain of \(f^{-1}\) and the domain of \(f\) becomes the range of \(f^{-1}\).

Definition 1.4.2: One-to-One Function

We say \(f\) is a one-to-one function if \(f(x_1) \ne f(x_2)\) whenever \(x_1 \ne x_2\).

"One-to-one" means no two guests (inputs) get the same seat (output). If two people try to share a seat, we cannot reverse the seating chart and tell just from the seat which person was there. One-to-one functions are precisely the functions whose seating chart CAN be reversed uniquely.

A quick graphical check exists: the horizontal line test. If every horizontal line crosses the graph at most once, the function is one-to-one. (Compare this to the vertical line test, which checks whether a curve is a function at all. The horizontal line test checks whether that function is one-to-one.)

Rule: Horizontal Line Test

A function \(f\) is one-to-one if and only if every horizontal line intersects the graph of \(f\) no more than once.

Figure 1.38 — (a) The function \(f(x) = x^2\) is not one-to-one because it fails the horizontal line test. (b) The function \(f(x) = x^3\) is one-to-one because it passes the horizontal line test.

We start with a concrete example. Consider \(f(x) = x^3 + 4\). If we get an output \(y\), we can solve \(y = x^3 + 4\) for \(x\): subtract 4, then take the cube root to get \(x = \sqrt[3]{y - 4}\). That formula defines \(x\) as a function of \(y\), and it perfectly "undoes" whatever \(f\) did. We call this the inverse function and write \(f^{-1}(y) = \sqrt[3]{y - 4}\). Notice \(f^{-1}(f(x)) = \sqrt[3]{(x^3 + 4) - 4} = x\) — the composition brings us right back to where we started.

Not every function can be undone this cleanly. Try \(f(x) = x^2\): solving \(y = x^2\) gives \(x = \pm\sqrt{y}\). Two answers! For any positive \(y\) there are two inputs (\(\sqrt{y}\) and \(-\sqrt{y}\)) that produce it, so we cannot point to a single "original" input. The culprit is that \(f(x) = x^2\) sends two different inputs to the same output. Functions that avoid this problem — where each output came from exactly one input — are called one-to-one functions.

Try It Now 1.4.1

Is the function \(f\) graphed below one-to-one?

Try It Now 1.4.1 — f(x) = x^3 - x for the horizontal-line-test exercise. Try It Now 1.4.1 — f(x) = x^3 - x for the horizontal-line-test exercise.

Try It Now 1.4.1 — f(x) = x^3 - x for the horizontal-line-test exercise.

Solution

Apply the horizontal line test. The function \(f(x) = x^3 - x\) is a cubic with a local max and a local min, which means some horizontal lines cross it three times. Therefore, \(f\) is not one-to-one on its natural domain.

Answer: Not one-to-one.

Example 1.4.1: Determining Whether a Function Is One-to-One

For each of the following functions, use the horizontal line test to determine whether it is one-to-one.

  1. ![An image of a graph. The x axis runs from -3 to 11 and the y axis runs from -3 to 11. The graph is of a step function which contains 10 hori](figures/figure_1.4.inline_3.png)
  2. ![An image of a graph. The x axis runs from -3 to 6 and the y axis runs from -3 to 6. The graph is of the function "f(x) = (1/x)", a curved de](figures/figure_1.4.inline_4.png)
Solution
  1. Since the horizontal line \(y = n\) for any integer \(n \ge 0\) intersects the graph more than once, this function is not one-to-one.
Example 1.4.1 solution graph #1 — the step function with two horizontal lines, each crossing an entire tread, demonstrating HLT failure. Example 1.4.1 solution graph #1 — the step function with two horizontal lines, each crossing an entire tread, demonstrating HLT failure.

Example 1.4.1 solution graph #1 — the step function with two horizontal lines, each crossing an entire tread, demonstrating HLT failure.

  1. Since every horizontal line intersects the graph at most once, this function is one-to-one.
Example 1.4.1 solution graph #2 — the hyperbola 1/x with three horizontal lines each crossing exactly once, demonstrating HLT passage. Example 1.4.1 solution graph #2 — the hyperbola 1/x with three horizontal lines each crossing exactly once, demonstrating HLT passage.

Example 1.4.1 solution graph #2 — the hyperbola 1/x with three horizontal lines each crossing exactly once, demonstrating HLT passage.

1.4.2 Finding a Function's Inverse

Because a one-to-one function sends each input to a unique output, we can always work backwards: given any output \(y\) in the range, there is exactly one input \(x\) in the domain with \(f(x) = y\). To find that input algebraically:

Problem-Solving Strategy: Finding an Inverse Function

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

Step 2. Solve the equation for \(x\) in terms of \(y\). The result is \(x = f^{-1}(y)\).

Step 3. Interchange \(x\) and \(y\) so the inverse is written as \(y = f^{-1}(x)\).

Step 4. State the domain and range of \(f^{-1}\): the domain of \(f^{-1}\) is the range of \(f\), and the range of \(f^{-1}\) is the domain of \(f\). Verify by checking \(f^{-1}(f(x)) = x\).

Try It Now 1.4.2

Find the inverse of \(f(x) = \dfrac{3x}{x - 2}\). State the domain and range of the inverse function.

Solution

Step 1. Set \(y = \dfrac{3x}{x - 2}\).

Step 2. Solve for \(x\): $$ y(x - 2) = 3x \implies yx - 2y = 3x \implies yx - 3x = 2y \implies x(y - 3) = 2y \implies x = \frac{2y}{y - 3}. $$

Step 3. Interchange \(x\) and \(y\): $$ f^{-1}(x) = \frac{2x}{x - 3}. $$

Step 4. The original function \(f\) has domain \(\{x \mid x \ne 2\}\) and range \(\{y \mid y \ne 3\}\). Therefore \(f^{-1}\) has domain \(\{x \mid x \ne 3\}\) and range \(\{y \mid y \ne 2\}\).

Answer: \(f^{-1}(x) = \dfrac{2x}{x - 3}\), domain \(x \ne 3\), range \(y \ne 2\).

Example 1.4.2: Finding an Inverse Function

Find the inverse for \(f(x) = 3x - 4\). State the domain and range of the inverse function. Verify that \(f^{-1}(f(x)) = x\).

Solution

Step 1. Write \(y = 3x - 4\).

Step 2. Solve for \(x\): $$ 3x = y + 4 \implies x = \tfrac{1}{3}y + \tfrac{4}{3}. $$

Step 3. Interchange \(x\) and \(y\): $$ f^{-1}(x) = \tfrac{1}{3}x + \tfrac{4}{3}. $$

Step 4. Since the domain of \(f\) is \((-\infty, \infty)\), the range of \(f^{-1}\) is \((-\infty, \infty)\). Since the range of \(f\) is \((-\infty, \infty)\), the domain of \(f^{-1}\) is \((-\infty, \infty)\).

Verification: $$ f^{-1}(f(x)) = f^{-1}(3x - 4) = \tfrac{1}{3}(3x - 4) + \tfrac{4}{3} = x - \tfrac{4}{3} + \tfrac{4}{3} = x. \checkmark $$

Answer: \(f^{-1}(x) = \dfrac{1}{3}x + \dfrac{4}{3}\), with domain and range both \((-\infty, \infty)\).

Graphing Inverse Functions

The graphs of \(f\) and \(f^{-1}\) are mirror images of each other across the line \(y = x\). Here is why: if the point \((a, b)\) is on the graph of \(f\) (meaning \(b = f(a)\)), then \(a = f^{-1}(b)\), so the point \((b, a)\) is on the graph of \(f^{-1}\). Swapping \(x\)- and \(y\)-coordinates is exactly the reflection over \(y = x\).

Figure 1.39 — (a) The graph of this function \(f\) shows point \((a, b)\) on the graph of \(f\). (b) Since \((a, b)\) is on the graph of \(f\), the point \((b, a)\) is on the graph of \(f^{-1}\). The graph of \(f^{-1}\) is a reflection of the graph of \(f\) about the line \(y = x\).

Try It Now 1.4.3

Sketch the graph of \(f(x) = 2x + 3\) and the graph of its inverse using the symmetry property of inverse functions.

Solution

First find \(f^{-1}\): solving \(y = 2x + 3\) for \(x\) gives \(x = \dfrac{y - 3}{2}\), so \(f^{-1}(x) = \dfrac{x - 3}{2}\).

The graph of \(f\) is a line with slope 2 and \(y\)-intercept 3. The graph of \(f^{-1}\) is a line with slope \(\dfrac{1}{2}\) and \(y\)-intercept \(-\dfrac{3}{2}\). Both graphs are reflections of each other across the line \(y = x\).

Answer: \(f^{-1}(x) = \dfrac{x - 3}{2}\); the two lines are mirror images across \(y = x\).

Example 1.4.3: Sketching Graphs of Inverse Functions

For the graph of \(f\) shown below, sketch a graph of \(f^{-1}\) by using symmetry about the line \(y = x\). Identify the domain and range of \(f^{-1}\).

Example 1.4.3 prompt graph — f(x) = sqrt(x + 2) on the visible window, given for the inverse-sketching exercise. Example 1.4.3 prompt graph — f(x) = sqrt(x + 2) on the visible window, given for the inverse-sketching exercise.

Example 1.4.3 prompt graph — f(x) = sqrt(x + 2) on the visible window, given for the inverse-sketching exercise.

Answer: Domain of \(f^{-1}\) is \([0, \infty)\); range of \(f^{-1}\) is \([-2, \infty)\).