Math · Calculus I · Worked example
Differentiate (3x + 1)² with the chain rule
Differentiate y = (3x + 1)² with the chain rule, then check by expanding.
Name the inside and the outside
Work out (3x + 1)² for one value of x: you find 3x + 1 first, then square it. So the inside is u = 3x + 1 and the outside squares it, y = u². The inner rate is du/dx = 3 and the outer rate is dy/du = 2u.
Multiply the rates
The chain rule multiplies the two rates: dy/dx = (dy/du)(du/dx) = 2u·3. Each unit of change in x makes 3 units of change in u, and each unit of change in u makes 2u units of change in y.
Put the inside back
Replace u with 3x + 1. The outer rate is evaluated at the inside, u = 3x + 1, not at x.
Simplify
Multiply the numbers first, 2·3 = 6, so dy/dx = 6(3x + 1) = 18x + 6.
Check by expanding
(3x + 1)² = 9x² + 6x + 1, and the power rule gives 18x + 6. The two routes agree. For higher powers, such as (3x + 1)⁵⁰, expanding is impractical and the chain rule is the only sensible route.
Result
dy/dx = 6(3x + 1) = 18x + 6.
Your turn
Differentiate f(x) = (2x − 3)³.
Show the answer and explanation
f′(x) = 6(2x − 3)².
The outer function cubes, so its derivative is 3u² at u = 2x − 3. Multiply by the inner derivative 2: f′(x) = 3(2x − 3)²·2 = 6(2x − 3)².
Keep exploring
Open Chain Rule Composition at x = 1: the inner rate 3 times the outer rate 8 gives the combined rate 24, which is 18(1) + 6.
Return to the concept →Sources and scope
Authored study material. Tool results depend on the stated inputs and model assumptions.
Try in the workspace
Open the example inputs, change a value and keep a useful result on your board.
Open Chain Rule Composition Check the derivative in Math Open worked example on a board Chain rule in Math ReferenceYour existing work stays on this device. Examples open as editable copies.