Unit 3 · Topic 3.3

Differentiate an inverse function

Builds on the derivative as a limit, the chain rule and inverse functions. 12 minutes.

  1. Example 1Find the matching inverse input
  2. Example 2Calculate an inverse derivative
  3. Example 3Use inverse information from data
  4. Example 4Check when the inverse rule applies

A function \(f\) is one-to-one if no two inputs have the same output. Then each output \(b\) of \(f\) comes from only one input \(a\), and the inverse function \(f^{-1}\) reverses \(f\) by taking \(b\) back to \(a\):

\[f^{-1}(b)=a\ \ \text{exactly when}\ \ f(a)=b\]

The \(-1\) is part of the name, not an exponent, so \(f^{-1}(b)\) does not mean \(1/f(b)\). This topic finds the derivative of \(f^{-1}\) from the derivative of \(f\), even when no formula for \(f^{-1}\) is known.

Mirror points have reciprocal slopes

A rising curve f that is flat at one point, and its mirror image across the faint diagonal line y = x, which is the graph of f inverse. An orange point (a, b) on f has an orange tangent line with a small triangle under it: a dashed run h and an orange rise f prime of a times h. Its mirror point (b, a) has the mirror tangent line with a triangle under it: a dashed run f prime of a times h and an orange rise h. At the flat point, the tangent at (a, b) is horizontal, and the tangent at (b, a) is vertical and red, with the words no slope.

Figure 1The graph of \(f^{-1}\) is the mirror image of the graph of \(f\) across the faint diagonal line \(y=x\). Each orange tangent line has a small triangle with a dashed run and an orange rise, and a vertical tangent line is drawn red.

In Figure 1, the orange point \(P=(a,b)\) lies on the graph of \(f\), so \(f(a)=b\). Because \(f^{-1}(b)=a\), the orange point \(Q=(b,a)\), with the same coordinates in the other order, lies on the graph of \(f^{-1}\). Swapping the coordinates of every point reflects the plane across the faint diagonal line \(y=x\). The graph of \(f^{-1}\) is therefore the mirror image of the graph of \(f\). The button that replays the reflection turns a copy of the graph of \(f\) over the diagonal onto the graph of \(f^{-1}\). The input \(a\) is the matching input of \(b\), the input that \(f\) sends to \(b\).

The orange tangent line at \(P\) has slope \(f'(a)\). Under it, a small triangle has a dashed run \(h\) and an orange rise \(f'(a)\,h\). The orange line at \(Q\) is the mirror image of this tangent line, and the reflection swaps horizontal and vertical lengths. The triangle under the line at \(Q\) therefore has the run \(f'(a)\,h\) and the rise \(h\). The line has the slope \(h/\big(f'(a)\,h\big)\), which is the reciprocal of \(f'(a)\) when \(f'(a)\ne0\).

This line appears to be the tangent line of \(f^{-1}\) at \(Q\). To prove it, take a small change \(k\ne0\) in the input of \(f^{-1}\). Let \(h\) be the change in its output, which is a change in the input of \(f\). The graph of \(f^{-1}\) then passes through \(Q\) and \((b+k,\,a+h)\), and the graph of \(f\) passes through their mirror images, \(P\) and \((a+h,\,b+k)\). The change \(h\) is not 0, because \(f\) sends \(a+h\) to \(b+k\), which differs from \(b\). The secant line of \(f^{-1}\) through the first two points has the slope \(h/k\), the reciprocal of the slope of the secant line of \(f\):

\[\begin{aligned}&\frac{f^{-1}(b+k)-f^{-1}(b)}{k}\\&=\frac{h}{k}=\frac{1}{\big(f(a+h)-f(a)\big)/h}\end{aligned}\]

