Active Calculus · 2: Computing Derivatives

2.6: Derivatives of Inverse Functions

Motivating Questions
  • What is the derivative of the natural logarithm function?
  • What are the derivatives of the inverse trigonometric functions arcsin⁡(x)\arcsin(x) and arctan⁡(x)?\arctan(x)\text{?}
  • If gg is the inverse of a differentiable function f,f\text{,} how is g′g' computed in terms of f,f\text{,} f′,f'\text{,} and g?g\text{?}

Much of mathematics centers on the notion of function. Indeed, throughout our study of calculus, we are investigating the behavior of functions, with particular emphasis on how fast the output of the function changes in response to changes in the input. Because each function represents a process, a natural question to ask is whether or not the particular process can be reversed. That is, if we know the output that results from the function, can we determine the input that led to it? And if we know how fast a particular process is changing, can we determine how fast the inverse process is changing?

One of the most important functions in all of mathematics is the natural exponential function f(x)=ex.f(x) = e^x\text{.} Its inverse, the natural logarithm, g(x)=ln⁡(x),g(x) = \ln(x)\text{,} is similarly important. One of our goals in this section is to learn how to differentiate the logarithm function. First, we review some of the basic concepts surrounding functions and their inverses.

Preview Activity 2.6.12.6.1

The equation y=59(x−32)y = \frac{5}{9}(x-32) relates a temperature given in xx degrees Fahrenheit to the corresponding temperature yy measured in degrees Celsius.

  1. Solve the equation y=59(x−32)y = \frac{5}{9}(x-32) for xx to write xx (Fahrenheit temperature) in terms of yy (Celsius temperature).
  2. Let C(x)=59(x−32)C(x) = \frac{5}{9}(x-32) be the function that takes a Fahrenheit temperature as input and produces the Celsius temperature as output. In addition, let F(y)F(y) be the function that converts a temperature given in yy degrees Celsius to the temperature F(y)F(y) measured in degrees Fahrenheit. Use your work in (a) to write a formula for F(y).F(y)\text{.}
  3. Next consider the new function defined by p(x)=F(C(x)).p(x) = F(C(x))\text{.} Use the formulas for FF and CC to determine an expression for p(x)p(x) and simplify this expression as much as possible. What do you observe?
  4. Now, let r(y)=C(F(y)).r(y) = C(F(y))\text{.} Use the formulas for FF and CC to determine an expression for r(y)r(y) and simplify this expression as much as possible. What do you observe?
  5. What is the value of C′(x)?C'(x)\text{?} of F′(y)?F'(y)\text{?} How do these values appear to be related?

Basic facts about inverse functions

A function f:A→Bf : A \to B is a rule that associates each element in the set AA to one and only one element in the set B.B\text{.} We call AA the domain of ff and BB the codomain of f.f\text{.} If there exists a function g:B→Ag : B \to A such that g(f(a))=ag(f(a)) = a for every possible choice of aa in the set AA and f(g(b))=bf(g(b)) = b for every bb in the set B,B\text{,} then we say that gg is the inverse of f.f\text{.}

We often use the notation f−1f^{-1} (read “ff-inverse”) to denote the inverse of f.f\text{.} The inverse function undoes the work of f.f\text{.} Indeed, if y=f(x),y = f(x)\text{,} then

f−1(y)=f−1(f(x))=x. f^{-1}(y) = f^{-1}(f(x)) = x\text{.}

Thus, the equations y=f(x)y = f(x) and x=f−1(y)x = f^{-1}(y) say the same thing. The only difference between the two equations is one of perspective — one is solved for x,x\text{,} while the other is solved for y.y\text{.}

Here we briefly remind ourselves of some key facts about inverse functions.

Note 2.6.12.6.1

