Skip to main content

Section 7.4 Inverse Functions

In 1897, Amos Dolbear published the article β€œThe Cricket as a Thermometer.” This paper included the formulation of what is now known as Dolbear’s Law: a formula that states the relationship between the air temperature and the number of times that a cricket chirps in a given span of time. This law states that the air temperature \(T\) in degrees Fahrenheit is a function of the number of times \(N\) that a cricket chirps in 15 seconds; that is
\begin{equation*} T = f(N) = N + 40. \end{equation*}
So, if a cricket chirps 20 times in 15 seconds, then the temperature must be given by
\begin{equation*} f(20) = 20 + 40 = 60^\circ \text{F}. \end{equation*}
What if it was known that the temperature was \(70^\circ \text{F}\text{?}\) How would we determine how many times a cricket would be expected to chirp in a 15-second time interval at this temperature? We could set \(f(N) = 70\) and solve for \(N\text{:}\)
\begin{align*} N + 40 \amp= 70\\ N + 40 \textcolor{blue}{-40} \amp= 70 \textcolor{blue}{-40}\\ N \amp= 30. \end{align*}
Thus at a temperature of \(70^\circ \text{F}\text{,}\) a cricket would be expected to chirp 30 times in a 15-second time interval.
In fact, if we wanted to know how many times a cricket would be expected to chirp in a 15-second time interval at any specific temperature \(T\text{,}\) we could set \(f(N) = T\) and solve for \(N\text{:}\)
\begin{align*} N + 40 \amp= T\\ N + 40 \textcolor{blue}{-40} \amp= T \textcolor{blue}{-40}\\ N \amp= T - 40. \end{align*}
Now we have the number of times a cricket will chirp in a 15-second time interval written as a function of the air temperature:
\begin{equation*} N = g(T) = T - 40. \end{equation*}
We have in fact found the inverse function of \(f(N)\text{.}\)
A function takes an input, does something to it, and produces a single output number. Given a specific output from a function, we may wonder what input resulted in this output. Informally, an inverse function can be thought of as a function’s β€œundo button” (provided it exists). It takes the output the original function gave, does something to it, and the result is the input that we put in the original function to begin with.

Definition 7.4.1. The Inverse of a Function.

An inverse function of a function \(f(x)\) is a function \(g(x)\) that satisfies both of the following conditions:
  • \(g(f(x)) = x\) for all \(x\) in the domain of \(f(x)\)
  • \(f(g(x)) = x\) for all \(x\) in the domain of \(g(x)\)
Each of the above bullet points describes the following behavior of an inverse: \(f(x)\) takes the input \(x\text{,}\) does something to it, and produces an output. If we then put this output through the inverse function \(g(x)\text{,}\) it β€œundoes” the work done by the original function and takes us back to the initial input \(x\text{.}\)

Example 7.4.2.

Show that \(f(N) = N + 40\) and \(g(T) = T - 40\) are inverse functions.
Solution.
To show that \(f(N)\) and \(g(T)\) are inverse functions, we must verify that when the functions are composed in either order, the result is the input variable of the interior function in the composition. It can be seen that
\begin{align*} f(g(T)) \amp = f(T - 40)\\ \amp = (T - 40) + 40\\ \amp = T \end{align*}
while
\begin{align*} g(f(N)) \amp = g(N + 40)\\ \amp = (N + 40) - 40\\ \amp = N \end{align*}
so \(f(N)\) and \(g(T)\) are indeed inverses.

Subsection Finding Inverse Functions Algebraically

If the ordered pair \((x, y)\) is on the graph of the function \(f\text{,}\) then the ordered pair \((y, x)\) is on the graph of its inverse. This gives us an idea of how to find an inverse function algebraically.

Example 7.4.4.

If possible, find the inverse of each function. If not possible, state this to be the case.
  1. \(\displaystyle f(x) = 5x - 7\)
  2. \(\displaystyle g(t) = 4\sqrt[3]{t - 5} + 2\)
  3. \(\displaystyle h(x) = \dfrac{x + 1}{x - 2}\)
  4. \(\displaystyle w(z) = z^2\)
