1.5 Inverse Functions

Bora Bora, Tahiti photo by Julius Silver on Pexels Bora Bora, Tahiti photo by Julius Silver on Pexels

Introduction

Imagine that you flew to Tahiti for a vacation. After spending some time enjoying the white sandy beaches and crystal clear water, you might want to return home. To get back home you would need to find a return flight.

In mathematics, a process that brings you back to where you started is called an inverse.

In this section you will learn to recognize when a function has an inverse and how to find it.

Inverse Operations

Many real life processes have inverses while others do not. For instance, if you put on your shoes and socks you can easily take them off, but once you boil an egg there's no way to make it raw again.

You are, no doubt, already familiar with some inverse operations in mathematics. Adding and subtracting are inverse operations, for instance. If you add $6$, and then subtract $6$, you end up right back where you started, having completed a round trip.

Multiplication and division are also inverse operations. As an example, multiplying by $-3$ and dividing by $-3$ are inverse operations.

The only exception is $0$. Multiplying by $0$ cannot be undone with division, since division by $0$ is not well defined.

There are other operations that sometimes have inverses and sometimes do not. Powers and roots are prime examples. When working with positive numbers, powers and roots are always inverses. Here are a few powers of $2$ and the corresponding roots, for instance.

It gets more complicated when working with negative numbers, however. Consider the following powers and roots of $ -5$.

This time, taking an even power followed by an even root did not produce a round trip. This indicates that even powers and roots are not always inverse operations. Even powers and roots are inverses only when working with non-negative numbers.

The following table summarizes the basic inverse operations.

QUICK CHECK

  1. What is the inverse of multiplying by $-4$?

    Answer
    Dividing by $-4$.

  2. What is the inverse of a power of $3$?

    Answer
    The 3rd root $\sqrt[3]{\thinspace \cdot \thinspace}$, which is also the $\frac{1}{3}$ power.

Definition of an Inverse Function

If a function has an inverse, then the inverse function should return each output back to its input, just like a return airline flight.

DEFINITION

The inverse of a function $f$ is a function $f^{-1}$ with the property that whenever $f(a)=b$, it always follows that $f^{-1}(b)=a$.

Note that the outputs of the original function become the inputs of the inverse function. As a consequence, the domain of $f$ is the range of $f^{-1}$, and the range of $f$ is the domain of $f^{-1}$.

This new notation can be a bit confusing. The symbol $f^{-1}$ is used to indicate the "inverse of $f $ ". Even though the $-1$ looks like an exponent it is not: $f^{-1}$ does not mean $\frac{1}{f}$.

QUICK CHECK

  1. Suppose the function $f$ has an inverse and that $f(3)=6$. What do you know about $f^{-1}(6)$?

    Answer
    $f^{-1}(6)=3$

  2. Suppose the domain of $f$ is $D= \lbrace 1, 2, 3, 4 \rbrace$ and that its range is $R= \lbrace 5, 6, 7, 8 \rbrace$. What are the domain and range of $f^{-1}$?

    Answer
    The domain and range trade places. The domain of the inverse function is the set $D = \lbrace 5, 6, 7, 8 \rbrace$ and its range is $R = \lbrace 1, 2, 3, 4 \rbrace$.

Identify Invertible Functions

Let's look at two functions defined by diagrams and see if they have inverse functions.

This first function matches Josie, Ahani, and Mary with their favorite fruit.

Notice that it is easy to match each fruit back to the person who likes it by reversing the diagram for $f$. This means that $f$ has an inverse function.

The situation is different with the second function which pairs the same people with their Italian dream car.

Since both Josie and Ahani prefer Ferrari, we are unable to map Ferrari back to a single person. Thus, according to our definition, $g$ does not have an inverse.

These examples illustrate the general situation. Functions only have inverses if each output comes from just one input. In other words, different inputs always generate different outputs. The only way for $f(x_1) = f(x_2)$ is for $x_1 = x_2$. Functions with this property are called one-to-one functions. Only one-to-one functions have inverses.

When a function is defined by a diagram, you can determine if it is one-to-one by inspecting each input-output pair. If two or more different inputs are paired with the same output, then the function is not one-to-one and does not have an inverse. This technique can also be used when the function is defined by a table or a list of points.

