Skip to main content

Precalculus Review Materials

Section 4.3 Inverse functions

A pair of functions \(f\) and \(g\) with the property that \(f(x) = y\) if and only if \(g(y) = x\) are called inverses.
Informally, if \(f\) and \(g\) are inverses, then \(g\) “undoes” \(f\) by sending \(y\) back to \(x\text{.}\) Similarly, \(f\) “undoes” \(g\text{.}\) A more formal way to state this involves function composition: if \(f\) and \(g\) are inverses, then
\begin{equation*} \begin{aligned} (g \circ f)(x) &= g(f(x)) \\ &= g(y) \\ &= x \end{aligned} \end{equation*}
by definition, and similarly
\begin{equation*} \begin{aligned} (f \circ g)(y) = f(g(y)) \\ &= f(x) \\ &= y \\ \end{aligned} \end{equation*}
If \(f\) and \(g\) are inverses, then \(g\) is called the inverse function of \(f\text{,}\) and denoted by \(f^{-1}\text{.}\) We could also call \(f\) the inverse function of \(g\text{,}\) and denote it by \(g^{-1}\text{.}\)
If \(f\) and \(g\) are inverses, then the range of \(f\) must be the same as the domain of \(g\text{,}\) and the range of \(g\) must be the same as the domain of \(f\text{.}\) Furthermore, there can not be different real numbers \(x_1\) and \(x_2\) such that \(f(x_1) = f(x_2) = y\) for some real number \(y\) because we would need to have \(g(y)\) equal to both \(x_1\) and \(x_2\text{,}\) which is impossible because \(g\) is a function. Similarly, there can not be different real numbers \(y_1\) and \(y_2\) such that \(g(y_1) = g(y_2) = x\) for some real number \(x\text{.}\)
Not every function has an inverse. For example, \(f(x) = x^2\) does not have an inverse because \(f(2) = f(-2)\text{.}\)
Show that the functions \(f(x) = 3x-6\) and \(g(x) = \frac{x+ 6}{3}\) are inverses.
Solution.
We need to show that \(f(x) = y\) if and only if \(g(y) = x\text{.}\)
Suppose that \(f(x) = y\text{.}\) Then \(y = 3x-6\text{.}\) Thus
\begin{equation*} \begin{aligned} g(y) &= g(3x-6) \\ &= \frac{(3x-6)+6}{3} \\ &= x \end{aligned} \end{equation*}
as required.
Now suppose that \(g(y) = x\text{.}\) Then \(x = \frac{y+ 6}{3}\text{.}\) Thus
\begin{equation*} \begin{aligned} f(x) &= f(\frac{y+ 6}{3}) \\ &= 3\left(\frac{y+ 6}{3}\right) - 6 \\ &= y \end{aligned} \end{equation*}
as required.
Therefore \(f\) and \(g\) are inverses.
In Example 4.3.1, notice that the inverse of \(f\) is described by the expression obtained by solving the equation \(y = f(x)\) for \(x\text{.}\) If \(y = f(x)\) then \(y = 3x-6\text{.}\) That means \(y+6 = 3x\text{,}\) and so \(x = \frac{y+6}{3} = g(y)\text{.}\) This computation can be viewed as telling us what \(x\) needs to be in order for \(f(x) = y\) to be true. Similarly, the inverse of \(g\) is described by the expression obtained by solving the equation \(x = g(y)\) for \(y\text{.}\)
Let \(f(x) = \frac{2x}{4x-1}\text{.}\) Find the inverse of \(f\text{,}\) if it exists.
Solution.
The domain of \(f\) is the set of all real numbers except \(\frac{1}{4}\text{.}\) To find an expression for the inverse of \(f\text{,}\) if it exists, we need to solve the equation \(y = f(x)\) for \(x\text{.}\)
If \(y = f(x)\text{,}\) then \(y = \frac{2x}{4x-1}\) and \(x \neq \frac{1}{4}\text{.}\) Thus \(y(4x-1) = 2x\text{,}\) so \(4xy - y = 2x\text{.}\) This equation can be rearranged to obtain \(y = 4xy - 2x = x(4y-2)\text{,}\) so that \(x = \frac{y}{4y-2}\text{.}\)
Therefore, if \(f\) has an inverse, it is \(g(y) = \frac{y}{4y-2}\text{.}\) The domain of \(g\) is the set of all real numbers except \(\frac{1}{2}\text{.}\) We need to check that \(f(x) = y\) if and only if \(g(y) = x\text{.}\)
Suppose \(f(x) = y\text{.}\) Then \(y = \frac{2x}{4x-1}\) and \(x \neq \frac{1}{4}\text{,}\) so that
\begin{equation*} \begin{aligned} g(y) &= g\left(\frac{2x}{4x-1}\right) \\ &= \frac{\frac{2x}{4x-1}}{4\frac{2x}{4x-1} - 2} \\ &= \frac{\frac{2x}{4x-1}}{4\frac{2x}{4x-1} - 2\frac{4x-1}{4x-1}} \\ &= \frac{ \left(\frac{2x}{4x-1}\right) }{ \left(\frac{2}{4x-1}\right)} \\ &= x \end{aligned} \end{equation*}
Now suppose that \(g(y) = x\text{.}\) Then \(x = \frac{y}{4y-2}\) and \(y \neq \frac{1}{2}\text{,}\) so that
\begin{equation*} \begin{aligned} f(x) &= f\left(\frac{y}{4y-2}\right) \\ &= \frac{ 2\frac{y}{4y-2} } { 4 \frac{y}{4y-2} - 1 } \\ &= \frac{ \frac{2y}{4y-2} } { 4 \frac{y}{4y-2} - \frac{4y-2}{4y-2} } \\ &= \frac{ \frac{2y}{4y-2} } { 4 \frac{y}{4y-2} - \frac{4y-2}{4y-2} } \\ &= \frac{ \left( \frac{2y}{4y-2} \right) } {\left( \frac{2}{4y-2} \right)} \\ &= y \end{aligned} \end{equation*}
Therefore, \(f\) has an inverse, and is the function \(g\text{.}\) That is, \(f^{-1}(y) = \frac{y}{4y-2}\text{.}\)
Let \(f(x) = x^2 + 1\text{.}\) Find the inverse of \(f\text{,}\) if it exists.
Solution.
We could possibly observe right away that \(f(1) = f(-1) = 2\text{,}\) which means that \(f\) can not have an inverse. If we were lucky enough to see that, then there is nothing more to do. If we weren’t, then we could proceed as above and try to solve \(y = f(x)\) for \(x\text{.}\) Doing that leads to \(x = \pm \sqrt{y-1}\text{,}\) which tells us there may be two different values of \(x\) that give the same value of \(y\text{.}\) For example, if we choose \(y = 2\text{,}\) then the equation says we must have \(x = \pm 1\text{,}\) that is, that \(f(1) = f(-1) = 2\text{.}\)
The lesson from Example 4.3.3 is that, if it is not possible to see right away whether \(f\) has an inverse, then we can proceed by trying to find one on the assumption that it exists. Either that will be successful, or the calculation will reach a point where it becomes clear that there are two different values of \(x\) that give the same value of \(y\text{.}\) In the first case, \(f\) has an inverse described by the expression obtained. In the second case, \(f\) does not have an inverse.

Exercises Practice Problems

Find the inverse, when it exists.

1.

\(y=x^4\)
Answer.
An inverse does not exist.

2.

\(y=7x-3\)
Answer.
\(y=\frac{x+3}{7}\)

3.

\(y = \frac{2x}{4x-1}, x \neq \frac{1}{4}\)
Answer.
\(y=\frac{x}{4x-2}, x \neq \frac{1}{2}\)

4.

\(y=\sqrt{x-5}\)
Answer.
\(y=x^2+5, x \geq 0\)

5.

\(y=\sqrt[3]{2-x}\)
Answer.
\(y=2-x^3\)