For a function f:A→B,f : A \to B\text{,}

  • ff has an inverse if and only if ff is one-to-one  1  and onto  2 ;
  • provided f−1f^{-1} exists, the domain of f−1f^{-1} is the codomain of f,f\text{,} and the codomain of f−1f^{-1} is the domain of f;f\text{;}
  • f−1(f(x))=xf^{-1}(f(x)) = x for every xx in the domain of ff and f(f−1(y))=yf(f^{-1}(y)) = y for every yy in the codomain of f;f\text{;}
  • y=f(x)y = f(x) if and only if x=f−1(y).x = f^{-1}(y)\text{.}

A function ff is one-to-one provided that no two distinct inputs lead to the same output.

A function ff is onto provided that every possible element of the codomain can be realized as an output of the function for some choice of input from the domain.

The last fact reveals a special relationship between the graphs of ff and f−1.f^{-1}\text{.} If a point (x,y)(x,y) that lies on the graph of y=f(x),y = f(x)\text{,} then it is also true that x=f−1(y),x = f^{-1}(y)\text{,} which means that the point (y,x)(y,x) lies on the graph of f−1.f^{-1}\text{.} This shows us that the graphs of ff and f−1f^{-1} are the reflections of each other across the line y=x,y = x\text{,} because this reflection is precisely the geometric action that swaps the coordinates in an ordered pair. In Figure 2.6.2, we see this illustrated by the function y=f(x)=2xy = f(x) = 2^x and its inverse, with the points (−1,12)(-1,\frac{1}{2}) and (12,−1)(\frac{1}{2},-1) highlighting the reflection of the curves across y=x.y = x\text{.}

2_6_InversePlot.svg

Figure 2.6.12.6.1. A graph of a function y=f(x)y = f(x) along with its inverse, y=f−1(x).y = f^{-1}(x)\text{.}

To close our review of important facts about inverses, we recall that the natural exponential function y=f(x)=exy = f(x) = e^x has an inverse function, namely the natural logarithm, x=f−1(y)=ln⁡(y).x = f^{-1}(y) = \ln(y)\text{.} Thus, writing y=exy = e^x is interchangeable with x=ln⁡(y),x = \ln(y)\text{,} plus ln⁡(ex)=x\ln(e^x) = x for every real number xx and eln⁡(y)=ye^{\ln(y)} = y for every positive real number y.y\text{.}

The derivative of the natural logarithm function

In what follows, we find a formula for the derivative of g(x)=ln⁡(x).g(x) = \ln(x)\text{.} To do so, we take advantage of the fact that we know the derivative of the natural exponential function, the inverse of g.g\text{.} In particular, we know that writing g(x)=ln⁡(x)g(x) = \ln(x) is equivalent to writing eg(x)=x.e^{g(x)} = x\text{.} Now we differentiate both sides of this equation and observe that

ddx[eg(x)]=ddx[x]. \frac{d}{dx}\left[e^{g(x)}\right] = \frac{d}{dx}[x]\text{.}

The righthand side is simply 1;1\text{;} by applying the chain rule to the left side, we find that

eg(x)g′(x)=1. e^{g(x)} g'(x) = 1\text{.}

Next we solve for g′(x),g'(x)\text{,} to get

g′(x)=1eg(x). g'(x) = \frac{1}{e^{g(x)}}\text{.}

Finally, we recall that g(x)=ln⁡(x),g(x) = \ln(x)\text{,} so eg(x)=eln⁡(x)=x,e^{g(x)} = e^{\ln(x)} = x\text{,} and thus

g′(x)=1x. g'(x) = \frac{1}{x}\text{.}
Natural Logarithm

For all positive real numbers x,x\text{,} ddx[ln⁡(x)]=1x.\frac{d}{dx}[\ln(x)] = \frac{1}{x}\text{.}

This rule for the natural logarithm function now joins our list of basic derivative rules. Note that this rule applies only to positive values of x,x\text{,} as these are the only values for which ln⁡(x)\ln(x) is defined.

Also notice that for the first time in our work, differentiating a basic function of a particular type has led to a function of a very different nature: the derivative of the natural logarithm is not another logarithm, nor even an exponential function, but rather a rational one.

