Lesson 53 — The Chain Rule
Derivative of a composite function: if y = f(g(x)), then dy/dx = f'(g(x))·g'(x). The most used rule in all of applied calculus.
Used in: 2nd Year High School (16 years old) · Equivalent Japanese Math II/III §微分 · Equivalent German Klasse 11 Abitur
The Chain Rule: the derivative of a composite function is the derivative of the outer function, evaluated at the inner function, multiplied by the derivative of the inner function. In Leibniz notation: , where .
Rigorous notation, full derivation, hypotheses
Definition and theory
Formal Statement
"The chain rule states that the derivative of is . That is, we differentiate the outer function , evaluate it at the inner function , and multiply by the derivative of the inner function." — OpenStax Calculus Volume 1, §3.6
"Think of the process from outside in: identify the outer function, differentiate it while keeping the inner function unchanged, then multiply by the derivative of the inner function." — Boelkins, Active Calculus §2.5
Rigorous Proof
The difficulty lies in the fact that can be zero for , invalidating the naive argument of canceling . The solution uses the auxiliary function:
is continuous at (by differentiability of ). Since , dividing by and taking the limit yields .
Fundamental Special Cases
| Composite Function | Derivative |
|---|---|
Triple Composition
For :
Composition Diagram
Flow of composition: input x, processed by g to yield u, then by f to yield y. The total rate dy/dx is the product of the individual rates.
Solved Examples
Exercise list
40 exercises · 10 with worked solution (25%)
- Ex. 53.1Answer key
Calculate .
Show solution
Inner: , derivative . Outer: , derivative evaluated at : . Result: .Show step-by-step (with the why)
- Identify the layers. Write with (outer) and (inner). Always name the layers explicitly before differentiating.
- Differentiate the outer layer. . Evaluate at : . Note: the argument remains , not .
- Differentiate the inner layer. . The derivative of a linear function is its slope.
- Multiply. .
Mnemonic: for any , the derivative is . Here the slope is 2, hence the factor of 2.
- Ex. 53.2
Calculate .
Show solution
Inner: , derivative . Outer: , derivative . Result: . - Ex. 53.3
Calculate .
Show solution
Inner: , derivative . Outer: , derivative . Result: . Common mistake: writing only — missing the factor of 2 from the derivative of .Show step-by-step (with the why)
- Identify the layers. (outer), (inner).
- Differentiate the outer layer. . Evaluated at : . The exponential function is its own derivative.
- Differentiate the inner layer. . Power rule on .
- Multiply. .
Mnemonic: the exponential function "copies itself" upon differentiation — the only new factor is the derivative of the exponent. Never forget this factor.
- Ex. 53.4Answer key
Calculate .
Show solution
Formula: . Here , . Result: . - Ex. 53.5Answer key
Calculate .
Show solution
Inner: , derivative . Outer: , derivative . Result: . - Ex. 53.6
Calculate .
Show solution
Inner: , derivative . Outer: , derivative evaluated at : . Result: (double angle identity).Show step-by-step (with the why)
- Rewrite. . Outer layer: . Inner: .
- Differentiate the outer. evaluated at : .
- Differentiate the inner. .
- Multiply. .
- Simplify. Using the identity : result .
Curiosity: differentiating and differentiating yield the same result — confirm this using the chain rule on the latter for practice.
- Ex. 53.7
Calculate .
Show solution
Inner: , derivative . Outer: , derivative . Result: . - Ex. 53.8
Calculate .
Show solution
Inner: , derivative . Outer: , derivative . Result: . - Ex. 53.9
Calculate .
Show solution
Inner: , derivative . Outer: , derivative . Result: . - Ex. 53.10
Calculate .
Show solution
Inner: , derivative . Outer: , derivative . Result: .Show step-by-step (with the why)
- Identify. is a composition: (outer), (inner). It is not the same as !
- Differentiate the outer. evaluated at : .
- Differentiate the inner. .
- Result. .
Mnemonic: . The position of the exponent changes everything. Be careful with notation.
- Ex. 53.11
Calculate .
Show solution
Inner: , derivative . Outer: , derivative . Result: . (Domain: .) - Ex. 53.12
Calculate .
Show solution
Rewrite as . Inner: , derivative . Outer: , derivative . Result: . - Ex. 53.13Answer key
Calculate .
Show solution
Formula: . Here , , . Result: . - Ex. 53.14
Calculate .
Show solution
Three layers: outermost , intermediate , innermost . Chain rule: .Show step-by-step (with the why)
- Identify 3 layers. . Outer: . Middle: . Inner: .
- Differentiate each layer. ; ; .
- Assemble the product from outside in. .
- Simplify. .
Mnemonic: in triple composition, always assemble the product from the outermost to the innermost layer. Never skip a layer.
- Ex. 53.15
Calculate . (Ans: .)
Show solution
Formula: . Here , . Result: . - Ex. 53.16
Calculate .
Show solution
Formula: . Here , . Result: . - Ex. 53.17Answer key
Calculate .
Show solution
Three layers: , , . Chain rule: . - Ex. 53.18
Calculate .
Show solution
Inner: , derivative . Outer: , derivative . Result: . (Domain: .) - Ex. 53.19Answer key
Calculate .
Show solution
Inner: , derivative . Outer: , derivative . Result: . - Ex. 53.20
Calculate .
Show solution
Inner: , derivative . Outer: , derivative . Result: . - Ex. 53.21Answer key
Calculate .
Show solution
Inner: , derivative . Outer: , derivative . Result: . - Ex. 53.22
Calculate .
Show solution
Inner: , derivative . Outer: , derivative . Result: . (Domain: .)Show step-by-step (with the why)
- Identify. is a composition of the logarithm with itself: (outer), (inner).
- Differentiate the outer. evaluated at : .
- Differentiate the inner. .
- Result. .
Note: the natural domain requires so that the inner logarithm (the argument of the outer logarithm must be positive).
- Ex. 53.23
Calculate .
Show solution
Product: , . Product rule: .Show step-by-step (with the why)
- Recognize the product. Two factors: and . Use the product rule, not the chain rule directly.
- Differentiate each factor. . For : chain rule with inner , derivative . Thus .
- Product rule. .
- Result. .
Mnemonic: in this type of exercise, first identify IF it is a product or a composition. is a product. would be pure composition.
- Ex. 53.24
Calculate .
Show solution
Product: , . Derivative: . - Ex. 53.25
Calculate .
Show solution
Three layers: , , . Chain rule: . - Ex. 53.26Answer key
Calculate .
Show solution
Three layers: , , . Chain rule: . - Ex. 53.27
Find the tangent line to the curve at the point . (Ans: .)
Show solution
At : . Derivative: . At : . Tangent line: , or . - Ex. 53.28
Error Analysis. A student writes . What specific error was made?
Show solution
In , the inner function is $x^2$, whose derivative is $2x$, not $x$. The student multiplied by $x$ instead of $2x$. The correct result is . This is the most common error with the chain rule for exponentials. - Ex. 53.29
Conceptual. To differentiate , which rule applies? Why isn't it the product rule?
Show solution
See the referenced source for the detailed solution. - Ex. 53.30
Calculate .
Show solution
Inner: , derivative . Outer: , derivative . Result: . The function grows immensely fast: at , .Show step-by-step (with the why)
- Identify layers. Outermost: , derivative . Inner: , derivative .
- Evaluate derivatives at composed arguments. Outer evaluated: . Inner: .
- Multiply. .
Observation: at the derivative is $e$, consistent with rapid growth.
- Ex. 53.31
Physics. The position of a particle in simple harmonic motion is . Calculate the acceleration and show that .
Show solution
Velocity: (chain rule). Acceleration: . Acceleration is proportional to the negative of displacement — simple harmonic oscillator law.Show step-by-step (with the why)
See the referenced source for the step-by-step walkthrough. - Ex. 53.32Answer key
Nuclear Physics. Radioactive decay follows . Calculate and show that .
Show solution
. Chain rule: inner , derivative . Outer . Result: . The decay rate is proportional to the amount present — law of radioactive decay. - Ex. 53.33Answer key
Biology. Logistic growth is . Calculate .
Show solution
At : . Rewrite . Chain rule: . At : .Show step-by-step (with the why)
- P(0). . The population starts at half the carrying capacity.
- Rewrite to apply chain rule. . Outer: . Inner: .
- Differentiate. Outer: . Inner: the derivative of is (inner chain rule). Thus .
- At t=0. . The maximum growth rate occurs at .
Curiosity: the inflection point of logistic growth occurs exactly when the population reaches half the carrying capacity — this is when growth is fastest.
- Ex. 53.34
Statistics. Calculate for the standard normal density .
Show solution
. Chain rule on : inner , derivative . Result: . The derivative of the Gaussian is itself multiplied by . - Ex. 53.35
Finance. The present value of a cash flow discounted at rate is . Calculate and interpret the result.
Show solution
Product: (derivative via chain rule), (constant, derivative zero). Product rule: . The present value decays at a rate multiplied by its own value. - Ex. 53.36
Physics. Kinetic energy is and velocity is . Calculate using the chain rule and verify with direct differentiation.
Show solution
. Direct derivative: . Via chain rule: . Both methods agree. - Ex. 53.37
Calculate .
Show solution
Three layers: , , . Chain rule from outside in: .Show step-by-step (with the why)
- Identify the 3 layers. Outermost: , derivative . Intermediate: , derivative . Innermost: , derivative .
- Evaluate each derivative at its composed argument. Outer: . Intermediate: . Inner: .
- Product. .
Mnemonic: in triple composition, set up a table of layers and derivatives before multiplying — this prevents errors in order or missing factors.
- Ex. 53.38
Calculate .
Show solution
. Outer: , derivative . Inner: , derivative (via chain rule on the square root). Result: . - Ex. 53.39
Calculate .
Show solution
Three layers: , , . Chain rule: .Show step-by-step (with the why)
- Layers. Outermost: , derivative . Intermediate: , derivative . Innermost: , derivative .
- Evaluate each derivative at its composed argument. Outer: . Intermediate: . Inner: .
- Product. .
Note: at the derivative is zero (factor ), consistent with a possible extremum. Check numerically: .
- Ex. 53.40
Proof. Explain why the naive argument fails as a rigorous proof of the chain rule. How does the auxiliary function resolve the issue?
Show solution
The naive argument writes . The problem: can be zero for (e.g., oscillating ), leading to division by zero. The solution is to define the auxiliary function which equals the difference quotient when and when . The continuity of at (guaranteed by differentiability of ) allows completing the argument without division by zero.
Sources
- Active Calculus 2.0 — Boelkins, Austin, Schlicker · 2024 · §2.5. Primary source. CC-BY-NC-SA.
- Calculus Volume 1 — OpenStax (Herman et al.) · 2016 · §3.6. CC-BY-NC-SA.
- APEX Calculus — Hartman et al. · 2024 · v5 · §2.5. CC-BY-NC.