Solution.
  1. To find the inverse, we write \(y = f(x)\text{,}\) reverse the roles of \(x\) and \(y\text{,}\) and then solve for \(y\text{:}\)
    \begin{align*} y \amp = 5x - 7 \amp\amp \textcolor{red}{\text{ replace $f(x)$ with $y$}}\\ x \amp = 5y - 7 \amp\amp \textcolor{red}{\text{ reverse roles of $x$ and $y$}}\\ x \textcolor{blue}{ + 7} \amp = 5y - 7 \textcolor{blue}{ + 7}\\ x + 7 \amp = 5y\\ \dfrac{x + 7}{5} \amp = \dfrac{\cancel{5}y}{\cancel{5}}\\ \dfrac{x + 7}{5} \amp = y \amp\amp \textcolor{red}{\text{ solve for $y$}} \end{align*}
    The equation \(y = \dfrac{x + 7}{5}\) is a linear function, so \(f(x)\) has an inverse function, and it is given by \(f^{-1}(x) = \dfrac{x + 7}{5}\text{.}\)
  2. \begin{align*} y \amp = 4\sqrt[3]{t - 5} + 2 \amp\amp \textcolor{red}{\text{ replace $g(t)$ with $y$}}\\ t \amp = 4\sqrt[3]{y - 5} + 2 \amp\amp \textcolor{red}{\text{ reverse roles of $t$ and $y$}}\\ t \textcolor{blue}{ - 2} \amp = 4\sqrt[3]{y - 5} + 2 \textcolor{blue}{ - 2}\\ t - 2 \amp = 4\sqrt[3]{y - 5}\\ \dfrac{t - 2}{4} \amp = \dfrac{\cancel{4}\sqrt[3]{y - 5}}{\cancel{4}}\\ \dfrac{t - 2}{4} \amp = \sqrt[3]{y - 5}\\ \left(\dfrac{t - 2}{4}\right)^3 \amp = \left(\sqrt[3]{y - 5}\right)^3\\ \left(\dfrac{t - 2}{4}\right)^3 \amp = y - 5\\ \left(\dfrac{t - 2}{4}\right)^3 \textcolor{blue}{ + 5} \amp = y - 5 \textcolor{blue}{ + 5}\\ \left(\dfrac{t - 2}{4}\right)^3 + 5 \amp = y \amp\amp \textcolor{red}{\text{solve for $y$}} \end{align*}
    The equation \(y = \left(\dfrac{t - 2}{4}\right)^3 + 5\) is a transformation of the cubic function \(y = t^3\) and so is itself a function. Hence, \(g(t)\) has an inverse function and it is given by \(g^{-1}(t) = \left(\dfrac{t - 2}{4}\right)^3 + 5\text{.}\)
  3. \begin{align*} y \amp = \dfrac{x + 1}{x - 2} \amp\amp \textcolor{red}{\text{ replace $h(x)$ with $y$}}\\ x \amp = \dfrac{y + 1}{y - 2} \amp\amp \textcolor{red}{\text{ reverse roles of $x$ and $y$}}\\ x(y - 2) \amp = \dfrac{y + 1}{\cancel{y - 2}}(\cancel{y - 2})\\ xy - 2x \amp = y + 1\\ xy - 2x \textcolor{blue}{ + 2x} \amp = y + 1 \textcolor{blue}{ + 2x}\\ xy \amp = y + 1 + 2x\\ xy \textcolor{blue}{ - y} \amp = y \textcolor{blue}{ - y} + 1 + 2x\\ xy - y \amp = 1 + 2x\\ y(x - 1) \amp = 1 + 2x\\ \dfrac{y(\cancel{x - 1})}{\cancel{x - 1}} \amp = \dfrac{1 + 2x}{x - 1}\\ y \amp = \dfrac{1 + 2x}{x - 1} \amp\amp \textcolor{red}{\text{ solve for $y$}} \end{align*}
    Using a graphing calculator, it can be seen that \(y = \dfrac{1 + 2x}{x - 1}\) passes the vertical line test and is therefore a function. The inverse of \(h(x)\) is \(h^{-1}(x) = \dfrac{1 + 2x}{x - 1}\text{.}\)
  4. \begin{align*} y \amp = z^2 \amp\amp \textcolor{red}{\text{ replace $w(z)$ with $y$}}\\ z \amp = y^2 \amp\amp \textcolor{red}{\text{ reverse roles of $z$ and $y$}}\\ \pm \sqrt{z} \amp = \sqrt{y^2}\\ \pm \sqrt{z} \amp = y \amp\amp \textcolor{red}{\text{ solve for $y$}} \end{align*}
    The formula \(y = \pm \sqrt{z}\) is not a function. Why? There are values of \(z\) which result in two different outputs for \(y\text{;}\) for instance, \(z = 1\) results in \(y = \pm \sqrt{1} = \pm {1}\text{.}\) For the single input \(z = 1\text{,}\) there are two outputs, \(y = - 1\) and \(y = 1\text{.}\) For this reason, \(w(z)\) does not have an inverse function.

Exercises Exercises

Identifying Inverse Functions.

For each of the following, find \(f(g(x))\) and \(g(f(x))\) for the pair of functions \(f(x)\) and \(g(x)\) given. Use your results to determine whether \(f(x)\) and \(g(x)\) are inverses of each other.

Computing an Inverse Function.

For each of the following, find the inverse of each function, if possible. If not possible, state this to be the case.

20.

The function \(f(x)=\frac{9}{5}x+32\) is used to convert an input \(x\) in degrees Celsius to an output \(f(x)\) in degrees Fahrenheit. Find the inverse function, which is the formula used to convert an input in degrees Fahrenheit to an output in degrees Celsius.
Solution.
\(f^{-1}(x)=\frac{5}{9}x-\frac{160}{9}\)
You have attempted of activities on this page.