Chain rule, implicit and inverse functions
🖨 Print a self-study sheet Why print?
Some functions do not stand alone: one sits inside another, or two variables are tangled together in one equation and cannot be separated. How do we differentiate then? Unit 3 answers that, and it completes the toolkit of differentiation. From here on, the chain rule appears in nearly every AP Calculus question, often hidden inside a context or a table. Implicit differentiation is the key to the related-rates problems of Unit 4. The derivative of an inverse function at a point is a favourite multiple-choice item that many students find strange at first. Do not worry: practise it a few times and it becomes automatic.
The chain rule
Implicit differentiation
Some equations mix x and y together, and you cannot pull y out to write it as a simple function. We can still find the slope: differentiate both sides with respect to x, treating y as a function of x. Why multiply by \dfrac{dy}{dx}? Because anything containing y sits inside another function, so the chain rule asks for one more factor. Then solve for \dfrac{dy}{dx}.
Inverse functions
Similar exercises
For f(x)=\sqrt{x^2+9}, find f'(4).
What you need: the chain rule with outside \sqrt u and inside u=x^2+9.
Steps:
- f'(x)=\dfrac{2x}{2\sqrt{x^2+9}}.
- Substitute x=4.
Show solution
Since x^2+9>0 for every x, the function is defined and differentiable on \mathbb{R}.
Using the chain rule \left(\sqrt u\right)'=\dfrac{u'}{2\sqrt u} with u=x^2+9, we have f'(x)=\frac{2x}{2\sqrt{x^2+9}}=\frac{x}{\sqrt{x^2+9}}.
Substituting x=4, we get f'(4)=\frac{4}{\sqrt{16+9}}=\frac{4}{5}.
So f'(4)=\dfrac45.
Answer. \dfrac45.
For g(x)=\ln\left(x^2+1\right), what is g'(1)?
What you need: \dfrac{d}{dx}\ln u=\dfrac{u'}{u}.
Steps:
- g'(x)=\dfrac{2x}{x^2+1}.
Show solution
Since x^2+1>0 for every x, the function g(x)=\ln\left(x^2+1\right) is defined on \mathbb{R}.
Using the chain rule (\ln u)'=\dfrac{u'}{u} with u=x^2+1, we have g'(x)=\frac{2x}{x^2+1}.
Substituting x=1, we get g'(1)=\frac{2\cdot1}{1^2+1}=\frac22=1.
So the answer is B.
Remark. Option D is the value g(1)=\ln2, not g'(1).
Answer. B.
Find the slope of the curve xy=6 at the point (2, 3) by implicit differentiation.
What you need: the product rule on xy.
Steps:
- y+x\dfrac{dy}{dx}=0.
- Substitute the point.
Show solution
The point (2, 3) lies on the curve because 2\cdot3=6. Regard y as a function of x and differentiate both sides of xy=6 with respect to x (using the product rule): y+x\frac{dy}{dx}=0.
Hence, for x\neq0, \frac{dy}{dx}=-\frac yx.
Substituting x=2, y=3, we get \frac{dy}{dx}=-\frac32.
So the slope of the curve xy=6 at the point (2, 3) is -\dfrac32.
Answer. -\dfrac32.
Let f(x)=2x+e^x. What is \left(f^{-1}\right)'(1)?
What you need: find a with f(a)=1 first.
Steps:
- f(0)=0+1=1, so a=0.
- f'(x)=2+e^x.
Show solution
We have f'(x)=2+e^x>0 for every x, so f is increasing on \mathbb{R}; hence f is one-to-one and has an inverse function f^{-1}.
By the formula for the derivative of an inverse function: if f(a)=b, then \left(f^{-1}\right)'(b)=\frac{1}{f'(a)}.
Here b=1. We need a such that f(a)=1. Since f(0)=2\cdot0+e^0=1 and f is increasing, a=0.
We compute f'(0)=2+e^0=3. Therefore \left(f^{-1}\right)'(1)=\frac{1}{f'(0)}=\frac13.
So the answer is C.
Remark. Option A mistakenly uses f'(1)=2+e instead of f'(0).
Answer. C.
For y=\arcsin\left(\dfrac x2\right), find \dfrac{dy}{dx} at x=1.
What you need: \dfrac{d}{dx}\arcsin u=\dfrac{u'}{\sqrt{1-u^2}}.
Steps:
- u=\dfrac x2, u'=\dfrac12.
- Substitute x=1.
Show solution
The function y=\arcsin\left(\dfrac x2\right) is differentiable when \left|\dfrac x2\right|<1; the value x=1 satisfies this condition.
Using the chain rule \left(\arcsin u\right)'=\dfrac{u'}{\sqrt{1-u^2}} with u=\dfrac x2 and u'=\dfrac12, we have \frac{dy}{dx}=\frac{\frac12}{\sqrt{1-\frac{x^2}{4}}}.
Substituting x=1, we get \frac{dy}{dx}\bigg|_{x=1}=\frac{\frac12}{\sqrt{\frac34}}=\frac{\frac12}{\frac{\sqrt3}{2}}=\frac{1}{\sqrt3}=\frac{\sqrt3}{3}.
So \dfrac{dy}{dx} at x=1 equals \dfrac{\sqrt3}{3}.
Answer. \dfrac{\sqrt3}{3}.
Application exercises
Write the equation of the tangent line to x^2+y^2=10 at (1, 3).
What you need: \dfrac{dy}{dx}=-\dfrac xy from implicit differentiation.
Steps:
- The slope at (1, 3) is -\dfrac13.
- Use point–slope form.
Show solution
The point (1, 3) lies on the curve because 1^2+3^2=10. Differentiate both sides of x^2+y^2=10 with respect to x (regarding y as a function of x): 2x+2y\frac{dy}{dx}=0.
Hence, for y\neq0, \frac{dy}{dx}=-\frac xy.
At (1, 3), the slope of the tangent line is -\dfrac13. The tangent line is y-3=-\frac13(x-1),\ \text{that is}\ y=-\frac13x+\frac13+3=-\frac13x+\frac{10}{3}.
So the tangent line to the curve at (1, 3) is y=-\dfrac13x+\dfrac{10}{3}.
Answer. y=-\dfrac13x+\dfrac{10}{3}.
The function f is differentiable and one-to-one, with f(3)=5 and f'(3)=2. Let g=f^{-1}. Find g(5) and g'(5), and write the tangent line to g at x=5.
What you need: g(5)=3 because f(3)=5; slopes are reciprocals.
Steps:
- g'(5)=\dfrac{1}{f'(3)}.
Show solution
Since f(3)=5 and f is one-to-one, the inverse function g=f^{-1} satisfies g(5)=3.
By the formula for the derivative of an inverse function, with f'(3)=2\neq0, we have g'(5)=\frac{1}{f'\big(g(5)\big)}=\frac{1}{f'(3)}=\frac12.
The tangent line to the graph of g at x=5 is y=g(5)+g'(5)(x-5), that is y=3+\frac12(x-5).
So g(5)=3, g'(5)=\dfrac12, and the tangent line to g at x=5 is y=3+\dfrac12(x-5).
Answer. g(5)=3; g'(5)=\dfrac12; tangent line y=3+\dfrac12(x-5).
For the curve x^2+y^2=25, show that \dfrac{d^2y}{dx^2}=-\dfrac{25}{y^3}.
What you need: differentiate \dfrac{dy}{dx}=-\dfrac xy with the quotient rule, then substitute.
Steps:
- \dfrac{d^2y}{dx^2}=-\dfrac{y-x\frac{dy}{dx}}{y^2}.
- Replace \dfrac{dy}{dx} by -\dfrac xy and use x^2+y^2=25.
Show solution
Differentiate both sides of x^2+y^2=25 with respect to x (regarding y as a function of x): 2x+2y\,y'=0.
Hence, for y\neq0, y'=-\frac xy.
Differentiate this equality with respect to x, using the quotient rule and substituting y'=-\dfrac xy: \begin{aligned}y''&=-\frac{1\cdot y-x\cdot y'}{y^2}\\&=-\frac{y-x\left(-\frac xy\right)}{y^2}\\&=-\frac{y+\frac{x^2}{y}}{y^2}\\&=-\frac{y^2+x^2}{y^3}.\end{aligned}
Since x^2+y^2=25, \frac{d^2y}{dx^2}=-\frac{25}{y^3}.
So for the curve x^2+y^2=25 we have \dfrac{d^2y}{dx^2}=-\dfrac{25}{y^3}, as required.
Answer. \dfrac{d^2y}{dx^2}=-\dfrac{25}{y^3}.
Let h(x)=f\big(g(x)\big), where g(x)=x^2+1 and f'(5)=3. Find h'(2), then find the value of \dfrac{d}{dx}\Big[h(x)\Big]^2 at x=2 given that f(5)=-1.
What you need: the chain rule twice.
Steps:
- h'(2)=f'\big(g(2)\big)g'(2) with g(2)=5, g'(2)=4.
- \dfrac{d}{dx}h^2=2h\cdot h' and h(2)=f(5).
Show solution
Using the chain rule for h(x)=f\big(g(x)\big), we have h'(x)=f'\big(g(x)\big)\cdot g'(x).
With g(x)=x^2+1 we have g'(x)=2x, so g(2)=2^2+1=5 and g'(2)=4.
Therefore h'(2)=f'\big(g(2)\big)\cdot g'(2)=f'(5)\cdot4=3\cdot4=12.
Also, h(2)=f\big(g(2)\big)=f(5)=-1.
Applying the chain rule to [h(x)]^2, we have \dfrac{d}{dx}\Big[h(x)\Big]^2=2h(x)h'(x). At x=2, \frac{d}{dx}\Big[h(x)\Big]^2\bigg|_{x=2}=2\cdot h(2)\cdot h'(2)=2\cdot(-1)\cdot12=-24.
So h'(2)=12 and the value of \dfrac{d}{dx}\Big[h(x)\Big]^2 at x=2 is -24.
Answer. h'(2)=12; the required value is -24.
Marked like the Vietnamese graduation exam: Part I 0.25 points per question; Part II up to 1 point per question (1, 2, 3, 4 correct statements give 0.1, 0.25, 0.5, 1 point); Part III 0.5 points per question.
Part I. Multiple choice
The chain rule: the inside derivative is 5.
Outside e^u, inside x^2 with derivative 2x.
\dfrac{dy}{dx}=-\dfrac xy=-\dfrac23.
Option B is the derivative of \tan x; option A is that of \arcsin x.
Part II. True or false
| a) h(2)=3. | ||
| b) h'(2)=-8. | ||
| c) h'(2)=f'\big(g'(2)\big). | ||
| d) The tangent line to h at x=2 is y=3-8(x-2). |
a) True: f(g(2))=f(1)=3. b) True: f'(1)\cdot g'(2)=-8. c) False: that is not the chain rule. d) True.
Part III. Short answer
f(1)=3 and f'(1)=3+2=5, so the answer is \dfrac15=0.2.
3(2x+1)^2\cdot2=6 at x=0.
Show answers and explanations
- Part I, question 1: B. The chain rule: the inside derivative is 5.
- Part I, question 2: A. Outside e^u, inside x^2 with derivative 2x.
- Part I, question 3: D. \dfrac{dy}{dx}=-\dfrac xy=-\dfrac23.
- Part I, question 4: C. Option B is the derivative of \tan x; option A is that of \arcsin x.
- Part II, question 1: a) True; b) True; c) False; d) True. a) True: f(g(2))=f(1)=3. b) True: f'(1)\cdot g'(2)=-8. c) False: that is not the chain rule. d) True.
- Part III, question 1: 0.2. f(1)=3 and f'(1)=3+2=5, so the answer is \dfrac15=0.2.
- Part III, question 2: 6. 3(2x+1)^2\cdot2=6 at x=0.