QUICK CHECK

  1. Does this diagram represent a function that is one-to-one?

    Answer
    Yes, it is one-to-one. Each output is created by a different input.

  2. Does this diagram represent a function that is one-to-one?

    Answer
    No, it is not one-to-one since salad was chosen by Ann and Chris.

  3. Is the function in this table one-to-one?

    Answer
    No, it is not one-to-one. Several outputs are created by more than one input. For instance, $2$ and $3$ both create the same output of $6$.

  4. Are these ordered pairs a one-to-one function? [ f(x) = \left\lbrace \thinspace (\color{red}{2}, \color{blue}{3}), \thinspace(\color{red}{5}, \color{blue}{1}), \thinspace(\color{red}{0}, \color{blue}{-9}) \thinspace \right\rbrace ]

    Answer
    Yes, this is one-to-one.

The Horizontal Line Test

Since different inputs to a one-to-one function always create different outputs, no two points on the graph of a one-to-one function can have the same y-coordinate.

A quick way to test this is to draw (or imagine drawing) several horizontal lines through the graph. If the function is one-to-one, then no horizontal line will cross the graph more than once. This test is called the horizontal line test and works exactly like the vertical line test, except in the horizontal direction. One-to-one functions must pass both the vertical line test (to be a function) and the horizontal line test (so that it is one-to-one).

In each of the figures below there is a blue horizontal line. Apply the horizontal line test to each function by moving the horizontal line up and down graph.

QUICK CHECK

  1. Is this function one-to-one?

    Answer
    No, it does not pass the horizontal line test, so it is not one-to-one.

  2. Does this function have an inverse?

    Answer
    Yes, this passes the horizontal line test, so is one-to-one and must have an inverse.

Use Tables or Diagrams to Find Inverses

Consider again the function that matched Jill, Alicia and Mary with their favorite fruit. Since it is a one-to-one function, it must have an inverse function. We can construct the inverse function $f^{-1}$ by reversing the diagram for $f$.

In general, if a one-to-one function $f$ is defined by a diagram, a table or a list of ordered pairs, then the inverse function $f^{-1}$ is formed by reversing all the ordered pairs.

QUICK CHECK

Find of the inverses of following one-to-one functions.

  1. Find the inverse of the one-to-one function given in this diagram.

    Answer

  2. Find the inverse of the function in given by this table.

    Answer

  3. Find the inverse of the function below. [ f(x) = \left\lbrace \thinspace (\color{red}{2}, \color{blue}{3}), \thinspace(\color{red}{5}, \color{blue}{1}), \thinspace(\color{red}{0}, \color{blue}{-9}) \thinspace \right\rbrace ]

    Answer
    [ f^{-1}(x) = \left\lbrace \thinspace (\color{blue}{3},\color{red}{2}), \thinspace(\color{blue}{1},\color{red}{5}), \thinspace(\color{blue}{-9},\color{red}{0}) \thinspace \right\rbrace ]

Graph the Inverse of a Function

This idea of reversing the ordered pairs to find the inverse can be used to graph inverse functions, even if we don't know their equations. We can do this by identifying a point $(\color{red}{x}, \color{blue}{y})$ on the graph of $f$ and reversing the coordinates. The new point $(\color{blue}{y}, \color{red}{x})$ will be on the graph of $f^{-1}$.

Use the interactive figure below to explore this relationship. As you move the blue point $\color{blue}{(x, y)}$ on $f$ the inverse point $\color{black}{(y, x)}$ on $f^{-1}$ will be plotted.

To use the interactive figure visit   https://www.geogebra.org/m/ahZnh6T9

As you might have noticed, reversing the ordered pairs has the same effect as reflecting the graph across the line $y=x$. In fact, a quick way to graph an inverse by hand is to locate a few points on the graph of $f$ and reflect them.

Inverses of Basic Functions

When a function is defined by a single operation, finding the inverse is as simple as finding the inverse operation, if it exists. This is the case with several of our six basic functions.

Cube & Cube Root

