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 moreActivation 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 ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersDividing IntegersUnit RatesProportionsPercent ConceptConverting Between Fractions, Decimals, and PercentsOperations with Rational NumbersTwo-Step EquationsSolving Multi-Step EquationsEquations with Variables on Both SidesLiteral EquationsSlope-Intercept FormPoint-Slope FormWriting Linear EquationsParallel and Perpendicular Line SlopesGraphing Linear EquationsPiecewise FunctionsOne-Sided LimitsContinuity DefinitionLimit Definition of the DerivativePower RuleConstant Multiple and Sum/Difference RulesProduct RuleChain Rule

Longest path: 75 steps · 318 total prerequisite topics

Prerequisites (3)

Leads To (15)