Math · Introduction to Calculus · Grade 9-12 · 5 min read

Chain Rule

⚡ In one breath

The chain rule differentiates a composite function — a function nested inside another — by multiplying the outer derivative (evaluated at the inner) by the inner derivative.

📐 The formula

(fg)(x)=f(g(x))g(x)(f \circ g)'(x) = f'(g(x)) \cdot g'(x)

Orient

The one-line idea, why it matters, and the intuition.

Section 1

Quick Answer

The chain rule differentiates a composite function — a function nested inside another — by multiplying the outer derivative (evaluated at the inner) by the inner derivative. Use it whenever you see a function plugged into another, like sin(x2)\sin(x^2) or (3x+1)5(3x+1)^5. The cue is nesting: there is an inside and an outside. Before calculating, ask: Is one function plugged into another, so I must multiply the outer derivative by the inner derivative?

Section 2

Why This Matters

Most real derivatives in physics and modeling are composites — cos(2t)\cos(2t), ekxe^{kx}, x2+1\sqrt{x^2+1} — so without the chain rule the differentiation rules cover almost nothing. The extra g(x)g'(x) factor is exactly what students forget, and it is the difference between a correct answer and one that's off by the inner rate. Recognizing it by "Is one function plugged into another, so I must multiply the outer derivative by the inner derivative?" — rather than by familiar numbers — is what lets a student tell it apart from product rule and power rule alone and u-substitution in a mixed problem set.

Section 3

Intuitive Explanation

Russian nesting dolls: to find the rate of the whole, you take the rate of the outermost shell while holding the inner doll fixed, then multiply by how fast the inner doll itself is changing — layer by layer from outside in. This is the clean version of the idea because the visible structure matches the concept before any formula or procedure is chosen.

Differentiating (3x+1)5(3x+1)^5 as 5(3x+1)45(3x+1)^4 and stopping — that omits the inner derivative g(x)=3g'(x)=3; the chain rule requires multiplying by it to get 15(3x+1)415(3x+1)^4. That contrast matters because many wrong answers come from recognizing a surface feature, such as a familiar number or word, instead of the actual task.

A useful way to slow down is to name the signal words and then test them. Words like **composite function**, **function inside a function**, **outer and inner**, **nested**, **f(g(x))f(g(x))** are helpful clues, but they are not enough by themselves. They must point to the same structure as the mental model: The chain rule differentiates a composite f(g(x))f(g(x)) as f(g(x))f'(g(x)) times g(x)g'(x), peeling layers from outside in.

The recognition test is simple: Is one function plugged into another, so I must multiply the outer derivative by the inner derivative? If yes, chain rule is probably the right tool; if not, compare with Product rule or Power rule alone or u-Substitution before calculating.

Core idea

The chain rule differentiates a composite f(g(x))f(g(x)) as f(g(x))f'(g(x)) times g(x)g'(x), peeling layers from outside in.

Recognize

The cues that signal this concept and how to distinguish it from look-alikes.

Section 4

When to Use

Use Chain Rule when you are differentiating a composite where one function is plugged into another. Strong signals include **composite function**, **function inside a function**, **outer and inner**, **nested**, **f(g(x))f(g(x))**. The safest workflow is to read the final question first, identify what kind of answer it wants, and then test the structure. Do not use chain rule just because familiar numbers appear; first decide whether the situation answers "Is one function plugged into another, so I must multiply the outer derivative by the inner derivative?" with yes.

✨ Pro tip

Ask: Is one function plugged into another, so I must multiply the outer derivative by the inner derivative?

Section 5

How to Recognize It

Before using Chain Rule, check the structure of the problem, not just the vocabulary. These questions force the same recognition move from several angles: the task, the signal words, the nearest confusion, and the thing that would make the concept fail.

  1. Is one function plugged into another, so I must multiply the outer derivative by the inner derivative?

    If yes, the problem matches chain rule. If no, pause before applying the procedure, because the same numbers may belong to a different idea.

  2. Which words signal the structure?

    Look for composite function, function inside a function, outer and inner, nested. These words are useful only after the situation matches them; a keyword without structure is not proof.

  3. What is the nearest confusion?

    Product rule is the common trap here: Differentiates two functions multiplied together, not nested inside each other. Compare the desired final answer before choosing a method.

  4. What answer form should I expect?

    The answer should fit this mental model: The chain rule differentiates a composite f(g(x))f(g(x)) as f(g(x))f'(g(x)) times g(x)g'(x), peeling layers from outside in. If the expected answer sounds more like product rule, use the comparison table before solving.

  5. What would make this NOT Chain Rule?

    Differentiating (3x+1)5(3x+1)^5 as 5(3x+1)45(3x+1)^4 and stopping — that omits the inner derivative g(x)=3g'(x)=3; the chain rule requires multiplying by it to get 15(3x+1)415(3x+1)^4. This tells you when to switch tools instead of forcing the concept.

Section 6

Chain Rule vs Common Confusions

The hard part is recognizing when the task is really about chain rule instead of a nearby idea. Read the final answer the problem wants, then ask which row describes the structure before you start calculating.

