Derivatives
The chain rule explained, with step-by-step examples
The chain rule finds the derivative of a function inside another function,
- Use the chain rule whenever a function is applied to something other than plain
: , , , . - Outside derivative, inside unchanged, times inside derivative.
- In Leibniz notation:
, where is the inside. - The most common mistake is forgetting to multiply by the inside's derivative.
What kind of function needs the chain rule?
The power rule tells us
The composite
To find the inside and outside, think about how you'd calculate the value for a particular
| Function | Inside | Outside |
|---|---|---|
What is the chain rule formula?
Why it works
- Rates of change multiply. If
changes times as fast as , and changes times as fast as , then changes times as fast as . is how fast the inside changes as changes. is how fast the outside changes as its input changes, measured at the current value .- Multiplying the two rates gives how fast
changes as changes.
Think of gears: if the first gear turns the second
How do you use the chain rule, step by step?
- Identify the inside and the outside.
- Differentiate the outside, leaving the inside exactly as it is.
- Multiply by the derivative of the inside.
- Simplify, and check whether the inside itself was a chain (if so, repeat).
Differentiate
- Inside:
, with derivative . Outside: , with derivative . - Outside's derivative with the inside unchanged:
. - Multiply by the inside's derivative:
. - Simplify:
.
Answer:
Differentiate
- Rewrite as a power:
. Inside (derivative ); outside (derivative ). - Outside's derivative, inside unchanged:
. - Times the inside's derivative:
. - The
and the cancel, and a negative power means dividing: .
Answer:
Differentiate
- Inside:
, with derivative . Outside: , which is its own derivative. - Outside's derivative, inside unchanged:
. - Times the inside's derivative:
.
Answer:
Forgetting the inside's derivative.
What is the difference between sin²x and sin(x²)?
They are different functions, so they have different derivatives. In
| Function | Outside, inside | Derivative |
|---|---|---|
How do you use the chain rule more than once?
When the inside is itself a composite, the chain has more links. Work from the outside in, multiplying by one derivative for each layer.
Differentiate
- Layers from the outside in:
, then , then . - Derivative of the outside layer, everything inside unchanged:
. - Times the derivative of the middle layer,
, with its inside unchanged: . - Times the derivative of the innermost layer:
. - Multiply and cancel the
s: .
Answer:
How does the chain rule combine with the product rule?
Choose the first rule by the last operation. In
Differentiate
- Product rule with
( ) and . - Chain rule for
: inside with derivative , so . - Product rule:
. - Factor out the common
: .
Answer:
Some chain rule problems can be avoided with a rewrite:
Learn it step by step
The full lessons in the course explain this from the ground up, with graphs, worked examples, and practice problems that each have a complete worked solution.
Open the lessonFrequently asked questions
When do you use the chain rule?
Whenever a function is applied to an expression other than plain
What is the chain rule in simple terms?
Derivative of the outside, keeping the inside the same, times the derivative of the inside.
Do you need the chain rule for e^(2x)?
Yes: the inside is
Can the chain rule be used more than once in one problem?
Yes. A function with several layers, like
Why is it called the chain rule?
Because a composite function is a chain of functions, each feeding the next, and the rule multiplies one rate of change for each link in the chain.