If \(f\) is continuous on an interval around \(a\), its graph has no break there. Its mirror image, the graph of \(f^{-1}\), then has no break around \(b\), so \(f^{-1}\) is continuous at \(b\). As \(k\) approaches 0, \(h\) therefore approaches 0. Because \(h\) is never 0 and \(f\) is differentiable at \(a\), the difference quotient of \(f\) on the second line approaches \(f'(a)\). If \(f'(a)\ne0\), the quotient law for limits shows that the right side approaches \(1/f'(a)\), so the left side does too. The left side is the difference quotient of \(f^{-1}\), so its limit is the derivative: \(\big(f^{-1}\big)'(b)=1/f'(a)\).

This result is the inverse function rule, the inverse rule for short. Some books call it the derivative rule for inverses. The slope of \(f^{-1}\) at \(b\) is the reciprocal of the slope of \(f\) at the matching input \(a\), not at \(b\). Move \(P\) with the slider under Figure 1. At every position, the two triangles swap their run and rise.

If you know that \(f^{-1}\) is differentiable, the chain rule gives the same formula. Because \(f\) undoes \(f^{-1}\), \(f\big(f^{-1}(y)\big)=y\) for every \(y\) in the domain of \(f^{-1}\). Differentiate both sides with respect to \(y\):

\[f'\big(f^{-1}(y)\big)\cdot\big(f^{-1}\big)'(y)=1\]

At \(y=b\), the first factor is \(f'(a)\), and division by it gives the rule again. In Leibniz notation, with \(y=f(x)\), the slope of \(f\) is \(dy/dx\), and the slope of \(f^{-1}\), which takes \(y\) back to \(x\), is \(dx/dy\). The rule says that \(dx/dy=1/(dy/dx)\), with \(dx/dy\) taken at \(Q\) and \(dy/dx\) at \(P\).

The rule needs \(f'(a)\ne0\). Use the button under Figure 1 to move \(P\) to the flat point, where the tangent line is horizontal. Its mirror image at \(Q\) is vertical and turns red, because a vertical line has no slope. The chain-rule equation shows that \(f^{-1}\) has no derivative at \(b\): if it had one, the left side would be \(0\cdot\big(f^{-1}\big)'(b)=0\), not 1. For example, \(x^3\) has the inverse \(\sqrt[3]{x}\), whose graph has a vertical tangent line at the origin.

Finding the matching input

To find the matching input, solve \(f(a)=b\). If algebra does not give \(a\), try small integers. When \(f\) is one-to-one, the first input that gives \(b\) is the only one. In a table of \(f\) and \(f'\), find \(b\) among the values of \(f\). Its row gives \(a\) and \(f'(a)\), while the row of the input \(b\) describes the point \(\big(b,f(b)\big)\). On a graph of \(f\), read the input where the height is \(b\). In a context, \(f'(a)\) is in output units per input unit, so the slope of \(f^{-1}\) is in input units per output unit.

If a horizontal line meets the graph of \(f\) twice, as the dashed line in Figure 2 does, two inputs have the same output. Then \(f\) has no inverse on its whole domain. A branch of \(f\), the part of \(f\) on an interval where it only rises or only falls, is one-to-one and has an inverse. For a parabola, the branches are the two sides of its lowest or highest point. The rule uses only the values of \(f\) near \(a\), so it applies to the inverse of any branch with \(a\) inside its interval.

The graph of the inverse of a branch is the mirror image of that branch alone. In Figure 2, both are bold and the rest is faint. The matching input is the input of the orange dot on the bold branch. Change the branch with the buttons under Figure 2. On the branch where \(f\) falls, both tangent lines slope down, so the derivative of the inverse is negative. At the lowest point, where the two branches meet, the tangent line is horizontal and \(f'=0\), so neither inverse has a derivative at that height.

A U-shaped curve f with its lowest point in the middle, above the faint diagonal line y = x. A dashed orange line at height b meets the curve at two orange points. One side of the U is bold, and its mirror image across the diagonal, also bold, is the graph of the inverse of that side. The orange point on the bold side has an orange tangent line, and its mirror point has the mirror tangent line. On the right side both tangent lines slope up; on the left side both slope down.

Figure 2The dashed orange line at height \(b\) meets the graph of \(f\) at two orange dots. The bold branch and its bold mirror image across the faint diagonal, the graph of its inverse, have orange tangent lines.

Example 1

Find the matching inverse input

Water flows into a tank so that the depth of the water is \(D(t)=t^3+2t\) centimeters at time \(t\) minutes, for \(t\ge0\). Find \(D^{-1}(12)\), and explain what it means.

Solution

Both \(t^3\) and \(2t\) increase as \(t\) increases, so \(D\) increases. It is therefore one-to-one, and \(D^{-1}\) exists. The inverse takes a depth back to a time, so \(D^{-1}(12)\) is the matching input \(a\), the time at which the depth is 12 centimeters:

\[a^3+2a=12\]

Try small whole numbers. The time 1 gives a depth of 3 centimeters, and the time 2 gives \(8+4=12\). Because \(D\) increases, no other time gives the depth 12, so

\[D^{-1}(12)=2\]

The water is 12 centimeters deep 2 minutes after it starts to flow. The point \((2,12)\) on the graph of \(D\) is the mirror image of the point \((12,2)\) on the graph of \(D^{-1}\).

Example 2

Calculate an inverse derivative

Let \(f(x)=x^3+x+\ln x\) for \(x>0\). Find \(\big(f^{-1}\big)'(2)\).

Solution

On the interval \(x>0\), each of \(x^3\), \(x\) and \(\ln x\) increases, so \(f\) increases and is one-to-one. It is differentiable, and so continuous, on that interval, with

\[f'(x)=3x^2+1+\frac{1}{x}\]

The matching input solves \(a^3+a+\ln a=2\). Because \(\ln 1=0\), the input 1 gives \(1+1+0=2\), and \(f\) is one-to-one, so \(a=1\). The slope \(f'(1)=5\) is not 0, so the inverse rule gives

\[\big(f^{-1}\big)'(2)=\frac{1}{f'(1)}=\frac15\]

Example 3

Use inverse information from data

The table gives values of a differentiable, increasing function \(f\) and its derivative. Find \(f^{-1}(6)\) and \(\big(f^{-1}\big)'(6)\). \[\begin{array}{c|cc} x & f(x) & f'(x)\\ \hline 1 & -3 & 3\\ 2 & 0 & 5\\ 4 & 6 & \tfrac32\\ 6 & 8 & \tfrac52 \end{array}\]

Solution

Because \(f\) is increasing, it is one-to-one, and \(f^{-1}\) exists. Search the column of \(f(x)\) for 6. It is in the row \(x=4\), so \(f(4)=6\), and the matching input is 4:

\[f^{-1}(6)=4\]

The same row gives \(f'(4)=\frac32\), which is not 0. A differentiable function is continuous, so the inverse rule applies:

\[\big(f^{-1}\big)'(6)=\frac{1}{f'(4)}=\frac23\]

Example 4

Check when the inverse rule applies

The function \(f(x)=x^2-4x+11\) is defined for \(x\le2\). Let \(g\) be the inverse function of \(f\). Find \(g'(16)\).

Solution

The function \(f\) is a polynomial, so it is continuous and differentiable. Completing the square gives \(f(x)=(x-2)^2+7\), so its graph is part of a parabola with its lowest point at \((2,7)\). The domain \(x\le2\) gives the branch to the left of that point, where \(f\) falls, so \(f\) is one-to-one and \(g\) exists. The matching input solves \((a-2)^2+7=16\):

\[\begin{aligned}(a-2)^2&=9\\a-2&=\pm3\\a&=-1\ \text{or}\ a=5\end{aligned}\]

Only \(-1\) lies in the domain \(x\le2\), so \(a=-1\). It lies inside the branch, away from the lowest point, so \(f\) is one-to-one on an interval around it. The derivative \(f'(x)=2x-4\) gives \(f'(-1)=-6\), which is not 0, so

\[g'(16)=\frac{1}{f'(-1)}=-\frac16\]

Each example is one of the four skills of topic 3.3 in Which & Why: AP Calculus.