Chalk−1

Math · Calculus I · Worked example

Differentiate (3x + 1)² with the chain rule

Differentiate y = (3x + 1)² with the chain rule, then check by expanding.

y=(3⁢x+1)2

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.

u=3⁢x+1,  d⁢ud⁢x=3,y=u2,  d⁢yd⁢u=2⁢u
u=3⁢x+1,  d⁢ud⁢x=3y=u2,  d⁢yd⁢u=2⁢u

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.

d⁢yd⁢x=2⁢u⋅3

Put the inside back

Replace u with 3x + 1. The outer rate is evaluated at the inside, u = 3x + 1, not at x.

d⁢yd⁢x=2⁢(3⁢x+1)⁢(3)

Simplify

Multiply the numbers first, 2·3 = 6, so dy/dx = 6(3x + 1) = 18x + 6.

d⁢yd⁢x=18⁢x+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.

dd⁢x⁢(9x2+6⁢x+1)=18⁢x+6

Result

dy/dx = 6(3x + 1) = 18x + 6.

d⁢yd⁢x=18⁢x+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)².

f⁡(x)=(2⁢x−3)3f⁡′(x)=3⁢(2⁢x−3)2(2)f⁡′(x)=6⁢(2⁢x−3)2

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.

Make it concrete

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 Reference

Your existing work stays on this device. Examples open as editable copies.