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 is the composition such that for every , the chain rule provides the means to find .
Mathematical Notations
| Notation Type | Formula | Description |
|---|---|---|
| Lagrange's Notation | or | Expresses the derivative of composite functions using prime symbols. |
| Leibniz's Notation | 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 times as fast as the man. β George F. Simmons
Understanding the Analogy
- Let , , and 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 .
- The rate of change of relative positions of the bicycle and the walking man is .
- Therefore, the combined rate of change of the car relative to the walking man is:
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: This represents another direct application of the chain rule.
π Formal Statements
1. Single Variable Function
If is a function differentiable at a point (meaning exists) and is differentiable at , then the composite function is differentiable at . Its derivative is given by:
In abbreviated form:
2. Leibniz Notation for Single Variable
If and , the rule is written as:
With evaluation points explicitly stated:
3. Chain Rule for Functions
Given functions forming a composite function, if each function is differentiable at its immediate input, the derivative in Leibniz's notation is:
π οΈ 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:
This decomposes into three functions:
Applying the chain rule:
For an arbitrarily long composition , defining f_{a..b} = f_a \circ f_a_+_1 \circ \cdots \circ f_b, the general formula is:
2. Deriving the Quotient Rule
The quotient rule is a direct consequence of combining the product rule and the chain rule.
- Write as a product: .
- Apply the product rule:
- Compute the derivative of the reciprocal function using the chain rule (reciprocal derivative is ):
3. Derivatives of Inverse Functions
Suppose has an inverse function such that , satisfying:
Differentiating both sides with respect to using the chain rule yields:
Substituting for allows us to solve for :
Example
- Let , with inverse .
- Since :
Warning: This formula fails if either function is non-differentiable at the evaluation point (e.g., at zero, where its inverse 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 and , the initial derivatives follow structured compositional expansions:
- First derivative:
- Higher-order derivatives account for both powers and products of the inner and outer function derivatives.