2.1 Inverse Functions

The derivatives calculated in the previous chapter were mostly for polynomials and a few trigonometric functions. This chapter will show how to find the derivatives of other types of functions, beginning in this section with inverse functions. The idea here is that if a function is differentiable and has an inverse then that inverse function is also differentiable.

tikzpicture[every node/.style=font=] [line width=1pt] (0,0) ellipse (0.8 and 0.5); (0,0) circle (2pt); [below] at (0,0) x; [above] at (0,0.6) Domain; [line width=1pt] (3,0) ellipse (0.8 and 0.5); (3,0) circle (2pt); [below] at (3,0) y; [above] at (3,0.53) Range; [-latex,line width=1.5pt] (1,0) -- (2,0) node[midway,above] f node[midway,below] y=f(x); tikzpicture

Figure 2.1.1

Recall that a function is a rule that assigns a single object \(y\) from one set (the range) to each object \(x\) from another set (the domain). That rule can be written as \(y = f(x)\), where \(f\) is the function (see Figure 2.1.1). There is a simple vertical rule for determining whether a rule \(y=f(x)\) is a function: \(f\) is a function if and only if every vertical line intersects the graph of \(y=f(x)\) in the \(xy\)-coordinate plane at most once (see Figure 2.1.2).

tikzpicture[>=latex,every node/.style=font=] [<->,black!60,line width=1pt] (0,2) node[above] y |- (4,0) node[right] x; [linecolor,line width=1.5pt] (0.5,0.5) parabola[bend at end] (3.5,1.5); [above] at (3.5,1.5) y=f(x); [line width=1pt] (1.5,0.5) -- (1.5,2); tikzpicture

(a)  \(f\) is a function

tikzpicture[>=latex,every node/.style=font=] [<->,black!60,line width=1pt] (0,2) node[above] y |- (4,0) node[right] x; [linecolor,line width=1.5pt] (0.5,1.5) parabola bend (3.5,1) (2.5,0.5); [above] at (1.5,1.5) y=f(x); [line width=1pt] (2.8,0.2) -- (2.8,2); tikzpicture

(b)  \(f\) is not a function
Figure 2.1.2Vertical rule for functions

Recall that a function \(f\) is one-to-one (often written as \(1-1\)) if it assigns distinct values of \(y\) to distinct values of \(x\). In other words, if \(x_1 \ne x_2\) then \(f(x_1 ) \ne f(x_2 )\). Equivalently, \(f\) is one-to-one if \(f(x_1 ) = f(x_2 )\) implies \(x_1 = x_2\). There is a simple horizontal rule for determining whether a function \(y=f(x)\) is one-to-one: \(f\) is one-to-one if and only if every horizontal line intersects the graph of \(y=f(x)\) in the \(xy\)-coordinate plane at most once (see Figure 2.1.3).

tikzpicture[every node/.style=font=] [latex-latex,black!60,line width=1pt] (0,2) node[above] y |- (4,0) node[right] x; [linecolor,line width=1.5pt] (0.5,0.5) parabola[bend at end] (3.5,1.5); [above] at (3.5,1.5) y=f(x); [line width=1pt] (0.5,1) -- (2.5,1); tikzpicture

(a)  \(f\) is one-to-one

tikzpicture[every node/.style=font=] [latex-latex,black!60,line width=1pt] (0,2) node[above] y |- (4,0) node[right] x; [linecolor,line width=1.5pt] (0.5,0.5) parabola bend (2,1.5) (3.5,0.5); [above] at (2,1.5) y=f(x); [line width=1pt] (0.5,1) -- (3.5,1); tikzpicture

(b)  \(f\) is not one-to-one
Figure 2.1.3Horizontal rule for one-to-one functions

If a function \(f\) is one-to-one on its domain, then \(f\) has an inverse function, denoted by \(f^{-1}\), such that \(y=f(x)\) if and only if \(f^{-1}(y) = x\). The domain of \(f^{-1}\) is the range of \(f\).

The basic idea is that \(f^{-1}\) “undoes” what \(f\) does, and vice versa. In other words,

