Skip to main content

Section 2.5 Inverse Functions

Subsection 2.5.1 One-to-One Functions

If a function has no two ordered pairs with the same second coordinate and different first coordinates, then the function is called one-to-one.

Example 2.5.1.

Determine whether each function is one-to-one.
(a) \(\{ (3,4), (5,6), (7,8), (11,15) \}\)
(b) \(\{(-1,9), (2,8), (3,7), (1,9)\}\)
Solution:
(a) Yes. None of the pairs have the same second coordinate.
(b) No, because \((-1,9)\) and \((1,9)\) have the same second coordinate (\(9\)) but different first coordinates.
Another approach: switch all the ordered pairs \((x,y) \rightarrow (y,x)\text{,}\) and see if the new set of pairs is a function.

Subsection 2.5.2 Horizontal Line Test

Theorem: If each horizontal line intersects the graph of a function at no more than \(1\) point, then the function is one-to-one.

Example 2.5.2.

Determine whether the following are one-to-one functions.
(a) \(f(x)=|x|\)
(b) \(f(x)=x^3\)
Solution
(a) The graph of \(f(x)=|x|\) is below, and the dashed line clearly shows that function fails the Horizontal Line Test. So, the absolute value function is not one-to-one.
Figure 2.5.3. Graph of the absolute value function with a dashed line intersecting the graph at two points.
(b) The graph of \(f(x)=x^3\) is below, and it clearly passes the Horizontal Line Test. So, \(f(x)=x^3\) is one-to-one.
Figure 2.5.4. Graph of \(f(x)=x^3\) with multiple dashed lines intersecting the graph at one point each.
Note: If two points on the graph are on the same horizontal line, then they have the same \(y\)-coordinate and different \(x\)-coordinates.

Subsection 2.5.3 A function defined by an equation

A function \(f(x)\) is one-to-one if for each function value \(y\text{,}\) there is only \(1\) \(x\)-value you can plug into \(f\) to get \(y\text{.}\)

Example 2.5.5.

Is \(f(x)=x^2\) one-to-one?
Solution: Β  No, since both \(f(-1)=1\) and \(f(1)=1\text{.}\) Note that this means that the graph of \(f(x)\) includes \((-1,1)\) and \((1,1)\text{.}\)
Also, \(f(-2)=4\) and \(f(2)=4\text{.}\)
In fact, if \(c \gt 0\text{,}\) then \(f(-\sqrt{c})=c\) and \(f(\sqrt{c})=c\text{.}\)

Subsection 2.5.4 Inverse Functions

If \(f\) is a one-to-one function given as a set of ordered pairs \((x,y)\text{,}\) then the set of pairs \((y,x)\) is a function \(f^{-1}\) called the inverse of \(f\text{.}\) Also, \(f\) is said to be invertible.

Example 2.5.6.

Let \(f=\{ (1,1), (2,4), (4,16), (7,49) \}\text{.}\) Is \(f\) invertible?
If so, find the inverse \(f^{-1}\text{.}\)
Solution: Β  No ordered pairs have the same second coordinate, so \(f\) is one-to-one. That means \(f\) is invertible.
To find the inverse, switch the pairs around.
\begin{equation*} f^{-1}= \{ (1,1), (4,2), (16,4), (49,7) \} \end{equation*}

Example 2.5.7.

Let \(f=\{ (-1,5), (0,0), (2,6) \}\text{.}\) Find \(f^{-1}\text{,}\) \(\text{ }f^{-1}(5) \text{ }\) and \(\text{ }(f^{-1} \circ f)(2)\text{.}\)
Solution: Β  Interchange the coordinates in each pair.
\begin{equation*} f^{-1}=\{ (5,-1), (0,0), (6,2) \} \end{equation*}
\(f^{-1}(5)\) is the second coordinate when the first coordinate is \(5\text{.}\) So, \(f^{-1}(5)=-1\text{.}\)
Use the definition of function composition to find \(\text{ }(f^{-1} \circ f)(2)\text{.}\)
\begin{align*} (f^{-1} \circ f)(2) \amp = f^{-1}(f(2)) \\ \amp =f^{-1}(6) \quad \quad \quad \text{ since $(2,6)$ is in $f$} \\ \amp = 2 \quad \quad \quad \quad \quad \text{since $(6,2)$ is in $f^{-1}$} \end{align*}

Subsection 2.5.5 Using Composition to Verify Inverse Functions

  • If \(f\) is invertible, then the inverse of \(f^{-1}\) is \(f\text{.}\) In other words, \((f^{-1})^{-1}=f\text{.}\)
  • Functions \(f\) and \(g\) are inverses of each other if and only if
    1. \(g(f(x))=x\) for every \(x\) in the domain of \(f\) and
    2. \(f(g(x))=x\) for every \(x\) in the domain of \(g\text{.}\)