Derivatives of logarithms may now be computed in concert with all of the rules known to date. For instance, if f(t)=ln⁡(t2+1),f(t) = \ln(t^2 + 1)\text{,} then by the chain rule, f′(t)=1t2+1⋅2t.f'(t) = \frac{1}{t^2 + 1} \cdot 2t\text{.}

There are interesting connections between the graphs of f(x)=exf(x) = e^x and f−1(x)=ln⁡(x).f^{-1}(x) = \ln(x)\text{.}

In Figure 2.6.3, we are reminded that since the natural exponential function has the property that its derivative is itself, the slope of the tangent to y=exy = e^x is equal to the height of the curve at that point. For instance, at the point A=(ln⁡(0.5),0.5),A = (\ln(0.5), 0.5)\text{,} the slope of the tangent line is mA=0.5,m_A = 0.5\text{,} and at B=(ln⁡(5),5),B = (\ln(5), 5)\text{,} the tangent line's slope is mB=5.m_B = 5\text{.}

2_6_LogExp.svg

Figure 2.6.22.6.2. A graph of the function y=exy = e^x along with its inverse, y=ln⁡(x),y = \ln(x)\text{,} where both functions are viewed using the input variable x.x\text{.}

At the corresponding points A′A' and B′B' on the graph of the natural logarithm function (which come from reflecting AA and BB across the line y=xy = x), we know that the slope of the tangent line is the reciprocal of the xx-coordinate of the point (since ddx[ln⁡(x)]=1x\frac{d}{dx}[\ln(x)] = \frac{1}{x}). Thus, at A′=(0.5,ln⁡(0.5)),A' = (0.5, \ln(0.5))\text{,} we have mA′=10.5=2,m_{A'} = \frac{1}{0.5} = 2\text{,} and at B′=(5,ln⁡(5)),B' = (5, \ln(5))\text{,} mB′=15.m_{B'} = \frac{1}{5}\text{.}

In particular, we observe that mA′=1mAm_{A'} = \frac{1}{m_A} and mB′=1mB.m_{B'} = \frac{1}{m_B}\text{.} This is not a coincidence, but in fact holds for any curve y=f(x)y = f(x) and its inverse, provided the inverse exists. This is due to the reflection across y=x.y = x\text{.} It changes the roles of xx and y,y\text{,} thus reversing the rise and run, so the slope of the inverse function at the reflected point is the reciprocal of the slope of the original function.

Activity 2.6.22.6.2

For each function given below, find its derivative.

  1. h(x)=x2ln⁡(x)\displaystyle h(x) = x^2\ln(x)
  2. p(t)=ln⁡(t)et+1\displaystyle p(t) = \frac{\ln(t)}{e^t + 1}
  3. s(y)=ln⁡(cos⁡(y)+2)\displaystyle s(y) = \ln(\cos(y) + 2)
  4. z(x)=tan⁡(ln⁡(x))\displaystyle z(x) = \tan(\ln(x))
  5. m(z)=ln⁡(ln⁡(z))\displaystyle m(z) = \ln(\ln(z))

Inverse trigonometric functions and their derivatives

Trigonometric functions are periodic, so they fail to be one-to-one, and thus do not have inverse functions. However, we can restrict the domain of each trigonometric function so that it is one-to-one on that domain.

For instance, consider the sine function on the domain [−π2,π2].[-\frac{\pi}{2}, \frac{\pi}{2}]\text{.} Because no output of the sine function is repeated on this interval, the function is one-to-one and thus has an inverse. Thus, the function f(x)=sin⁡(x)f(x) = \sin(x) with [−π2,π2][-\frac{\pi}{2}, \frac{\pi}{2}] and codomain [−1,1][-1,1] has an inverse function f−1f^{-1} such that

f−1:[−1,1]→[−π2,π2]. f^{-1} : [-1,1] \to [-\frac{\pi}{2}, \frac{\pi}{2}]\text{.}

We call f−1f^{-1} the arcsine (or inverse sine) function and write f−1(y)=arcsin⁡(y).f^{-1}(y) = \arcsin(y)\text{.} It is especially important to remember that

y=sin⁡(x)  and  x=arcsin⁡(y) y = \sin(x) \ \ \text{and} \ \ x = \arcsin(y)