Chain Rule

Meaning
Use this when you are differentiating a composite where one function is plugged into another. The deciding question is: Is one function plugged into another, so I must multiply the outer derivative by the inner derivative?
Key test
Is one function plugged into another, so I must multiply the outer derivative by the inner derivative?
Formula
(fg)(x)=f(g(x))g(x)(f \circ g)'(x) = f'(g(x)) \cdot g'(x)
Example
Differentiate (x2+1)3(x^2+1)^3.

Product rule

Meaning
Differentiates two functions multiplied together, not nested inside each other.
Key test
Use when functions are multiplied side by side, like $x^2\sin x$, not composed.
Formula
(fg)=fg+fg(fg)'=f'g+fg'
Example
xexx\cdot e^x is a product; ex2e^{x^2} is a composite

Power rule alone

Meaning
Differentiates a power of xx but ignores any inner function.
Key test
Use when the base is just $x$, like $x^5$, with nothing nested inside.
Formula
ddxxn=nxn1\frac{d}{dx}x^n=nx^{n-1}
Example
x5x^5 needs only the power rule; (2x)5(2x)^5 needs the chain rule

u-Substitution

Meaning
The reverse of the chain rule, used inside integrals not derivatives.
Key test
Use when integrating a composite times its inner derivative.
Formula
f(g(x))g(x)dx=f(u)du\int f(g(x))g'(x)\,dx=\int f(u)\,du
Example
Integrating 2xcos(x2)2x\cos(x^2)

Apply

Worked examples and the mistakes most students make.

Section 7

Formula & Notation

(fg)(x)=f(g(x))g(x)(f \circ g)'(x) = f'(g(x)) \cdot g'(x)
If gg is differentiable at xx and ff is differentiable at g(x)g(x), then (fg)(x)=f(g(x))g(x)(f \circ g)'(x) = f'(g(x)) \cdot g'(x).

How to read it: In Leibniz notation: dydx=dydududx\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx} where y=f(u)y = f(u) and u=g(x)u = g(x).

Section 8

Worked Examples

Example 1 — Composite power

Easy

Problem

Differentiate (x2+1)3(x^2+1)^3.

Solution

  1. The base x2+1x^2+1 is itself a function raised to a power, so this is a composite: outer is u3u^3, inner is u=x2+1u=x^2+1.

    Name the structure before touching arithmetic — that is what makes the right method obvious.

  2. Ask the recognition question: Is one function plugged into another, so I must multiply the outer derivative by the inner derivative?

    If the answer is yes, the concept applies; the cue, not a keyword, decides the method.

  3. Apply f(g(x))g(x)f'(g(x))\cdot g'(x): outer derivative 3(x2+1)23(x^2+1)^2 times inner derivative 2x2x.

    The rule is chosen only after the structure matches, so the steps mean something.

  4. Multiply the two factors: 3(x2+1)22x=6x(x2+1)23(x^2+1)^2\cdot 2x=6x(x^2+1)^2.

    Keep units, shape, or answer form tied to the story so the work does not become symbol pushing.

  5. Check the answer against the original question.

    It should fit the mental model — outside derivative times inside derivative. If it does not, revisit the recognition step before changing the arithmetic.

Answer

6x(x2+1)26x(x^2+1)^2

Takeaway: Differentiate the outside at the inside, then multiply by the inside's derivative — never drop the inner factor.

Example 2 — A product, not a composite

Standard

Problem

Differentiate x3(x2+1)x^3\cdot(x^2+1).

Solution

  1. Notice why this looks like the same concept.

    Nearby language or numbers can tempt you toward outside derivative times inside derivative.

  2. These are two functions multiplied, not one inside the other, so the product rule applies.

    Spotting what actually changed is what separates this from the concept it resembles.

  3. Use (fg)=fg+fg(fg)'=f'g+fg' with f=x3f=x^3, g=x2+1g=x^2+1: 3x2(x2+1)+x3(2x)=5x4+3x23x^2(x^2+1)+x^3(2x)=5x^4+3x^2.

    The nearby idea may share numbers but answers a different question, so it needs a different move.

  4. State the result in the language of the actual task.

    5x4+3x25x^4+3x^2. Name it for what the problem really asked, not the concept you first expected.

  5. Say the contrast in one sentence.

    Multiplied functions get the product rule; nested functions get the chain rule.

Answer

5x4+3x25x^4+3x^2

Takeaway: Multiplied functions get the product rule; nested functions get the chain rule.

Example 3 — Spot the trap: Outside derivative times inside derivative

Application

Problem

A student starts with this idea: "Forgetting the inner-derivative factor g(x)g'(x)" What should they check before accepting that reasoning?

Solution

  1. Pause before the first move.

    The first move is a decision, not a calculation — does the situation really match outside derivative times inside derivative.

  2. Run the recognition test: Is one function plugged into another, so I must multiply the outer derivative by the inner derivative?

    This is the single check that the trap skips.

  3. every composite contributes a multiply-by-the-inside step.

    Stating the safer rule turns the mistake into a checkable step instead of a vague "be careful."

  4. Compare with the nearest confusion, Product rule.

    Differentiates two functions multiplied together, not nested inside each other.

  5. State the corrected decision and reuse it.

    Using the concept only when the structure matches leaves a process the student can repeat on a new problem.

