The Chain Rule Formula
If , then:
In words: differentiate the outside function, leave the inside alone, then multiply by the derivative of the inside.
In Leibniz notation, if depends on and depends on :
Why it works: rates multiply. If changes 3 times as fast as , and changes 2 times as fast as , then changes times as fast as .
How to Spot the Inside and Outside
Ask: "What would I calculate last if I plugged in a number?" That last operation is the outside function.
| Function | Outside | Inside |
|---|---|---|
If the inside is just plain , the inside derivative is 1 and you do not need the chain rule.
Example 1: A Power of a Polynomial
Example: Differentiate .
- Outside: . Inside: .
- Differentiate the outside and keep the inside unchanged: .
- Differentiate the inside: .
- Multiply: .
Using Leibniz notation for the same problem: and , so .
Example 2: Trig Functions
Example: Differentiate .
- Outside: , whose derivative is . Inside: .
- Outside derivative with the inside kept: .
- Inside derivative: .
- Answer: .
Example: Differentiate .
- Rewrite it so the structure is clear: . The outside is the cube, and the inside is .
- Outside derivative: .
- Inside derivative: .
- Answer: .
Notice the difference: in the trig function is outside, while in the power is outside.
Example 3: Exponentials and Logarithms
Example: Differentiate .
- Outside: , which is its own derivative. Inside: .
- Answer: .
Example: Differentiate .
- Outside: , with derivative . Inside: .
- Answer: .
Example 4: A Chain Inside a Chain
Some functions have three or more layers. Peel them one at a time, from the outside in, and multiply every derivative together.
Example: Differentiate .
- Rewrite: . The layers are: cube, then sine, then .
- Derivative of the cube: .
- Derivative of the sine: .
- Derivative of : .
- Multiply: .
Example 5: Chain Rule With the Product Rule
Example: Differentiate .
- The whole thing is a product, so start with the product rule: and .
- .
- For , use the chain rule: .
- Product rule: .
- Factor out : .
- Simplify: .
Paste a function into the VeilGPT solver to check each layer of your chain rule work.
Common mistakes
- Forgetting to multiply by the derivative of the inside function, which turns the derivative of (3x + 1)^5 into 5(3x + 1)^4 instead of 15(3x + 1)^4.
- Changing the inside while differentiating the outside, like writing 4(6x^2)^3 instead of 4(2x^3 - 5)^3 times 6x^2.
- Mixing up sin^2(x), which means (sin x)^2, with sin(x^2), which has x^2 inside the sine.
- Stopping after one layer on a nested function such as sin^3(2x), and missing the final factor of 2.
Try one yourself
Find the derivative of y = sin^2(4x + 1)
Work it out, then check every step with the VeilGPT calculus solver.
Check it with VeilGPT