🌱 Tony's Memex Tony's Intertwingled Memex
Digital Garden | OER Curriculum
Core Definition

The Chain Rule computes the derivative of a composite function. If y=f(g(x))y = f(g(x)), then: Prime Notation:

ddx[f(g(x))]=f′(g(x))⋅g′(x)\frac{d}{dx}[f(g(x))] = f'(g(x)) \cdot g'(x)
Leibniz Notation: Letting u=g(x)u = g(x) and y=f(u)y = f(u):
dydx=dydu⋅dudx\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx}
For a three-layer composite function y=f(g(h(x)))y = f(g(h(x))) with u=g(v)u = g(v) and v=h(x)v = h(x):
dydx=dydu⋅dudv⋅dvdx\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dv} \cdot \frac{dv}{dx}

Concept Explanation

The Chain Rule describes how rates of change propagate through nested dependent systems. If variable yy changes AA times faster than uu, and uu changes BB times faster than xx, then the total sensitivity of yy relative to xx is the multiplicative product A×BA \times B.

The "Peeling the Onion" Mental Model

When evaluating a composite derivative, differentiate from the outside inward:

  1. Differentiate the outer shell, preserving the interior argument completely intact. Never differentiate the inside function on this first step.
  2. Multiply by the derivative of the inner argument.
  3. For multi-layer systems (f(g(h(x)))f(g(h(x)))), repeat the process step-by-step until the innermost variable (xx) is reached.

Leibniz Notation vs. Prime Notation

Operational Feature Leibniz Notation (dydu⋅dudx\frac{dy}{du}\cdot\frac{du}{dx}) Prime Notation (f′(g(x))⋅g′(x)f'(g(x))\cdot g'(x))
Primary Strength Explicitly tracks rates with respect to physical units and intermediate variables. Fast, compact shorthand for algebraic calculations on paper.
Variable Tracking Introduces named intermediate variables (u,v,zu, v, z). Tracks nested positions directly without auxiliary variables.
Engineering Context Preferred in physics, thermodynamics, and multi-stage control loops. Preferred in single-variable algebraic transformations.

Engineering Applications

  • Electrical Engineering (Thermal Drift in Timing Circuits): When capacitor voltage decays over time V(t)=V0e−t/τV(t) = V_0 e^{-t/\tau} while clock speed varies with temperature t(θ)t(\theta), the temperature sensitivity is governed by dVdθ=dVdt⋅dtdθ\frac{dV}{d\theta} = \frac{dV}{dt} \cdot \frac{dt}{d\theta} (see RC Circuit Transient Surge (Electrical Engineering)).
  • Aerospace Engineering (Atmospheric Drag Force): Aerodynamic drag force FdF_d depends on atmospheric air density ρ\rho, density depends on altitude zz, and altitude depends on burn-time tt. The time rate of change of drag force requires a three-layer chain: dFddt=dFddρ⋅dρdz⋅dzdt\frac{dF_d}{dt} = \frac{dF_d}{d\rho} \cdot \frac{d\rho}{dz} \cdot \frac{dz}{dt} (see Atmospheric Density and Aerodynamic Drag (Aerospace Engineering)).
  • Robotics & Actuator Kinematics: Converting linear Cartesian actuator positions to rotational joint angles requires chain-differentiating inverse trigonometric functions (see Robotic Kinematics & Angular Velocity Mapping (Mechanical Engineering)).

Example Problems

Example 1: Two-Layer Leibniz Notation

Find the derivative of y=11+x5y = \frac{1}{\sqrt{1 + x^5}} with respect to xx using Leibniz notation.

Solution

Step 1: Pre-process with negative and rational exponents Rewrite the function in power form:

y=(1+x5)−12y = (1 + x^5)^{-\frac{1}{2}}

Step 2: Define the intermediate variable uu Let u=1+x5u = 1 + x^5, so y=u−12y = u^{-\frac{1}{2}}.

Step 3: Differentiate both components Using the Power Rule:

dydu=−12u−32,dudx=5x4\frac{dy}{du} = -\frac{1}{2}u^{-\frac{3}{2}}, \qquad \frac{du}{dx} = 5x^4

Step 4: Combine via the Chain Rule

dydx=dydu⋅dudx=(−12u−32)(5x4)=−5x42u−32\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx} = \left(-\frac{1}{2}u^{-\frac{3}{2}}\right)(5x^4) = -\frac{5x^4}{2}u^{-\frac{3}{2}}

Step 5: Back-substitute uu and post-process into radical form

dydx=−5x42(1+x5)32=−5x42(1+x5)3\frac{dy}{dx} = -\frac{5x^4}{2(1 + x^5)^{\frac{3}{2}}} = -\frac{5x^4}{2\sqrt{(1 + x^5)^3}}

Example 2: Three-Layer Composite Function (Prime Notation)

Find the derivative of h(x)=cos⁡4(3x2−1)h(x) = \cos^4(3x^2 - 1) with respect to xx.

Solution

Step 1: Identify the nested structural layers

  • Outer layer: [u]4[u]^4
  • Middle layer: cos⁡(v)\cos(v)
  • Inner layer: v=3x2−1v = 3x^2 - 1

Step 2: Differentiate the outer power layer By the Power Rule, bring down the exponent 4, reduce the power to 3, and keep the entire interior untouched:

h′(x)=4cos⁡3(3x2−1)⋅ddx[cos⁡(3x2−1)]h'(x) = 4\cos^3(3x^2 - 1) \cdot \frac{d}{dx}[\cos(3x^2 - 1)]

Step 3: Differentiate the middle trigonometric layer The derivative of cos⁡(v)\cos(v) is −sin⁡(v)-\sin(v), leaving the innermost argument untouched:

h′(x)=4cos⁡3(3x2−1)⋅(−sin⁡(3x2−1))⋅ddx[3x2−1]h'(x) = 4\cos^3(3x^2 - 1) \cdot \left(-\sin(3x^2 - 1)\right) \cdot \frac{d}{dx}[3x^2 - 1]

Step 4: Differentiate the inner polynomial layer

ddx[3x2−1]=6x\frac{d}{dx}[3x^2 - 1] = 6x

Step 5: Multiply all factors and simplify coefficients

h′(x)=4⋅(−sin⁡(3x2−1))⋅6x⋅cos⁡3(3x2−1)=−24xcos⁡3(3x2−1)sin⁡(3x2−1)h'(x) = 4 \cdot (-\sin(3x^2 - 1)) \cdot 6x \cdot \cos^3(3x^2 - 1) = -24x \cos^3(3x^2 - 1)\sin(3x^2 - 1)


Connections & References