Example 2.5.8.

Let \(f(x)=\frac{2}{x-9}\) and \(g(x)=\frac{2}{x}+9\text{.}\) Determine if \(f\) and \(g\) are inverses of each other.
Solution: Β  We will first check that \(g(f(x))=x\text{.}\)
\begin{align*} g(f(x)) \amp = \frac{2}{\frac{2}{x-9}} +9 \\[0.25em]\\ \amp = 2 \cdot \frac{x-9}{2} +9 \\[0.25em]\\ \amp = x-9 +9 \\ \amp = x \end{align*}
Since this condition holds, we now check that \(f(g(x))=x\text{.}\)
\begin{align*} f(g(x)) \amp = \frac{2}{ \left(\frac{2}{x}+9 \right)-9} \\[0.25em]\\ \amp = \frac{2}{ \frac{2}{x}+9 -9} \\[0.25em]\\ \amp = \frac{2}{\frac{2}{x}} \\[0.25em]\\ \amp = 2 \cdot \frac{x}{2} \\[0.25em]\\ \amp = x \end{align*}
This condition holds as well, so \(f\) and \(g\) are inverses of each other.

Example 2.5.9.

Verify that the inverse of \(f(x)=8x+6\) is \(f^{-1}(x)=\tfrac{x-6}{8}\text{.}\)
Solution: Β  First verify that \(f^{-1}(f(x))=x\text{.}\)
\begin{align*} f^{-1}(f(x)) \amp = f^{-1}(8x+6) \\[0.25em]\\ \amp =\frac{(8x+6)-6}{8} \\[0.25em]\\ \amp= \frac{8x}{8} \\[0.25em]\\ \amp= x \end{align*}
Next, verify that \(f(f^{-1}(x))=x\)
\begin{align*} f(f^{-1}(x)) \amp = f \left(\frac{x-6}{8} \right) \\[0.25em]\\ \amp = 8 \left( \frac{x-6}{8} \right) +6 \\[0.25em]\\ \amp= x-6 +6 \\ \amp= x \end{align*}
Each function undoes the operations of the other to get to \(x\text{.}\)

Subsection 2.5.6 Finding an Inverse by Reversing a Composition

If \(f\) is a composition, we can find \(f^{-1}\) by applying the inverse (opposite) operations to \(x\) in reverse order.
In ExampleΒ 2.5.9, the function \(f(x)=8x+6\) takes \(x\) and
  1. Multiplies by \(8\)
  2. Adds \(6\)
On the other hand, \(f^{-1}\) takes \(x\) and reverses these steps:
  1. Subtracts \(6\)
  2. Divides by \(8\)

Example 2.5.10.

Complete the table.
Function Inverse \(f^{-1}(x)\)
\(f(x)=2x \)
\(f(x)=x-5\)
\(f(x)=x^3 \)
\(f(x)=-x \)
Solution
Function Inverse
\(f(x)=2x \) \(f^{-1}(x)=\frac{x}{2}\)
\(f(x)=x-5\) \(f^{-1}(x)=x+5\)
\(f(x)=x^3 \) \(f^{-1}(x)=\sqrt[3]{x} \)
\(f(x)=-x \) \(f^{-1}(x)=-x \)

Example 2.5.11.

Find the inverse function for each:
(a) \(\text{ }f(x)=9x-8\) Β  Β  Β  Β  Β  Β  Β  Β  (b) \(\text{ } f(x)=6 \sqrt[3]{x-8}\) Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β 
Solution
(a) The function \(f\) takes \(x\) and:
  1. Multiplies by \(9\)
  2. Subtracts \(8\)
So, \(f^{-1}\) takes \(x\) and:
  1. Adds 8:
    \begin{equation*} x \to x + 8 \end{equation*}
  2. Divides by 9:
    \begin{equation*} x + 8 \to \frac{x+8}{9} \end{equation*}
Therefore, \(f^{-1}(x)=\frac{x+8}{9}\text{.}\)
(b) The function \(f\) takes \(x\) and:
  1. Subtracts \(8\)
  2. Takes the cube root
  3. Multiplies by \(6\)
So, \(f^{-1}\) takes \(x\) and:
  1. Divides by \(6\text{:}\)
    \begin{equation*} x \to \frac{x}{6} \end{equation*}
  2. Cubes the result:
    \begin{equation*} \frac{x}{6} \to \left( \frac{x}{6} \right)^3 \end{equation*}
  3. Adds \(8\text{:}\)
    \begin{equation*} \left( \frac{x}{6} \right)^3 \to \left( \frac{x}{6} \right)^3 +8 \end{equation*}