Answer

every composite contributes a multiply-by-the-inside step.

Takeaway: The recognition step prevents the common trap: Forgetting the inner-derivative factor g(x)g'(x)

Section 9

Common Mistakes

Common slip-up

Forgetting the inner-derivative factor g(x)g'(x)

The right idea

every composite contributes a multiply-by-the-inside step.

Common slip-up

Evaluating the outer derivative at xx instead of at g(x)g(x)

The right idea

ff' must be applied to the inner function, e.g. cos(x2)\cos(x^2) not cosx\cos x.

Common slip-up

Confusing nesting with multiplication

The right idea

sin(x2)\sin(x^2) is composite (chain rule) while x2sinxx^2\sin x is a product (product rule).

Practice

Try it, then see where this concept fits in the path.

Section 10

Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. What clue tells you this is a Chain Rule situation: Differentiate (x2+1)3(x^2+1)^3.

    Hint: Is one function plugged into another, so I must multiply the outer derivative by the inner derivative?

  2. Differentiate (x2+1)3(x^2+1)^3.

    Hint: Apply f(g(x))g(x)f'(g(x))\cdot g'(x): outer derivative 3(x2+1)23(x^2+1)^2 times inner derivative 2x2x.

  3. Why is this a contrast case instead of Chain Rule: Differentiate x3(x2+1)x^3\cdot(x^2+1).

    Hint: These are two functions multiplied, not one inside the other, so the product rule applies.

  4. Fix this thinking: Forgetting the inner-derivative factor g(x)g'(x)

    Hint: Name the recognition cue before choosing a rule.

  5. Which is the better fit here: Chain Rule or Product rule? Explain the deciding difference.

    Hint: For Chain Rule, ask: Is one function plugged into another, so I must multiply the outer derivative by the inner derivative?

  6. Write one sentence that would remind a classmate how to recognize Chain Rule.

    Hint: Use the mental model "Outside derivative times inside derivative." and one signal word.

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Section 11

Frequently Asked Questions

How do I know when to use Chain Rule?

Use Chain Rule when you are differentiating a composite where one function is plugged into another. Do not start from the numbers alone; first name the structure of the situation. The fastest check is: Is one function plugged into another, so I must multiply the outer derivative by the inner derivative? If the answer is yes and the wording matches cues like composite function, function inside a function, outer and inner, then chain rule is probably the right tool.

What is Chain Rule most often confused with?

Chain Rule is often confused with Product rule. Product rule means Differentiates two functions multiplied together, not nested inside each other. The difference is not just vocabulary; it changes the action you take. For chain rule, the key test is "Is one function plugged into another, so I must multiply the outer derivative by the inner derivative?" For product rule, the better cue is: Use when functions are multiplied side by side, like x2sinxx^2\sin x, not composed.

What is the fastest recognition cue for Chain Rule?

Look for composite function, function inside a function, outer and inner, nested, but treat those words as clues, not proof. A word problem can contain a familiar keyword and still ask for a different idea. After noticing the cue, ask the recognition question: Is one function plugged into another, so I must multiply the outer derivative by the inner derivative? That question protects you from using a memorized procedure in the wrong place.

What mistake should I avoid with Chain Rule?

Avoid this thinking: "Forgetting the inner-derivative factor g(x)g'(x)" That mistake usually happens when the student jumps to a rule before checking the situation. The safer version is: every composite contributes a multiply-by-the-inside step. A good habit is to say the mental model out loud first: "Outside derivative times inside derivative." Then choose the calculation or representation.

How can I tell this apart from Power rule alone?

Power rule alone is the better fit when the task is about this: Differentiates a power of xx but ignores any inner function. Chain Rule is the better fit when you are differentiating a composite where one function is plugged into another. If both ideas seem possible, compare what the problem wants as the final answer. The desired output often reveals whether you should use chain rule or switch to the nearby concept.

Why does Chain Rule matter?

Most real derivatives in physics and modeling are composites — cos(2t)\cos(2t), ekxe^{kx}, x2+1\sqrt{x^2+1} — so without the chain rule the differentiation rules cover almost nothing. The extra g(x)g'(x) factor is exactly what students forget, and it is the difference between a correct answer and one that's off by the inner rate. The practical value is recognition: once you can spot chain rule, you can choose a method before calculating. That makes later topics easier because you are not memorizing isolated tricks; you are recognizing the same structure when it appears in a new representation.

Section 12

Learning Path

Chain Rule

You are here

Next →

You're at the end!
Before this, students should be comfortable with Derivative and Function Composition. This page focuses on the recognition cue: Is one function plugged into another, so I must multiply the outer derivative by the inner derivative? That cue is the bridge between earlier skills and later problem solving: students first learn to identify the structure, then they learn which calculation, diagram, graph, or proof move belongs to it. After this, students can use chain rule as a tool in larger problems.

Section 13

See Also