The chain rule is the single most-used rule in calculus: it powers implicit differentiation, inverse function derivatives, related rates, and later u-substitution and the parametric slope dx/dtdy/dt. This lesson reviews all of it at BC speed.
The chain rule
Chain rule
If y=f(g(x)), then
dxdf(g(x))=f′(g(x))⋅g′(x),ordxdy=dudy⋅dxdu.
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 sin3(2x)=(sin(2x))3, the layers are cube, sine, and 2x:
Suppose f(2)=−1, f′(2)=4, g(1)=2, g′(1)=3, and f′(−1)=6. Find the derivative at x=1 of (a) f(g(x)) and (b) [f(2x)]3.
Solution. (a) f′(g(1))⋅g′(1)=f′(2)⋅3=4⋅3=12. Notice that f′(−1) is a distractor: the outer derivative is evaluated at the inside valueg(1)=2.
(b) Three layers: cube, f, and 2x. The derivative is 3[f(2x)]2⋅f′(2x)⋅2. At x=1: 3(−1)2⋅4⋅2=24.
Common mistake
The outer derivative is evaluated at the inside, not at x. Writing f′(1)g′(1) for the derivative of f(g(x)) at x=1 is the most common chain-rule error on table problems.
Implicit differentiation
When x and y are tangled together, differentiate both sides with respect to x, treating y as a function of x. Every y term picks up a factor of dxdy by the chain rule, and products like xy need the product rule. Then solve for dxdy. The result generally involves both x and y.
For the second derivative, differentiate dxdy again (quotient rule, with y still a function of x), then substitute the expression for dxdy and simplify using the original equation when possible.
Worked example: An implicit second derivative
For x2−y2=1, find dx2d2y in terms of y.
Solution. First derivative: 2x−2yy′=0, so y′=yx.
Second derivative by the quotient rule:
y′′=y2(1)(y)−xy′=y2y−x⋅yx=y3y2−x2.
The original equation says x2−y2=1, so y2−x2=−1 and y′′=−y31.
Derivatives of inverse functions
If g=f−1 and f(a)=b, then g(b)=a, and differentiating f(g(x))=x gives
Inverse function derivative
g′(b)=f′(a)1,where f(a)=b.
Slopes of inverse functions at corresponding points are reciprocals.
The practical difficulty is finding a: you are given the output b and must find the input with f(a)=b, usually by inspection (try small integers).
Worked example: Inverse slope without the inverse
Let f(x)=x3+2x+1 and g=f−1. Find g′(4).
Solution. Solve f(a)=4: try a=1, 1+2+1=4. ✓ Then f′(x)=3x2+2, so f′(1)=5 and g′(4)=51.
Inverse trig derivatives
Applying the inverse rule to the trig functions gives
With the chain rule, dxdarctanu=1+u2u′ and dxdarcsinu=1−u2u′. These forms return in BC as antiderivatives and in power series for arctanx.
Logarithmic differentiation
For a variable base raised to a variable power, such as y=xx or y=(sinx)x, neither the power rule nor the exponential rule applies. Take ln of both sides, differentiate implicitly, and multiply back by y.
Worked example: A variable exponent
Find dxdy for y=xx, x>0, and evaluate it at x=e.
Solution.lny=xlnx. Differentiate: yy′=lnx+1. So
y′=xx(lnx+1).
At x=e: y′=ee(1+1)=2ee.
Tip
Logarithmic differentiation also tames messy products and quotients: ln turns them into sums, which are much easier to differentiate.
Practice
Practice 1
Find dxd[cos4(3x)].
Enter an expression, e.g. 3x^2 - 2x + 1
Practice 2
Find dxdarctan(x2).
Enter an expression, e.g. 3x^2 - 2x + 1
Practice 3
Let h(x)=f(g(x)), where g(3)=−2, g′(3)=5, f′(3)=7 and f′(−2)=−2. Find 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=7 at the point (1,2).
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 5
For the curve x2−y2=1, find dx2d2y at the point (35,34).
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 6
(AP-style) Let g be the inverse of a differentiable function f. The table gives f(2)=5, f′(2)=3, f(5)=7, f′(5)=−4. What is g′(5)?
Practice 7
Let f(x)=x5+2x3+x−1 and g=f−1. Find g′(3).
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 8
Let y=xsinx for x>0. Find dxdy at x=2π.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.