say the same thing. “The arcsine of yy” means “the angle whose sine is y.y\text{.}” For example, arcsin⁡(12)=π6\arcsin(\frac{1}{2}) = \frac{\pi}{6} means that π6\frac{\pi}{6} is the angle whose sine is 12,\frac{1}{2}\text{,} which is equivalent to writing sin⁡(π6)=12.\sin(\frac{\pi}{6}) = \frac{1}{2}\text{.}

2_6_arcsine.svg

Figure 2.6.32.6.3. A graph of f(x)=sin⁡(x)f(x) = \sin(x) (in blue), restricted to the domain [−π2,π2],[-\frac{\pi}{2}, \frac{\pi}{2}]\text{,} along with its inverse, f−1(x)=arcsin⁡(x)f^{-1}(x) = \arcsin(x) (in magenta).

Next, we determine the derivative of the arcsine function. Letting h(x)=arcsin⁡(x),h(x) = \arcsin(x)\text{,} our goal is to find h′(x).h'(x)\text{.} Since h(x)h(x) is the angle whose sine is x,x\text{,} it is equivalent to write

sin⁡(h(x))=x. \sin(h(x)) = x\text{.}

Differentiating both sides of the previous equation, we have

ddx[sin⁡(h(x))]=ddx[x]. \frac{d}{dx}[\sin(h(x))] = \frac{d}{dx}[x]\text{.}

The righthand side is simply 1,1\text{,} and by applying the chain rule applied to the left side,

cos⁡(h(x))h′(x)=1. \cos(h(x)) h'(x) = 1\text{.}

Solving for h′(x),h'(x)\text{,} it follows that

h′(x)=1cos⁡(h(x)). h'(x) = \frac{1}{\cos(h(x))}\text{.}

Finally, we recall that h(x)=arcsin⁡(x),h(x) = \arcsin(x)\text{,} so the denominator of h′(x)h'(x) is the function cos⁡(arcsin⁡(x)),\cos(\arcsin(x))\text{,} or in other words, “the cosine of the angle whose sine is x.x\text{.}” A bit of right triangle trigonometry allows us to simplify this expression considerably.

Let's say that θ=arcsin⁡(x),\theta = \arcsin(x)\text{,} so that θ\theta is the angle whose sine is x.x\text{.} We can picture θ\theta as an angle in a right triangle with hypotenuse 11 and a vertical leg of length x,x\text{,} as shown in Figure 2.6.5. The horizontal leg must be 1−x2,\sqrt{1-x^2}\text{,} by the Pythagorean Theorem.

2_6_cosarcsin.svg

Figure 2.6.42.6.4. The right triangle that corresponds to the angle θ=arcsin⁡(x).\theta = \arcsin(x)\text{.}

Now, because θ=arcsin⁡(x),\theta = \arcsin(x)\text{,} the expression for cos⁡(arcsin⁡(x))\cos(\arcsin(x)) is equivalent to cos⁡(θ).\cos(\theta)\text{.} From the figure, cos⁡(arcsin⁡(x))=cos⁡(θ)=1−x2.\cos(\arcsin(x)) = \cos(\theta) = \sqrt{1-x^2}\text{.}

Substituting this expression into our formula, h′(x)=1cos⁡(arcsin⁡(x)),h'(x) = \frac{1}{\cos(\arcsin(x))}\text{,} we have now shown that

h′(x)=11−x2. h'(x) = \frac{1}{\sqrt{1-x^2}}\text{.}
Inverse sine

For all real numbers xx such that −1<x<1,-1 \lt x \lt 1\text{,}

ddx[arcsin⁡(x)]=11−x2. \frac{d}{dx}[\arcsin(x)] = \frac{1}{\sqrt{1-x^2}}\text{.}

Activity 2.6.32.6.3