For instance, since the cube and cube root are opposite operations, the cube and cube root functions are inverses of each other.

Notice that both functions pass the horizontal line test.

Square & Square Root

The square function, on the other hand, does not pass the horizontal line test, so it cannot have an inverse.

At the same time, it certainly would be useful to think of the square and square root functions as inverses. Perhaps there is a way to work around this?

The solution is to remember that the square and square root are inverse operations only when working with non-negative numbers. If we restrict the domain and only work with $f(x)=x^{2}$ when $x \geq 0$, then we will have a pair of inverse functions.

QUICK CHECK

  1. What is the inverse of the identity function $f(x)=x$?

    Answer
    The identity function does not perform an operation, the output is exactly the same as the input. As a result, the identity function is its own inverse, $f^{-1}(x)=f(x)=x$.

  2. What is the inverse of the reciprocal function$f(x)=\frac{1}{x}$?

    Answer
    Since the opposite of a reciprocal is a reciprocal, the reciprocal function is also its own inverse: $f^{-1}(x)=f(x)=\frac{1}{x}$.

Use the Shoes and Socks Method to Find Inverses

You have learned that if a one-to-one function is defined by a diagram, table, or graph, then its inverse can be found by reversing the ordered pairs. If the function is defined by a single operation, then the inverse is the function that performs the opposite operation.

When functions include several operations there are two methods for finding the inverse, if it exists. In Chapter 4 you will learn a switch and solve method based on the idea of reversing the ordered pairs of a function.

Right now, however, the focus is on a simpler socks and shoes method. This method gets its name from the obvious place. When getting dressed you put on your socks before putting on your shoes. To take them off you must reverse the order: first remove your shoes and then take off your socks.

A great illustration of this method comes from the classic television program Mr. Rogers' Neighborhood. The U.S. Postal Service honored Fred Rogers (1928–2003) with a Forever stamp on the 50th anniversary of Mister Rogers' Neighborhood in March, 2018. At the start of each episode, the late Fred Rogers would walk in singing the song "Won't You Be My Neighbor?" As he sang he would

  1. Take off his jacket
  2. Put on a sweater
  3. Take off his shoes
  4. Put on sneakers

At the end of each episode he would invert the process and

  1. Take off the sneakers
  2. Put on his shoes
  3. Take off the sweater
  4. Put on his jacket

Notice that the two lists contain the inverse actions in the reverse order. That is the key! If we can identify the order in which a function performs its operations, we should be able to construct its inverse by doing the inverse operations in the reverse order.

As an example, consider the function $f(x)=3x-2$. Following the standard order of operations, this function first multiplies each input by $3$ and then subtracts $2$.

The inverse function must do the inverse operations in the reverse order: add $2$ and then divide by $3$.

Now that we have identified the operations that the inverse should do, we construct the equation for $f^{-1}$ by applying each of those operations, in the order listed, to a variable. The steps are as follows:

1. Start with a variable $x$
2. Add $2$ [x+2]
3. Divide by $3$ [\frac{x+2}{3}]
4. Write as a function [f^{-1}(x)=\frac{x+2}{3}]

We should also check that $f$ and $f^{-1}$ have the round trip property we have seen earlier. To do this pick any random number, see where $f$ takes that number, and then check to see if $f^{-1}$ will bring it back. For instance, if $x=7$ then $f(\color{red}{7})=\color{blue}{19}$ and $f^{-1}(\color{blue}{19})=\color{red}{7}$

so the round trip property appears to hold. It would be good to test this with a few more random values just to make sure. In Chapter 4 we will discuss a way to formally verify that it works for any number.

QUICK CHECK

Find the inverse of the function $f(x)=\frac{x+1}{4}$.
Answer
The function adds $1$ and then divides by $4$, so the inverse must first multiply by $4$ and then subtract $1$. The equation would be $f^{-1}(x)=4x-1$.

Now let's use the shoes-and-socks method to find the inverse of $f(x) = 2x^3 + 4$. We begin by identifying the operations performed by the function, and then invert the list to find the operations of the inverse function.

Operations Performed by the Function Operations Performed by the Inverse
1. Cube 1. Subtract $4$
2. Multiply by $2$ 2. Divide by $2$
3. Add $4$ 3. Cube root

