Math Core

Lesson 3.3 · Composite, Implicit and Inverse Functions

Derivatives of inverse functions

Many important functions are defined as inverses: ln⁡x\ln x undoes exe^x, x\sqrt{x} undoes x2x^2, and arcsin⁡x\arcsin x undoes sin⁡x\sin x. Often you can't even write a formula for an inverse, yet the AP exam still expects you to find its derivative. The trick is that the slope of an inverse is tied directly to the slope of the original function.

The picture: reciprocal slopes

The graph of f−1f^{-1} is the reflection of the graph of ff across the line y=xy = x. Reflecting swaps xx and yy, so every point (a,b)(a, b) on ff becomes (b,a)(b, a) on f−1f^{-1}.

Reflection also swaps rise and run. A tangent line to ff at (a,b)(a, b) with slope riserun=m\dfrac{\text{rise}}{\text{run}} = m becomes a tangent line to f−1f^{-1} at (b,a)(b, a) with slope runrise=1m\dfrac{\text{run}}{\text{rise}} = \dfrac{1}{m}.

f(x) = x³ + 1 has slope 3 at (1, 2). Its inverse has slope 1/3 at the mirror point (2, 1).Open in grapher →

The formula

You can also get the rule from the chain rule. Let g=f−1g = f^{-1}, so f(g(x))=xf(g(x)) = x for every xx in the domain of gg. Differentiate both sides:

f′(g(x))⋅g′(x)=1⟹g′(x)=1f′(g(x)).f'(g(x)) \cdot g'(x) = 1 \quad\Longrightarrow\quad g'(x) = \frac{1}{f'(g(x))}.

Derivative of an inverse function

If ff is differentiable and one-to-one, g=f−1g = f^{-1}, and f′(g(a))≠0f'(g(a)) \ne 0, then

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

In words: to find the slope of the inverse at x=ax = a, find the matching input b=g(a)b = g(a) (the number with f(b)=af(b) = a), then take the reciprocal of f′(b)f'(b).

The formula needs f′(g(a))≠0f'(g(a)) \ne 0. Where ff has a horizontal tangent, the reflected tangent is vertical, and the inverse is not differentiable there.

Finding the matching input

The hardest part is usually finding g(a)g(a) without a formula for gg. Remember what g(a)g(a) means: it's the input bb that makes f(b)=af(b) = a. On the AP exam, bb is almost always a small integer you can find by inspection or read from a table.

Worked example: An inverse with no formula

Let f(x)=x3+2x−1f(x) = x^3 + 2x - 1, and let gg be the inverse of ff. Find g′(2)g'(2).

Solution. You can't easily solve y=x3+2x−1y = x^3 + 2x - 1 for xx, so don't try. Instead, find the input that gives an output of 2. Try small integers: f(1)=1+2−1=2f(1) = 1 + 2 - 1 = 2. ✓ So g(2)=1g(2) = 1.

Next, f′(x)=3x2+2f'(x) = 3x^2 + 2, so f′(1)=5f'(1) = 5. Therefore

g′(2)=1f′(g(2))=1f′(1)=15.g'(2) = \frac{1}{f'(g(2))} = \frac{1}{f'(1)} = \frac{1}{5}.

Common mistake

Don't evaluate f′f' at aa itself. In the example above, f′(2)=14f'(2) = 14, and 114\dfrac{1}{14} is a very popular wrong answer. You need f′f' at the matching input g(2)=1g(2) = 1.

Worked example: From a table

The functions ff and gg are differentiable inverses. Selected values of ff and f′f' are shown. Find g′(7)g'(7).

xx247
f(x)f(x)4710
f′(x)f'(x)523\dfrac{2}{3}3

Solution. Find where ff outputs 7: the table shows f(4)=7f(4) = 7, so g(7)=4g(7) = 4. Then

g′(7)=1f′(4)=12/3=32.g'(7) = \frac{1}{f'(4)} = \frac{1}{2/3} = \frac{3}{2}.

The entry f′(7)=3f'(7) = 3 is a trap: it describes ff at the input 7, which is irrelevant here.

Worked example: Why the derivative of ln x is 1/x

You learned that ddxln⁡x=1x\dfrac{d}{dx}\ln x = \dfrac{1}{x}. Here's why. The function g(x)=ln⁡xg(x) = \ln x is the inverse of f(x)=exf(x) = e^x, and f′(x)=exf'(x) = e^x. So

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

The same idea gives derivatives of inverse trig functions in the next lesson.

Worked example: Tangent line to an inverse

Let f(x)=x+exf(x) = x + e^x, and let gg be the inverse of ff. Write an equation of the line tangent to the graph of gg at x=1x = 1.

Solution. Find the input with f(b)=1f(b) = 1: f(0)=0+e0=1f(0) = 0 + e^0 = 1, so g(1)=0g(1) = 0. The point of tangency on gg is (1,0)(1, 0).

Next, f′(x)=1+exf'(x) = 1 + e^x, so f′(0)=2f'(0) = 2 and g′(1)=12g'(1) = \dfrac{1}{2}. The tangent line is

y=0+12(x−1)=12x−12.y = 0 + \frac{1}{2}(x - 1) = \frac{1}{2}x - \frac{1}{2}.

Tip

Keep the coordinates straight by writing the point on ff first, then flipping it. For the last example: ff passes through (0,1)(0, 1) with slope 2, so gg passes through (1,0)(1, 0) with slope 12\dfrac{1}{2}.

Practice

Practice 1

Let f(x)=x5+x+3f(x) = x^5 + x + 3, and let gg be the inverse of ff. Find g′(5)g'(5).

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

Let f(x)=x3+1f(x) = x^3 + 1. Find (f−1)′(9)\left(f^{-1}\right)'(9).

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

Let f(x)=2x+cos⁡xf(x) = 2x + \cos x, and let gg be the inverse of ff. Find g′(1)g'(1).

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 4

The functions ff and gg are differentiable inverses. The point (3,−1)(3, -1) is on the graph of gg, and g′(3)=4g'(3) = 4. Find f′(−1)f'(-1).

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

(AP-style) The table gives values of a differentiable, one-to-one function ff and its derivative. If gg is the inverse of ff, what is g′(5)g'(5)?

xx135
f(x)f(x)358
f′(x)f'(x)246
Practice 6

(AP-style) Let f(x)=e2x+xf(x) = e^{2x} + x, and let gg be the inverse of ff. What is g′(1)g'(1)?

Practice 7

Let f(x)=x3+xf(x) = x^3 + x, and let gg be the inverse of ff. Write an equation of the line tangent to the graph of gg at x=2x = 2.

Enter an expression, e.g. 3x^2 - 2x + 1