The following prompts in this activity will lead you to develop the derivative of the inverse tangent function.

  1. Let r(x)=arctan⁡(x).r(x) = \arctan(x)\text{.} Use the relationship between the arctangent and tangent functions to rewrite this equation using only the tangent function.
  2. Differentiate both sides of the equation you found in (a). Solve the resulting equation for r′(x),r'(x)\text{,} writing r′(x)r'(x) as simply as possible in terms of a trigonometric function evaluated at r(x).r(x)\text{.}
  3. Recall that r(x)=arctan⁡(x).r(x) = \arctan(x)\text{.} Update your expression for r′(x)r'(x) so that it only involves trigonometric functions and the independent variable x.x\text{.}
  4. Introduce a right triangle with angle θ\theta so that θ=arctan⁡(x).\theta = \arctan(x)\text{.} What are the three sides of the triangle?
  5. In terms of only xx and 1,1\text{,} what is the value of cos⁡(arctan⁡(x))?\cos(\arctan(x))\text{?}
  6. Use the results of your work above to find an expression involving only 11 and xx for r′(x).r'(x)\text{.}

While derivatives for other inverse trigonometric functions can be established similarly, for now we limit ourselves to the arcsine and arctangent functions.

Activity 2.6.42.6.4

Determine the derivative of each of the following functions.

  1. f(x)=x3arctan⁡(x)+exln⁡(x)\displaystyle \displaystyle f(x) = x^3 \arctan(x) + e^x \ln(x)
  2. p(t)=2tarcsin⁡(t)\displaystyle \displaystyle p(t) = 2^{t\arcsin(t)}
  3. h(z)=(arcsin⁡(5z)+arctan⁡(4−z))27\displaystyle \displaystyle h(z) = (\arcsin(5z) + \arctan(4-z))^{27}
  4. s(y)=cot⁡(arctan⁡(y))\displaystyle \displaystyle s(y) = \cot(\arctan(y))
  5. m(v)=ln⁡(sin⁡2(v)+1)\displaystyle \displaystyle m(v) = \ln(\sin^2(v)+1)
  6. g(w)=arctan⁡(ln⁡(w)1+w2)\displaystyle \displaystyle g(w) = \arctan\left( \frac{\ln(w)}{1+w^2} \right)

The link between the derivative of a function and the derivative of its inverse

In Figure 2.6.3, we saw an interesting relationship between the slopes of tangent lines to the natural exponential and natural logarithm functions at points reflected across the line y=x.y = x\text{.} In particular, we observed that at the point (ln⁡(2),2)(\ln(2), 2) on the graph of f(x)=ex,f(x) = e^x\text{,} the slope of the tangent line is f′(ln⁡(2))=2,f'(\ln(2)) = 2\text{,} while at the corresponding point (2,ln⁡(2))(2, \ln(2)) on the graph of f−1(x)=ln⁡(x),f^{-1}(x) = \ln(x)\text{,} the slope of the tangent line is (f−1)′(2)=12,(f^{-1})'(2) = \frac{1}{2}\text{,} which is the reciprocal of f′(ln⁡(2)).f'(\ln(2))\text{.}

That the two corresponding tangent lines have reciprocal slopes is not a coincidence. If ff and gg are differentiable inverse functions, then y=f(x)y = f(x) if and only if x=g(y),x = g(y)\text{,} thenf(g(x))=xf(g(x)) = x for every xx in the domain of f−1.f^{-1}\text{.} Differentiating both sides of this equation, we have

ddx[f(g(x))]=ddx[x], \frac{d}{dx} [f(g(x))] = \frac{d}{dx} [x]\text{,}

and by the chain rule,

f′(g(x))g′(x)=1. f'(g(x)) g'(x) = 1\text{.}