\begin{alignat*}{3} f^{-1}(f(x)) ~&=~ x \quad&&\text{for all $x$ in the domain of $f$, and}\\ f(f^{-1}(y)) ~&=~ y \quad&&\text{for all $y$ in the range of $f$.} \end{alignat*}

Intuitively it is clear that a function is one-to-one (and hence invertible) when it is either strictly increasing or strictly decreasing; if the function, say, increases and then decreases (as in Figure 2.1.3(b)) then the horizontal rule would be violated around that “turning point.” For differentiable functions a positive derivative means the function is increasing, while a negative derivative means the function is decreasing (this will be proved in Chapter 3).

However, a function can still be one-to-one even if its derivative is zero only at isolated points (i.e. not identically zero over an entire interval of points) and either positive everywhere else or negative everywhere else. For example, the function \(f(x) = x^3\) has derivative \(f'(x) = 3x^2\), which is zero only at the isolated point \(x = 0\) and positive for all other values of \(x\). Clearly \(f\) is one-to-one over the set of all real numbers (why?) and hence it has an inverse function \(x = f^{-1}(y) = \sqrt[3]{y}\) defined for all real numbers \(y\) (i.e. the range of \(f\)).

Thus, having a derivative that is either always positive or always negative is sufficient for a function to be one-to-one but not necessary. Having a nonzero derivative is necessary, though, for the inverse function to be differentiable.

In algebra you learned that \(\frac{a}{b} = \frac{1}{\frac{b}{a}}\) for all real numbers \(a \ne 0\) and \(b \ne 0\) (and hence \(\frac{b}{a} \ne 0\)). The same holds true for the infinitesimals \(\dy\) and \(\dx\) (nonzero by definition) since they can be treated like numbers, which immediately yields a formula for the derivative of an inverse function:

Theorem 2.1

Derivative of an Inverse Function: If \(y = f(x)\) is differentiable and has an inverse function \(x = f^{-1}(y)\), then \(f^{-1}\) is differentiable and its derivative is

\[ \dxdy ~=~ \frac{1}{\dydx} \qquad\text{if $~\dydx \ne 0$.} \]

The inverse of a function would still exist at a point where \(\dydx = 0\) but it would not be differentiable there, since its derivative would be the undefined quantity \(\frac{1}{0}\).

Since \(y\) is a function of \(x\), \(\dydx\) will be in terms of \(x\) and hence \(\frac{1}{\dydx}\) will be in terms of \(x\). However, since (by invertibility) \(x\) is a function of \(y\), \(\dxdy\) would normally be in terms of \(y\), not \(x\), so that the two sides of the equation \(\dxdy = \frac{1}{\dydx}\) are not in the same terms! One way to handle this discrepancy is to use the formula \(y = f(x)\) to solve for \(x\) in terms of \(y\) then substitute that expression into \(\dydx\), so that \(\dxdy = \frac{1}{\dydx}\) is now in terms of \(y\). That might not always be possible, however (e.g. try solving for \(x\) in the formula \(y = x \sin x\)).

Example 2.1

Find the inverse \(f^{-1}\) of the function \(f(x) = x^3\) then find the derivative of \(f^{-1}\).

Solution: The function \(y = f(x) = x^3\) is one-to-one over the set of all real numbers (why?) so it has an inverse function \(x = f^{-1}(y)\) defined for all real numbers, namely \(x = f^{-1}(y) = \sqrt[3]{y}\).

The derivative of \(f^{-1}\) is

\begin{align*} \dxdy ~&=~ \frac{1}{\dydx} ~=~ \frac{1}{3x^2} \quad\text{, which is in terms of $x$, so putting it in terms of $y$ yields}\\[6pt] &=~ \frac{1}{3 \left(\sqrt[3]{y}\right)^2} ~=~ \frac{1}{3 y^{2/3}} \end{align*}

which agrees with the derivative obtained by differentiating \(x = \sqrt[3]{y}\) directly. Note that this derivative is defined for all \(y\) except \(y = 0\), which occurs when \(x = \sqrt[3]{0} = 0\), i.e. at the point \((x,y) = (0,0)\).


Functions are often expressed in terms of \(x\), so it is common to see an inverse function also expressed in terms of \(x\): writing the inverse of \(f(x) = x^3\) as \(f^{-1}(x) = \sqrt[3]{x}\) (not as \(f^{-1}(y) = \sqrt[3]{y}\))), as confusing as that might be. In that case, the idea is to switch the roles of \(x\) and \(y\) in the original function \(y = f(x)\), making it \(x = f(y)\), and then write \(y = f^{-1}(x)\) and use

