A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Chain Rule

College Depth 74 in the knowledge graph ☐ I know this ☆ Set as goal
6,507topics build on this
318prerequisites beneath it
See this on the map →
Composition of FunctionsComposition of Functions — Advanced+1 more→→Activation Functions in Neural NetworksBackpropagation Algorithm+13 more
derivatives rules chain-rule composition

Core Idea

The chain rule states that if y = f(g(x)), then dy/dx = f'(g(x)) * g'(x). In Leibniz notation: if y = f(u) and u = g(x), then dy/dx = (dy/du)(du/dx). You differentiate the outer function evaluated at the inner function, then multiply by the derivative of the inner function. The chain rule is arguably the most important derivative rule because composite functions appear everywhere.

How It's Best Learned

Start with clear identification of the "outer" and "inner" functions. Practice with simple compositions like (3x + 1)5, sin(x2), e2x. Build up to multi-layer compositions (chain rule applied multiple times). Connect to u-substitution in integration (the chain rule in reverse).

Common Misconceptions

Explainer

The chain rule solves one specific problem: how do you differentiate a function that is nested inside another function? You already know how to differentiate sin(x), and you know how to differentiate x². But what about sin(x²)? That is a composite function — x² goes in first, then sin is applied to the result — and it requires the chain rule.

The key step is identifying which function is the "outer" (applied last) and which is the "inner" (applied first). In sin(x²), the outer function is sin(·) and the inner is x². In e3x+1, the outer is e· and the inner is 3x+1. In (x² + 4)⁵, the outer is (·)⁵ and the inner is x² + 4. Once you have these, the chain rule says: differentiate the outer function (treating the inner as a single variable), evaluate it at the inner function, and multiply by the derivative of the inner function. Written as a formula: if h(x) = f(g(x)), then h'(x) = f'(g(x)) · g'(x).

The most common error is differentiating the outer and forgetting to multiply by the inner derivative. For (3x + 1)⁵, the outer derivative gives 5(3x + 1)⁴ — but without the inner derivative (3), the answer is incomplete. Every composite function "costs" a factor of the inner derivative. If the inner function is just x, its derivative is 1 and that factor is invisible, which is why you didn't need the chain rule for sin(x) — the "inner function" is x, g'(x) = 1.

The Leibniz notation dy/dx = (dy/du)(du/dx) makes the chain rule feel almost like fraction cancellation: the "du" terms appear to cancel, leaving dy/dx. This is not exactly why it works (du is not literally a number you can cancel), but the notation is designed to make the structure intuitive. If y depends on u and u depends on x, the rate of change of y with respect to x is the product of the rates.

Recognizing when the chain rule is needed takes practice. The trigger is composition: any time you can describe a function as "do this to the result of that," you need the chain rule. As you encounter integration, you will find that u-substitution is the chain rule in reverse — you are "undoing" a chain rule structure to simplify an integral. Building a clear mental model of composite functions now will make u-substitution much more intuitive when you reach it.

Practice Questions 3 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Dividing Integers → Unit Rates → Proportions → Percent Concept → Converting Between Fractions, Decimals, and Percents → Operations with Rational Numbers → Two-Step Equations → Solving Multi-Step Equations → Equations with Variables on Both Sides → Literal Equations → Slope-Intercept Form → Point-Slope Form → Writing Linear Equations → Parallel and Perpendicular Line Slopes → Graphing Linear Equations → Piecewise Functions → One-Sided Limits → Continuity Definition → Limit Definition of the Derivative → Power Rule → Constant Multiple and Sum/Difference Rules → Product Rule → Chain Rule

Longest path: 75 steps · 318 total prerequisite topics

Prerequisites (3)

Leads To (15)