Solving for g′(x),g'(x)\text{,} we have g′(x)=1f′(g(x)).g'(x) = \frac{1}{f'(g(x))}\text{.} Here we see that the slope of the tangent line to the inverse function gg at the point (x,g(x))(x,g(x)) is precisely the reciprocal of the slope of the tangent line to the original function ff at the point (g(x),f(g(x)))=(g(x),x).(g(x),f(g(x))) = (g(x),x)\text{.}

2_6_GenInv.svg

Figure 2.6.52.6.5. A graph of function y=f(x)y = f(x) along with its inverse, y=g(x)=f−1(x).y = g(x) = f^{-1}(x)\text{.} Observe that the slopes of the two tangent lines are reciprocals of one another.

To see this more clearly, consider the graph of the function y=f(x)y = f(x) shown in Figure 2.6.6, along with its inverse y=g(x).y = g(x)\text{.} Given a point (a,b)(a,b) that lies on the graph of f,f\text{,} we know that (b,a)(b,a) lies on the graph of g;g\text{;} because f(a)=bf(a) = b and g(b)=a.g(b) = a\text{.} Now, applying the rule that g′(x)=1/f′(g(x))g'(x) = 1/f'(g(x)) to the value x=b,x = b\text{,} we have

g′(b)=1f′(g(b))=1f′(a), g'(b) = \frac{1}{f'(g(b))} = \frac{1}{f'(a)}\text{,}

which is precisely what we see in the figure: the slope of the tangent line to gg at (b,a)(b,a) is the reciprocal of the slope of the tangent line to ff at (a,b),(a,b)\text{,} since these two lines are reflections of one another across the line y=x.y = x\text{.}

Derivative of an inverse function

Suppose that ff is a differentiable function with inverse gg and that (a,b)(a,b) is a point that lies on the graph of ff at which f′(a)≠0.f'(a) \ne 0\text{.} Then

g′(b)=1f′(a). g'(b) = \frac{1}{f'(a)}\text{.}

More generally, for any xx in the domain of g′,g'\text{,} we have g′(x)=1/f′(g(x)).g'(x) = 1/f'(g(x))\text{.}

The rules we derived for ln⁡(x),\ln(x)\text{,} arcsin⁡(x),\arcsin(x)\text{,} and arctan⁡(x)\arctan(x) are all just specific examples of this general property of the derivative of an inverse function. For example, with g(x)=ln⁡(x)g(x) = \ln(x) and f(x)=ex,f(x) = e^x\text{,} it follows that

g′(x)=1f′(g(x))=1eln⁡(x)=1x. g'(x) = \frac{1}{f'(g(x))} = \frac{1}{e^{\ln(x)}} = \frac{1}{x}\text{.}

Summary

  • For all positive real numbers x,x\text{,} ddx[ln⁡(x)]=1x.\frac{d}{dx}[\ln(x)] = \frac{1}{x}\text{.}
  • For all real numbers xx such that −1<x<1,-1 \lt x \lt 1\text{,} ddx[arcsin⁡(x)]=11−x2.\frac{d}{dx}[\arcsin(x)] = \frac{1}{\sqrt{1-x^2}}\text{.} In addition, for all real numbers x,x\text{,} ddx[arctan⁡(x)]=11+x2.\frac{d}{dx}[\arctan(x)] = \frac{1}{1+x^2}\text{.}
  • If gg is the inverse of a differentiable function f,f\text{,} then for any point xx in the domain of g′,g'\text{,} g′(x)=1f′(g(x)).g'(x) = \frac{1}{f'(g(x))}\text{.}

Credit and licence

This page titled 2.6: Derivatives of Inverse Functions was last modified on Thu, 28 Sep 2023 16:35:12 GMT and is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Matthew Boelkins, David Austin, and Steven Schlicker ( ScholarWorks @Grand Valley State University ) via source content that was edited to the style and standards of the LibreTexts platform.

Source: https://math.libretexts.org/Bookshelves/Calculus/Active_Calculus_(Boelkins_et_al.)/02%3A_Computing_Derivatives/2.06%3A_Derivatives_of_Inverse_Functions

Licence: CC BY-SA 4.0 (creativecommons.org/licenses/by-sa/4.0/). You may share and adapt it under the same licence, with this credit. WorldClass adapted the formatting only: the text is the authors', with interactive parts and links to other sites left out.

Build status · Flash Infinity AI™ is a trademark of AI-Flash Inc.. WorldClass is not affiliated with, approved or accredited by any exam board, curriculum provider or university unless a page says so.