Therefore, \(f^{-1}(x)=\left( \frac{x}{6} \right)^3 +8 \)

Subsection 2.5.7 Finding an Inverse with the Switch-and-Solve Method

For an invertible function \(f(x)\text{:}\)
  1. Replace \(f(x)\) with \(y\text{.}\)
  2. Interchange \(x\) and \(y\) in the equation.
  3. Solve the equation for \(y\text{.}\)
  4. Replace \(y\) with \(f^{-1}(x)\) to write the inverse function.

Example 2.5.12.

Find the inverse of \(f(x)=2x+3\text{.}\)
Solution:
Step 1: Replace \(f(x)\) with \(y\text{.}\)
\begin{equation*} y=2x+3 \end{equation*}
Step 2: Interchange \(x\) and \(y\) in the equation.
\begin{equation*} x=2y+3 \end{equation*}
Step 3: Solve for \(y\text{:}\)
\begin{align*} 2y+3 -\underline{3} \amp =x -\underline{3} \\ 2y \amp =x-3 \\[0.25em]\\ \frac{2y}{2} \amp =\frac{x-3}{2} \\[0.25em]\\ y \amp =\frac{x-3}{2} \end{align*}
Step 4: Replace \(y\) with \(f^{-1}(x)\) to write the inverse function.
\begin{equation*} f^{-1}(x)=\frac{x-3}{2} \end{equation*}

Subsection 2.5.8 Domain and Range of the Inverse

Recall: \(f(x)=x^2\) is not one-to-one (ExampleΒ 2.5.5). We can make it one-to-one by restricting its domain (for example, to \(x \geq 0\)).
\begin{equation*} f(x)=x^2 \text{ for } x \geq 0 \text{ is one-to-one}. \end{equation*}
As we see in FigureΒ 2.5.13, this function passes the Horizontal Line Test.
Figure 2.5.13. Graph of \(f(x)=x^2 \text{ for } x \geq 0 \text{,}\) showing only the right-hand side of the graph of \(y=x^2\text{.}\)
Notice that the outputs are all nonnegative, so the range is \([0, \infty)\text{.}\) This will become the domain of the inverse function.
This leads to a general fact: for any one-to-one function \(f\text{,}\)
  • Domain of \(f^{-1}=\) Range of \(f\text{.}\)
  • Range of \(f^{-1}=\) Domain of \(f\text{.}\)

Example 2.5.14.

Find the inverse of \(f(x)=\sqrt{x-1}\text{.}\)
Solution: Β  Compute \(f^{-1}\) using the Switch-and-Solve Method.
Step 1: \(y=\sqrt{x-1} \)
Step 2: Interchange \(x\) and \(y\text{.}\) Β  \(x=\sqrt{y-1}\text{.}\)
Step 3: Solve for \(y\text{:}\)
\begin{align*} x^2 \amp =\sqrt{y-1}^2 \\ x^2 \amp =y-1 \\[0.25em]\\ x^2 +\underline{1} \amp =y-1 +\underline{1} \\ x^2 +1 \amp =y \end{align*}
Step 4: \(f^{-1}(x)=x^2+1 \)
We need the domain:
\begin{equation*} \text{Domain of } f^{-1} = \text{ Range of }f =[0,\infty). \end{equation*}
Therefore, \(f^{-1}(x)=x^2+1 \text{ for } x \geq 0 \text{.}\)

Subsection 2.5.9 Reflection Property of Inverse Functions

The graph of \(f^{-1}\) is a reflection of the graph of \(f\) with respect to the line \(y=x\text{.}\) See FigureΒ 2.5.15 for a visual example of this property.
Figure 2.5.15. Graph of a one-to-one function alongside its inverse.

Example 2.5.16.

Graph \(f(x)=\sqrt{x-1}\) and its inverse on the same coordinate plane.
Solution:
From the last example, we have
\begin{equation*} f^{-1}(x)=x^2+1 \text{ for }x\geq 0. \end{equation*}
Switch around the coordinate pairs for the points on the graph of \(f\) to get points on the graph of \(f^{-1}\text{.}\)
  • Graph of \(f\text{:}\) Β  \((1,0)\text{,}\) \(\text{ }(2,1)\text{,}\) etc.
  • Graph of \(f^{-1}\text{:}\) Β  \((0,1)\text{,}\) \(\text{ }(1,2)\text{,}\) etc.
See FigureΒ 2.5.17 for the finished graph.
Figure 2.5.17. Graph of \(f(x)=\sqrt{x-1}\) and its inverse.