Now that we know what the inverse function does, we construct its equation as follows:

Start with a variable: $x$
Subtract $4$: [x-4]
Divide by $2$: [\frac{x-4}{2}]
Cube root: $$\sqrt[3]{\frac{x-4}{2}}$$
Write as a function: $$f^{-1}(x)=\sqrt[3]{\frac{x-4}{2}}$$

It's also a good idea to check the round trip property with at least one value, let's see what happens when $x=2$.

QUICK CHECK

Find the inverse of the function $f(x)=\sqrt[5]{6x+1}$.
Answer
[f^{-1}(x)=\frac{x^5-1}{6}]

Let's look at one last example of the shoes-socks method and find the inverse of $f(x) = (x+1)^2$. We'll list the operations performed by the function and then list what the inverse function should do, just as we have done earlier.

Operations Performed by the Function Operations Performed by the Inverse
1. Add $1$ 1. Square root
2. Square 2. Subtract $1$

Then we write the equation for $f^{-1}$.

Start with a variable: $x$
Apply square root: [\sqrt{x}]
Subtract $1$: [\sqrt{x}-1]
Write as a function: [f^{-1}(x)=\sqrt{x}-1]

But when we check the round trip property we see that some values, such as $x=-5$, don't work.

This is because we have made a critical oversight. A graph of $f(x) = (x+1)^2$ shows that it is not a one-to-one function, so it cannot have an inverse unless we restrict the domain. To do this we require the input of the square to be greater than or equal to zero. In this case, we need $x+1 \geq 0$, which is the same thing as saying $x \geq -1$. Only when we restrict domain of $f(x)=(x+1)^2$ to $x \geq -1$ will the two functions will be inverses. We will have to keep an eye out for this any time a function, or its potential inverse, includes an even power.

Interpreting Inverse Functions

Earlier in this section we found that the domain and range of $f$ become the range and domain, respectively, of the inverse function $f^{-1}$. Not only do the domain and range trade places, but their units of measure do as well. Keeping track of those units makes it much easier to understand the significance of an inverse function.

For instance, the amount of time $T$ that it takes you to drive to work in minutes is a function of how fast you drive in miles per hour. In theory, if you know your average speed $S$, then you can predict how long the trip will take.

The inverse function, if it exists, would turn speed into a function that depends on the time. With the inverse function, knowing the duration of the trip allows you to calculate the average speed. Symbolically, if $T=f(S)$, then $S=f^{-1}(T)$.

With this understanding, the distinction between $f(45)$ and $f^{-1}(45)$ is much more clear. In this example, $f(45)$ would be the time it takes to drive to work if the average speed is $45$ mph. On the other hand, $f^{-1}(45)$ would be the speed required so that the trip takes $45$ minutes.

QUICK CHECK

The temperature of a potato depends on how long it has been in the oven. In other words, the temperature in degrees Fahrenheit is a function of time in minutes.

  1. Explain the significance of the inverse function in this instance.

    Answer
    The inverse function turns time into a function of the temperature. Given a particular temperature, the inverse function would tell how long the potato has been in the oven.

  2. Describe the difference in meaning between $f(60)$ and $f^{-1}(60)$ in this example.

    Answer
    $f(60)$ is the temperature of the potato after 60 minutes in the oven, while $f^{-1}(60)$ is the time it takes for the potato to reach a temperature of 60 degrees Fahrenheit.

Looking Ahead

In this section we have seen how to identify when a function has an inverse and discussed techniques for finding and interpreting the inverse. We have also hinted at the fact that an equation only has a unique solution if the underlying function is one-to-one.

In the following chapters, every time we learn about a new function we will also check to see if it is one-to-one or not. If it is, then we will also look for its inverse. If not, then we will consider restricting its domain and focusing on a smaller piece of the function that does have an inverse.

Creative Commons LicenseThis work copyrighted by Nolan Mitchell under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Source files are available at https://github.com/duragauge/duragauge.github.io.

You can also download a PDF copy of the entire book here. The PDF was last updated on January 21, 2024, and may not reflect changes to the online content made after that date.