purpose
Chain Rule Calculator
Compute derivatives of composite functions step by step using the chain rule. Enter f(g(x)) and see the chain rule applied at every layer.
Compute a Derivative
Enter a mathematical expression and click Calculate to see the symbolic derivative with step-by-step solution and interactive graph.
Try an Example
Pick a scenario to see how the calculator works, then adjust the values
Power Rule
Differentiate a polynomial using the power rule.
Key values: f(x) = x^3 - 2x^2 + x · 1st derivative
Chain Rule
Differentiate a composite function with sin(x^2).
Key values: f(x) = sin(x^2) · Chain rule applied
Product Rule with Tangent
Differentiate exp(x)*cos(x) and evaluate the tangent at x = 0.
Key values: f(x) = exp(x)*cos(x) · Tangent at x = 0
Second Derivative
Compute the second derivative to analyze concavity.
Key values: f(x) = x^4 - 6x^2 + 4 · 2nd derivative
The Chain Rule
The chain rule differentiates composite functions — functions nested inside other functions. If , then:
In words: differentiate the outer function (leaving the inner function unchanged), then multiply by the derivative of the inner function.
Leibniz notation: If and , then . The terms “cancel” — a useful mnemonic, though not rigorous.
Common Patterns
| Function | Outer | Inner | Derivative |
|---|---|---|---|
Multiple Layers (Triple Chain)
When three or more functions are nested, the chain rule extends naturally. For :
Example:
Common Mistakes
- Forgetting the inner derivative: — the factor of 3 from the inner function is essential.
- Applying the chain rule when it's not needed: , not (though technically correct, the ×1 is unnecessary).
- Confusing with the product rule: needs the chain rule (composition); needs the product rule (multiplication).
Frequently Asked Questions
What is the chain rule?
The chain rule differentiates composite functions . The derivative is : differentiate the outer function leaving the inner unchanged, then multiply by the derivative of the inner function.
How do I recognize when to use the chain rule?
Use the chain rule whenever you see a function nested inside another function. For example, is applied to , and is the exponential applied to . If the argument is anything other than plain , the chain rule applies.
What is the most common chain rule mistake?
The most common mistake is forgetting to multiply by the inner derivative. For example, , not just . The factor of 3 from the inner function is essential.
How does the chain rule extend to triple composites?
For , the derivative is . Each layer contributes a factor. For example, .
How is the chain rule different from the product rule?
The chain rule applies to composition (one function inside another), like . The product rule applies to multiplication (two functions multiplied together), like . Misidentifying composition as multiplication is a common error.
Plate
Related purpose calculators
Other purpose variations of this calculator
Further plates
More Math calculators
Explore the category