Math Core

Lesson 1.3 · AB Review: Limits and Derivatives

Chain rule, implicit and inverse review

The chain rule is the single most-used rule in calculus: it powers implicit differentiation, inverse function derivatives, related rates, and later uu-substitution and the parametric slope dy/dtdx/dt\dfrac{dy/dt}{dx/dt}. This lesson reviews all of it at BC speed.

The chain rule

Chain rule

If y=f(g(x))y = f(g(x)), then

ddxf(g(x))=f′(g(x))⋅g′(x),ordydx=dydu⋅dudx.\frac{d}{dx}f(g(x)) = f'(g(x)) \cdot g'(x), \qquad \text{or} \qquad \frac{dy}{dx} = \frac{dy}{du}\cdot\frac{du}{dx}.

Differentiate the outer function (leaving the inside alone), then multiply by the derivative of the inside.

For deeper compositions, peel one layer at a time from the outside in, multiplying a factor for each layer. For sin⁡3(2x)=(sin⁡(2x))3\sin^3(2x) = \big(\sin(2x)\big)^3, the layers are cube, sine, and 2x2x:

ddxsin⁡3(2x)=3sin⁡2(2x)⋅cos⁡(2x)⋅2=6sin⁡2(2x)cos⁡(2x).\frac{d}{dx}\sin^3(2x) = 3\sin^2(2x) \cdot \cos(2x) \cdot 2 = 6\sin^2(2x)\cos(2x).

Common chain-rule forms worth recognizing instantly:

ddxeu=euu′,ddxln⁡u=u′u,ddxun=nun−1u′,ddxsin⁡u=u′cos⁡u.\frac{d}{dx}e^{u} = e^{u}u', \qquad \frac{d}{dx}\ln u = \frac{u'}{u}, \qquad \frac{d}{dx}u^n = nu^{n-1}u', \qquad \frac{d}{dx}\sin u = u'\cos u.

Worked example: Chain rule from a table

Suppose f(2)=−1f(2) = -1, f′(2)=4f'(2) = 4, g(1)=2g(1) = 2, g′(1)=3g'(1) = 3, and f′(−1)=6f'(-1) = 6. Find the derivative at x=1x = 1 of (a) f(g(x))f(g(x)) and (b) [f(2x)]3\big[f(2x)\big]^3.

Solution. (a) f′(g(1))⋅g′(1)=f′(2)⋅3=4⋅3=12f'(g(1)) \cdot g'(1) = f'(2) \cdot 3 = 4 \cdot 3 = 12. Notice that f′(−1)f'(-1) is a distractor: the outer derivative is evaluated at the inside value g(1)=2g(1) = 2.

(b) Three layers: cube, ff, and 2x2x. The derivative is 3[f(2x)]2⋅f′(2x)⋅23\big[f(2x)\big]^2 \cdot f'(2x) \cdot 2. At x=1x = 1: 3(−1)2⋅4⋅2=243(-1)^2 \cdot 4 \cdot 2 = 24.

Common mistake

The outer derivative is evaluated at the inside, not at xx. Writing f′(1)g′(1)f'(1)g'(1) for the derivative of f(g(x))f(g(x)) at x=1x = 1 is the most common chain-rule error on table problems.

Implicit differentiation

When xx and yy are tangled together, differentiate both sides with respect to xx, treating yy as a function of xx. Every yy term picks up a factor of dydx\dfrac{dy}{dx} by the chain rule, and products like xyxy need the product rule. Then solve for dydx\dfrac{dy}{dx}. The result generally involves both xx and yy.

For the second derivative, differentiate dydx\dfrac{dy}{dx} again (quotient rule, with yy still a function of xx), then substitute the expression for dydx\dfrac{dy}{dx} and simplify using the original equation when possible.

Worked example: An implicit second derivative

For x2−y2=1x^2 - y^2 = 1, find d2ydx2\dfrac{d^2y}{dx^2} in terms of yy.

Solution. First derivative: 2x−2y y′=02x - 2y\,y' = 0, so y′=xyy' = \dfrac{x}{y}.

Second derivative by the quotient rule:

y′′=(1)(y)−x y′y2=y−x⋅xyy2=y2−x2y3.y'' = \frac{(1)(y) - x\,y'}{y^2} = \frac{y - x \cdot \frac{x}{y}}{y^2} = \frac{y^2 - x^2}{y^3}.

The original equation says x2−y2=1x^2 - y^2 = 1, so y2−x2=−1y^2 - x^2 = -1 and y′′=−1y3y'' = -\dfrac{1}{y^3}.

Derivatives of inverse functions

If g=f−1g = f^{-1} and f(a)=bf(a) = b, then g(b)=ag(b) = a, and differentiating f(g(x))=xf(g(x)) = x gives

Inverse function derivative

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

Slopes of inverse functions at corresponding points are reciprocals.

The practical difficulty is finding aa: you are given the output bb and must find the input with f(a)=bf(a) = b, usually by inspection (try small integers).

Worked example: Inverse slope without the inverse

Let f(x)=x3+2x+1f(x) = x^3 + 2x + 1 and g=f−1g = f^{-1}. Find g′(4)g'(4).

Solution. Solve f(a)=4f(a) = 4: try a=1a = 1, 1+2+1=41 + 2 + 1 = 4. ✓ Then f′(x)=3x2+2f'(x) = 3x^2 + 2, so f′(1)=5f'(1) = 5 and g′(4)=15g'(4) = \dfrac{1}{5}.

Inverse trig derivatives

Applying the inverse rule to the trig functions gives

ddxarcsin⁡x=11−x2,ddxarccos⁡x=−11−x2,ddxarctan⁡x=11+x2.\frac{d}{dx}\arcsin x = \frac{1}{\sqrt{1 - x^2}}, \qquad \frac{d}{dx}\arccos x = -\frac{1}{\sqrt{1 - x^2}}, \qquad \frac{d}{dx}\arctan x = \frac{1}{1 + x^2}.

With the chain rule, ddxarctan⁡u=u′1+u2\dfrac{d}{dx}\arctan u = \dfrac{u'}{1 + u^2} and ddxarcsin⁡u=u′1−u2\dfrac{d}{dx}\arcsin u = \dfrac{u'}{\sqrt{1 - u^2}}. These forms return in BC as antiderivatives and in power series for arctan⁡x\arctan x.

Logarithmic differentiation

For a variable base raised to a variable power, such as y=xxy = x^x or y=(sin⁡x)xy = (\sin x)^{x}, neither the power rule nor the exponential rule applies. Take ln⁡\ln of both sides, differentiate implicitly, and multiply back by yy.

Worked example: A variable exponent

Find dydx\dfrac{dy}{dx} for y=xxy = x^{x}, x>0x > 0, and evaluate it at x=ex = e.

Solution. ln⁡y=xln⁡x\ln y = x\ln x. Differentiate: y′y=ln⁡x+1\dfrac{y'}{y} = \ln x + 1. So

y′=xx(ln⁡x+1).y' = x^x(\ln x + 1).

At x=ex = e: y′=ee(1+1)=2eey' = e^e(1 + 1) = 2e^e.

Tip

Logarithmic differentiation also tames messy products and quotients: ln⁡\ln turns them into sums, which are much easier to differentiate.

Practice

Practice 1

Find ddx[cos⁡4(3x)]\dfrac{d}{dx}\left[\cos^4(3x)\right].

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

Practice 2

Find ddxarctan⁡(x2)\dfrac{d}{dx}\arctan\left(x^2\right).

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

Practice 3

Let h(x)=f(g(x))h(x) = f(g(x)), where g(3)=−2g(3) = -2, g′(3)=5g'(3) = 5, f′(3)=7f'(3) = 7 and f′(−2)=−2f'(-2) = -2. Find h′(3)h'(3).

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

Practice 4

Find the slope of the curve x2+xy+y2=7x^2 + xy + y^2 = 7 at the point (1,2)(1, 2).

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

Practice 5

For the curve x2−y2=1x^2 - y^2 = 1, find d2ydx2\dfrac{d^2y}{dx^2} at the point (53,43)\left(\dfrac{5}{3}, \dfrac{4}{3}\right).

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

Practice 6

(AP-style) Let gg be the inverse of a differentiable function ff. The table gives f(2)=5f(2) = 5, f′(2)=3f'(2) = 3, f(5)=7f(5) = 7, f′(5)=−4f'(5) = -4. What is g′(5)g'(5)?

Practice 7

Let f(x)=x5+2x3+x−1f(x) = x^5 + 2x^3 + x - 1 and g=f−1g = f^{-1}. Find g′(3)g'(3).

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

Practice 8

Let y=xsin⁡xy = x^{\sin x} for x>0x > 0. Find dydx\dfrac{dy}{dx} at x=π2x = \dfrac{\pi}{2}.

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