\[ \dydx ~=~ \frac{1}{\dxdy} \]

to put the derivative of \(f^{-1}\) in terms of \(x\), following the same procedure mentioned earlier.

Example 2.2

Find the inverse \(f^{-1}\) of the function \(f(x) = x^3\) then find the derivative of \(f^{-1}\).

Solution: Rewrite \(y = f(x) = x^3\) as \(x = f(y) = y^3\), so that its inverse function \(y = f^{-1}(x)= \sqrt[3]{x} \) has derivative

\begin{align*} \dydx ~&=~ \frac{1}{\dxdy} ~=~ \frac{1}{3y^2} \quad\text{, which is in terms of $y$, so putting it in terms of $x$ yields}\\[6pt] &=~ \frac{1}{3 \left(\sqrt[3]{x}\right)^2} ~=~ \frac{1}{3 x^{2/3}} \end{align*}

which agrees with the derivative obtained by differentiating \(y = \sqrt[3]{x}\) directly.


To obtain a formula in prime notation for the derivative of an inverse function, notice that for all \(x\) in the domain of an invertible differentiable function \(f\),

\[ f^{-1}(f(x)) ~=~ x \quad\Rightarrow\quad \ddx\,\left(f^{-1}(f(x))\right) ~=~ \ddx\,(x) \quad\Rightarrow\quad \left(f^{-1}\right)'(f(x)) \;\cdot\; f'(x) ~=~ 1 \]

by the Chain Rule, and hence:

Theorem 2.2

\begin{align*} \left(f^{-1}\right)'(f(x)) ~&=~ \frac{1}{f'(x)} \qquad\text{if $~f'(x) \ne 0$} \text{Two equivalent ways to write this are:} \left(f^{-1}\right)'(c) ~&=~ \frac{1}{f'(a)} \qquad\text{where $c = f(a)$ and $~f'(a) \ne 0$} \text{and} \left(f^{-1}\right)'(x) ~&=~ \frac{1}{f'(f^{-1}(x))} \qquad\text{if $~f'(f^{-1}(x)) \ne 0$} \end{align*}

Exercises

A

For Exercises 1-8, show that the given function \(y = f(x)\) is one-to-one over the given interval, then find the formulas for the inverse function \(f^{-1}\) and its derivative. Use Example 2.2 as a guide, including putting \(f^{-1}\) and its derivative in terms of \(x\).

2

  1. \(f(x) = x\), for all \(x\)

  2. \(f(x) = 3x\), for all \(x\)

    2

  3. \(f(x) = x^2\), for all \(x \ge 0\)

  4. \(f(x) = \sqrt{x}\), for all \(x \ge 0\)

    2

  5. \(f(x) = \frac{1}{x}\), for all \(x > 0\)

  6. \(f(x) = \frac{1}{x}\), for all \(x < 0\)

    2

  7. \(f(x) = \frac{1}{x^2}\), for all \(x > 0\)

  8. \(f(x) = x^5\), for all \(x\vphantom{\frac{1}{x^2}}\)

  9. The unit circle \(x^2 + y^2 = 1\) does not define \(y\) as a single function of \(x\), since \(y = \pm \sqrt{1 - x^2}\) defines two separate functions. But the part of the unit circle in the first quadrant, i.e. for \(0 \le x \le 1\) and \(0 \le y \le 1\), does define \(y = f(x) = \sqrt{1 - x^2}\) as a single function of \(x\) that is one-to-one on the interval \(\ival{0}{1}\). Find the formulas for its inverse function \(f^{-1}\) and its derivative.

B

  1. Show that if \(f\) is differentiable and invertible, and if \(f^{-1}\) is twice-differentiable, then

    \[\left(f^{-1}\right)''(x) ~=~ -\frac{f''(f^{-1}(x))}{\left(f'(f^{-1}(x))\right)^3} ~.\]