πŸ“ˆ

Chain Rule: Calculus Study Notes

October 10, 2026

πŸ“ The Chain Rule in Calculus

  • Key Overview & Roadmap:
    • Definition of the chain rule for composite functions
    • Intuitive explanations and real-world analogies
    • Mathematical statements in Lagrange's and Leibniz's notations
    • Advanced applications (composites of multiple functions, quotient rule, inverse functions, backpropagation)
    • Higher-order derivatives and FaΓ  di Bruno's formula

πŸ’‘ Core Concept & Definition

In calculus, the chain rule is a fundamental formula that expresses the derivative of the composition of two differentiable functions in terms of the derivatives of the individual functions.

More precisely, if h=z∘yh = z \circ y is the composition such that h(x)=z(y(x))h(x) = z(y(x)) for every xx, the chain rule provides the means to find hβ€²(x)h'(x).

Mathematical Notations

Notation TypeFormulaDescription
Lagrange's Notationhβ€²(x)=zβ€²(y(x))β‹…yβ€²(x)h'(x) = z'(y(x)) \cdot y'(x)
or
hβ€²=(z∘y)β€²=(zβ€²βˆ˜y)β‹…yβ€²h' = (z \circ y)' = (z' \circ y) \cdot y'
Expresses the derivative of composite functions using prime symbols.
Leibniz's Notationdzdx=dzdyβ‹…dydx\dfrac{dz}{dx} = \dfrac{dz}{dy} \cdot \dfrac{dy}{dx}
or
$\left.\dfrac{dz}{dx}\right
_x = \left.\dfrac{dz}{dy}\right

Note: In integration, the counterpart to the chain rule is the substitution rule.


🧠 Intuitive Explanation

If a car travels twice as fast as a bicycle and the bicycle is four times as fast as a walking man, then the car travels 2Γ—4=82 \times 4 = 8 times as fast as the man. β€” George F. Simmons

Understanding the Analogy

  • Let zz, yy, and xx be the variable positions of the car, the bicycle, and the walking man, respectively.
  • The rate of change of relative positions of the car and the bicycle is dzdy=2\dfrac{dz}{dy} = 2.
  • The rate of change of relative positions of the bicycle and the walking man is dydx=4\dfrac{dy}{dx} = 4.
  • Therefore, the combined rate of change of the car relative to the walking man is: dzdx=dzdyβ‹…dydx=2β‹…4=8\dfrac{dz}{dx} = \dfrac{dz}{dy} \cdot \dfrac{dy}{dx} = 2 \cdot 4 = 8

Time-Based Rates

Because the rate of change of positions is the ratio of speeds, and speed is the derivative of position with respect to time: dzdx=dzdtdxdtβ€…β€ŠβŸΊβ€…β€Šdzdt=dzdxβ‹…dxdt\dfrac{dz}{dx} = \dfrac{\dfrac{dz}{dt}}{\dfrac{dx}{dt}} \iff \dfrac{dz}{dt} = \dfrac{dz}{dx} \cdot \dfrac{dx}{dt} This represents another direct application of the chain rule.


πŸ“ Formal Statements

1. Single Variable Function

If gg is a function differentiable at a point cc (meaning gβ€²(c)g'(c) exists) and ff is differentiable at g(c)g(c), then the composite function f∘gf \circ g is differentiable at cc. Its derivative is given by: (f∘g)β€²(c)=fβ€²(g(c))β‹…gβ€²(c)(f \circ g)'(c) = f'(g(c)) \cdot g'(c)

In abbreviated form: (f∘g)β€²=(fβ€²βˆ˜g)β‹…gβ€²(f \circ g)' = (f' \circ g) \cdot g'

2. Leibniz Notation for Single Variable

If y=f(u)y = f(u) and u=g(x)u = g(x), the rule is written as: dydx=dyduβ‹…dudx\dfrac{dy}{dx} = \dfrac{dy}{du} \cdot \dfrac{du}{dx}

With evaluation points explicitly stated: dydx∣x=c=dydu∣u=g(c)β‹…dudx∣x=c\left.\dfrac{dy}{dx}\right|_{x=c} = \left.\dfrac{dy}{du}\right|_{u=g(c)} \cdot \left.\dfrac{du}{dx}\right|_{x=c}

3. Chain Rule for nn Functions

Given nn functions f1,…,fnf_1, \ldots, f_n forming a composite function, if each function fif_i is differentiable at its immediate input, the derivative in Leibniz's notation is: df1dx=df1df2df2df3β‹―dfndx\dfrac{df_1}{dx} = \dfrac{df_1}{df_2} \dfrac{df_2}{df_3} \cdots \dfrac{df_{n}}{dx}


πŸ› οΈ Applications & Advanced Techniques

1. Composites of More Than Two Functions

To differentiate a composite of more than two functions, apply the chain rule recursively. For example, consider: y=esin⁑(x2)y = e^{\sin(x^2)}

This decomposes into three functions:

  • y=f(u)=euβ€…β€ŠβŸΉβ€…β€Šdydu=euy = f(u) = e^u \implies \dfrac{dy}{du} = e^u
  • u=g(v)=sin⁑vβ€…β€ŠβŸΉβ€…β€Šdudv=cos⁑vu = g(v) = \sin v \implies \dfrac{du}{dv} = \cos v
  • v=h(x)=x2β€…β€ŠβŸΉβ€…β€Šdvdx=2xv = h(x) = x^2 \implies \dfrac{dv}{dx} = 2x

Applying the chain rule: dydx=dyduβ‹…dudvβ‹…dvdx=esin⁑(x2)β‹…cos⁑(x2)β‹…2x\dfrac{dy}{dx} = \dfrac{dy}{du} \cdot \dfrac{du}{dv} \cdot \dfrac{dv}{dx} = e^{\sin(x^2)} \cdot \cos(x^2) \cdot 2x

For an arbitrarily long composition f1∘f2βˆ˜β‹―βˆ˜fnf_1 \circ f_2 \circ \cdots \circ f_n, defining f_{a..b} = f_a \circ f_a_+_1 \circ \cdots \circ f_b, the general formula is: Df1..n=∏k=1n[Dfk∘f(k+1)..n]Df_{1..n} = \prod_{k=1}^{n} \left[Df_k \circ f_{(k+1)..n}\right]


2. Deriving the Quotient Rule

The quotient rule is a direct consequence of combining the product rule and the chain rule.

  1. Write f(x)g(x)\dfrac{f(x)}{g(x)} as a product: f(x)β‹…1g(x)f(x) \cdot \dfrac{1}{g(x)}.
  2. Apply the product rule: ddx(f(x)g(x))=fβ€²(x)β‹…1g(x)+f(x)β‹…ddx(1g(x))\dfrac{d}{dx}\left(\dfrac{f(x)}{g(x)}\right) = f'(x) \cdot \dfrac{1}{g(x)} + f(x) \cdot \dfrac{d}{dx}\left(\dfrac{1}{g(x)}\right)
  3. Compute the derivative of the reciprocal function 1g(x)\dfrac{1}{g(x)} using the chain rule (reciprocal derivative is βˆ’1/x2-1/x^2): fβ€²(x)β‹…1g(x)+f(x)β‹…(βˆ’1g(x)2β‹…gβ€²(x))=fβ€²(x)g(x)βˆ’f(x)gβ€²(x)g(x)2f'(x) \cdot \dfrac{1}{g(x)} + f(x) \cdot \left(-\dfrac{1}{g(x)^2} \cdot g'(x)\right) = \dfrac{f'(x)g(x) - f(x)g'(x)}{g(x)^2}

