The Chain Rule
Master the technique for differentiating composite functions: functions nested inside other functions.
What is a Composite Function?
A composite function is created when one function is plugged into another. If we have an outer function \( f \) and an inner function \( g \), the composite is written:
For example, in \( \sin(x^2) \), the outer function is \( \sin(u) \) and the inner function is \( u = x^2 \). The Chain Rule tells us how to differentiate these nested structures.
Visualizing the Chain
Why Do We Need the Chain Rule?
Basic derivative rules like the Power Rule or the derivative of \( \sin(x) \) apply to simple functions. But most real-world functions are composites:
The Chain Rule: Formal Statement
In words: differentiate the outer function (keeping the inner function unchanged), then multiply by the derivative of the inner function.
How the Derivatives Multiply
Chain Rule vs. Basic Rules
| Basic Rule | Chain Rule Needed | |
|---|---|---|
| Power | \( \frac{d}{dx} x^3 = 3x^2 \) | \( \frac{d}{dx} (2x+1)^3 \) |
| Trig | \( \frac{d}{dx} \sin x = \cos x \) | \( \frac{d}{dx} \sin(5x) \) |
| Exponential | \( \frac{d}{dx} e^x = e^x \) | \( \frac{d}{dx} e^{-x^2} \) |
| Logarithm | \( \frac{d}{dx} \ln x = \frac{1}{x} \) | \( \frac{d}{dx} \ln(x^2+1) \) |
How to Apply the Chain Rule
Example 1: Power of a Linear
Example 2: Trig Composite
Example 3: Exponential Composite
Nested Chains: Two Layers Deep
Here we have three layers: \( \cos(\cdot) \) wrapping \( (\cdot)^3 \) wrapping \( 2x+1 \). Apply the chain rule twice:
Combining with Other Rules
In practice, the Chain Rule often appears alongside the Product Rule or Quotient Rule. Always handle the Chain Rule inside the other rule.
Common Mistakes
Quick Reference Table
| Function | Derivative (Chain Rule) |
|---|---|
| \( \bigl[g(x)\bigr]^n \) | \( n\bigl[g(x)\bigr]^{n-1} \cdot g'(x) \) |
| \( \sin\!\bigl(g(x)\bigr) \) | \( \cos\!\bigl(g(x)\bigr) \cdot g'(x) \) |
| \( \cos\!\bigl(g(x)\bigr) \) | \( -\sin\!\bigl(g(x)\bigr) \cdot g'(x) \) |
| \( e^{g(x)} \) | \( e^{g(x)} \cdot g'(x) \) |
| \( \ln\!\bigl(g(x)\bigr) \) | \( \dfrac{g'(x)}{g(x)} \) |
| \( \tan\!\bigl(g(x)\bigr) \) | \( \sec^2\!\bigl(g(x)\bigr) \cdot g'(x) \) |
Question 1 of 5
What is \( \dfrac{d}{dx}(5x-2)^4 \)?
Question 2 of 5
What is \( \dfrac{d}{dx}\cos(3x) \)?
Question 3 of 5
What is \( \dfrac{d}{dx}\,e^{4x+1} \)?
Question 4 of 5
What is \( \dfrac{d}{dx}\ln(x^2+1) \)?
Question 5 of 5
What is \( \dfrac{d}{dx}\bigl[\sin(x)\bigr]^2 \)?