The Chain Rule
Key Terms
- A composite function is a function of a function: y = f(g(x)). The inner function is g(x) and the outer function is f.
- The chain rule states: if y = f(g(x)), then dy/dx = f′(g(x)) × g′(x).
- Equivalently, if y = f(u) and u = g(x), then dy/dx = (dy/du) × (du/dx).
- In words: differentiate the outer function (leaving the inner unchanged), then multiply by the derivative of the inner function.
- Recognition: look for a function raised to a power, or a polynomial inside another function.
Chain rule: dy/dx = f′(g(x)) · g′(x)
Or using substitution u = g(x): dy/dx = (dy/du)(du/dx)
| Function y = | Inner u = | dy/dx = |
|---|---|---|
| (2x + 1)5 | 2x + 1 | 5(2x + 1)4 × 2 = 10(2x + 1)4 |
| (x2 + 3)4 | x2 + 3 | 4(x2 + 3)3 × 2x = 8x(x2 + 3)3 |
| √(3x − 1) | 3x − 1 | ½(3x − 1)−1/2 × 3 = 3/(2√(3x − 1)) |
| (x3 + 2x)6 | x3 + 2x | 6(x3 + 2x)5 × (3x2 + 2) |
Worked Example 1 — Power of a linear function
Question: Differentiate y = (3x + 2)7.
Identify: Outer function f(u) = u7, inner function u = 3x + 2.
Apply chain rule: dy/dx = 7u6 × du/dx = 7(3x + 2)6 × 3
Answer: dy/dx = 21(3x + 2)6
Worked Example 2 — Power of a quadratic
Question: Differentiate y = (x2 − 5)4.
Identify: Outer f(u) = u4, inner u = x2 − 5, so du/dx = 2x.
Apply chain rule: dy/dx = 4(x2 − 5)3 × 2x
Answer: dy/dx = 8x(x2 − 5)3
Worked Example 3 — Square root (fractional power)
Question: Differentiate y = √(4x2 + 1).
Rewrite: y = (4x2 + 1)1/2. Inner u = 4x2 + 1, du/dx = 8x.
Apply chain rule: dy/dx = ½(4x2 + 1)−1/2 × 8x = 4x(4x2 + 1)−1/2
Answer: dy/dx = 4x / √(4x2 + 1)
Introduction
The rules you have learned so far — the power rule, basic polynomial differentiation — apply to simple functions. But many real-world expressions are composed of one function inside another: (2x+1)5, √(x2+3), 1/(x−4)3. The chain rule is the key technique for differentiating these composite functions.
Understanding Composite Functions
A composite function y = f(g(x)) means: first apply g to x, then apply f to the result. For example, y = (2x+1)5 means: first compute u = 2x+1 (inner), then raise to the 5th power (outer).
The chain rule tells us how the rates of change multiply: the rate at which y changes with respect to x equals the rate y changes with u, times the rate u changes with x.
Applying the Chain Rule: Step-by-Step
- Identify the inner and outer functions. Write y = f(u) where u = g(x).
- Differentiate the outer function with respect to u: find dy/du = f′(u).
- Differentiate the inner function with respect to x: find du/dx = g′(x).
- Multiply: dy/dx = (dy/du) × (du/dx) = f′(u) × g′(x).
- Substitute back u = g(x) to express the answer in terms of x only.
Find dy/dx for y = (x3 + 2x + 1)5.
Step 1: Let u = x3 + 2x + 1, so y = u5.
Step 2: dy/du = 5u4.
Step 3: du/dx = 3x2 + 2.
Step 4: dy/dx = 5u4 × (3x2 + 2) = 5(x3 + 2x + 1)4(3x2 + 2).
Negative and Fractional Powers
The chain rule applies to any power, including negative and fractional. Always rewrite square roots as power 1/2 and fractions as negative powers before differentiating.
For example: 1/(x2+1)3 = (x2+1)−3. Apply chain rule: dy/dx = −3(x2+1)−4 × 2x = −6x(x2+1)−4.
Differentiate y = 1/(2x − 3)4.
Rewrite: y = (2x − 3)−4.
Chain rule: dy/dx = −4(2x − 3)−5 × 2 = −8(2x − 3)−5.
Answer: dy/dx = −8/(2x − 3)5.
Applications: Rates of Change
The chain rule also appears in related rates problems. If a quantity depends on time t through an intermediate variable, the chain rule links the rates: for example, if V depends on r and r depends on t, then dV/dt = (dV/dr)(dr/dt).
Summary
Chain rule: dy/dx = f′(g(x)) × g′(x). Steps: identify inner u = g(x) and outer y = f(u), differentiate each, multiply. Applies to all powers — positive, negative, fractional. Always substitute u back to express in terms of x.
Mastery Practice
-
Fluency
Differentiate each function using the chain rule.
- (a) y = (x + 4)6
- (b) y = (3x − 1)4
- (c) y = (2x + 5)3
- (d) y = (5 − x)7
-
Fluency
Differentiate each function. Write your answer in simplified form.
- (a) y = (x2 + 1)5
- (b) y = (x2 − 4x)3
- (c) y = (2x2 + x)4
- (d) y = (x3 + 1)6
-
Fluency
Differentiate each function involving square roots. Leave answers with positive indices.
- (a) y = √(2x + 3)
- (b) y = √(x2 + 5)
- (c) y = √(4 − x)
- (d) y = √(3x2 − x)
-
Fluency
Rewrite with negative indices then differentiate. Express the final answer with positive indices.
- (a) y = 1/(x + 2)3
- (b) y = 1/(2x − 1)5
- (c) y = 4/(x2 + 3)2
-
Understanding
Find the gradient of each curve at the given point.
Method: Differentiate using the chain rule, then substitute the x-value.- (a) y = (2x + 1)4 at x = 0
- (b) y = (x2 + 3)3 at x = 1
- (c) y = √(x + 5) at x = 4
- (d) y = (3 − x)5 at x = 2
-
Understanding
Find the equation of the tangent to each curve at the given point.
- (a) y = (x + 1)4 at x = 1
- (b) y = (2x − 3)3 at x = 2
- (c) y = √(2x + 1) at x = 4
-
Understanding
Differentiate these more complex composite functions.
- (a) y = (x2 + 2x + 1)4
- (b) y = (x3 − 3x)5
- (c) y = (1 − 2x2)3
- (d) y = ((x + 1)2)3 [Hint: simplify first, then differentiate]
-
Understanding
Mixed differentiation — chain rule and power rule together.
Find f′(x) for each function.
- (a) f(x) = 3x4 + 2(x + 1)5
- (b) f(x) = (x2 + 1)3 − x3
- (c) f(x) = 5(2x − 1)4 + 3x
-
Problem Solving
Related rates using the chain rule.
Challenge. A spherical balloon is being inflated. Its radius at time t seconds is r = (3t + 1) cm.- (a) Write an expression for the volume V of the sphere in terms of t. (Use V = (4/3)πr3.)
- (b) Use the chain rule (dV/dt = (dV/dr)(dr/dt)) to find dV/dt.
- (c) Find the rate of change of volume when t = 1 second. Leave your answer in terms of π.
-
Problem Solving
Chain rule applied to motion.
Challenge. A particle moves along a line. Its displacement (in metres) at time t seconds is given by s = (t2 + 2)3.- (a) Find the velocity v = ds/dt at time t.
- (b) Find the velocity when t = 1 second.
- (c) Find the acceleration a = dv/dt at time t = 1. (Hint: differentiate your velocity expression using the chain rule again.)
-
Problem Solving
Stationary points using the chain rule.
For the curve y = (2x − 4)4 − 3:
- (a) Find dy/dx using the chain rule.
- (b) Find all stationary points (where dy/dx = 0).
- (c) Determine the nature of each stationary point.