3. Derivatives of Inverse Functions

Suppose y=g(x)y = g(x) has an inverse function ff such that x=f(y)x = f(y), satisfying: f(g(x))=xf(g(x)) = x

Differentiating both sides with respect to xx using the chain rule yields: fβ€²(g(x))gβ€²(x)=1f'(g(x))g'(x) = 1

Substituting f(y)f(y) for xx allows us to solve for fβ€²f': fβ€²(y)=1gβ€²(f(y))f'(y) = \dfrac{1}{g'(f(y))}

Example

  • Let g(x)=exg(x) = e^x, with inverse f(y)=ln⁑yf(y) = \ln y.
  • Since gβ€²(x)=exg'(x) = e^x: ddyln⁑y=1eln⁑y=1y\dfrac{d}{dy}\ln y = \dfrac{1}{e^{\ln y}} = \dfrac{1}{y}

Warning: This formula fails if either function is non-differentiable at the evaluation point (e.g., g(x)=x3g(x) = x^3 at zero, where its inverse f(y)=y1/3f(y) = y^{1/3} is not differentiable at zero, resulting in division by zero).


4. Backpropagation in Artificial Intelligence

The chain rule forms the mathematical foundation of the backpropagation algorithm, which is used in gradient descent optimization for neural networks in deep learning.


πŸ“ˆ Higher Derivatives

FaΓ  di Bruno's formula generalizes the chain rule to higher-order derivatives. For y=f(u)y = f(u) and u=g(x)u = g(x), the initial derivatives follow structured compositional expansions:

  • First derivative: dydx=dyduβ‹…dudx\dfrac{dy}{dx} = \dfrac{dy}{du} \cdot \dfrac{du}{dx}
  • Higher-order derivatives account for both powers and products of the inner and outer function derivatives.