The Chain Rule

LESSON 4 OF 12See the unit map ↗

Differentiate nested functions by tracking the rate contributed by each layer.

Builds on Product and Quotient Rules

The bigger question: How can we measure change at a single instant?

On this page

Change passing through a second quantity

A composition y=f(u)y=f(u) with u=g(x)u=g(x) changes through the intermediate variable uu. Its rate with respect to xx is the rate with respect to uu multiplied by the rate of uu with respect to xx:

dydx=f′(g(x))g′(x).\frac{dy}{dx}=f'(g(x))g'(x).

The notation dy/du⋅du/dxdy/du\cdot du/dx is a useful mnemonic. The theorem requires the relevant derivatives to exist; it is not a license to cancel arbitrary symbols in every expression.

Identify the outermost operation first. A power of a polynomial is a composition; a polynomial multiplied by a trigonometric function is a product. An expression may need both rules.

Visual guide

VISUAL GUIDEThe inner change rescales the slope
Compare sin x with sin 2x. Near zero the second wave changes twice as fast, reflected by its tangent y = 2x. The derivative 2 cos 2x contains the inner derivative 2.-3.2-1.5-1.6-0.75001.60.753.21.5xy
  • sin x
  • sin 2x
  • Tangent to sin 2x at zero
Compare sin x with sin 2x. Near zero the second wave changes twice as fast, reflected by its tangent y = 2x. The derivative 2 cos 2x contains the inner derivative 2.

Worked example: retain the inside

For y=(3x2+1)4y=(3x^2+1)^4, temporarily name u=3x2+1u=3x^2+1. The outer derivative is 4u34u^3 and the inner derivative is 6x6x. Substitute back:

y′=4(3x2+1)3(6x)=24x(3x2+1)3.y'=4(3x^2+1)^3(6x)=24x(3x^2+1)^3.

Differentiating the inside too early and replacing it everywhere by 6x6x would lose the original composition. Only the extra multiplier becomes its derivative.

At x=0x=0, the inner rate is zero, so the composition's rate is zero even though the outer derivative at u=1u=1 is 44. This is a useful way to interpret a zero in the product.

PAUSE & THINKA quick check, not a grade

Try it yourself.

Choose an answer and explain your reasoning to yourself. Use a hint if you get stuck.

Differentiate (3x+1)⁴.

Hint 1 · Find a starting point

There is an outer fourth power and an inner linear function.

Hint 2 · Take the next step

Multiply the outer derivative by the inner derivative, 3.

Show the reasoning

Answer: 12(3x+1)³

4(3x+1)³ × 3 = 12(3x+1)³.

Before moving on: what would make one of the other answers wrong? Saying why is part of understanding.

Worked example: several layers and a product

For h(x)=xsin⁡(x2)h(x)=x\sin(x^2), first apply the product rule:

h′(x)=sin⁡(x2)+xcos⁡(x2)(2x).h'(x)=\sin(x^2)+x\cos(x^2)(2x).

The result is sin⁡(x2)+2x2cos⁡(x2)\sin(x^2)+2x^2\cos(x^2). The product creates two terms; the composition inside the second term supplies the factor 2x2x.

For q(x)=ln⁡(1+e2x)q(x)=\ln(1+e^{2x}), move from outside inward: logarithm, sum, exponential, then 2x2x. Thus q′=2e2x/(1+e2x)q'=2e^{2x}/(1+e^{2x}). The logarithm's argument is positive for every real input, so no additional real-domain exclusions occur.

Rates and units

If temperature TT depends on position ss and position depends on time, then dT/dt=(dT/ds)(ds/dt)dT/dt=(dT/ds)(ds/dt). A gradient along a pipe of −3-3 °C/m and a motion speed of 22 m/s give a temperature change of −6-6 °C/s for the moving probe. The units reinforce the composition.

Practice

  1. Differentiate 1+4x2\sqrt{1+4x^2}.
  2. Differentiate esin⁡xe^{\sin x}.
  3. A radius grows at dr/dt=0.2dr/dt=0.2 cm/s. Find the rate of sphere volume when r=3r=3 cm.
Show worked solutions
  1. (1/2)(1+4x2)−1/2(8x)=4x/1+4x2(1/2)(1+4x^2)^{-1/2}(8x)=4x/\sqrt{1+4x^2}.
  2. The exponential stays evaluated at sin⁡x\sin x, giving esin⁡xcos⁡xe^{\sin x}\cos x.
  3. From V=4πr3/3V=4\pi r^3/3, dV/dt=4πr2r′=4π(9)(0.2)=7.2πdV/dt=4\pi r^2r'=4\pi(9)(0.2)=7.2\pi cm³/s.
MAKE IT YOURS

Pause before the next idea.

Can you explain how the visualization connects to this lesson’s goal? If a step still feels uncertain, put this lesson on your review list and try the check again another day.

Optional marks, not a grade. Saved in this browser only. Open notebook →