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

Chain Rule for Multivariable Functions

College Depth 78 in the knowledge graph ☐ I know this ☆ Set as goal
860topics build on this
336prerequisites beneath it
See this on the map →
Chain Rule for Multivariable Functions→→Implicit Differentiation in Several Variables
chain-rule composition derivatives

Core Idea

For z = f(x, y) where x = x(t) and y = y(t), the chain rule gives dz/dt = (∂f/∂x)(dx/dt) + (∂f/∂y)(dy/dt). For z = f(x, y) where x = x(s, t), the general case involves partial derivatives: ∂z/∂s and ∂z/∂t.

Explainer

In single-variable calculus, the chain rule says: if z = f(x) and x = g(t), then dz/dt = (dz/dx)(dx/dt). You can think of this as "the rate at which z changes with t equals the rate z changes with x, times the rate x changes with t" — a chain of rates multiplied together. The multivariable chain rule generalizes this, but with one crucial twist: when z depends on *multiple* intermediate variables, each one contributes its own chain, and you sum all the contributions.

Consider z = f(x, y) where both x and y depend on a parameter t — perhaps t is time and (x(t), y(t)) is the position of a moving particle. As t changes, both x and y change simultaneously, and both changes feed into z. The total rate of change is dz/dt = (∂f/∂x)(dx/dt) + (∂f/∂y)(dy/dt). The two terms are independent contributions: the first captures how much z changes due to x's movement, the second captures how much z changes due to y's movement. Because x and y change simultaneously, you *add* the contributions rather than multiply. This additive structure is the hallmark of the multivariable chain rule.

A useful visual aid is the dependency diagram: draw z at the top, with branches down to x and y (intermediate variables), and further branches from x and y down to t (the ultimate variable). Each path from z to t contributes one term: multiply the derivatives along that path, then sum across all paths. For ∂z/∂s when x = x(s,t) and y = y(s,t), there are two paths — through x and through y — giving ∂z/∂s = (∂f/∂x)(∂x/∂s) + (∂f/∂y)(∂y/∂s). Adding more intermediate or final variables just adds more branches to the diagram.

This formula is not just a computational trick — it captures how disturbances propagate through functional dependencies. In physics, if the temperature T(x, y, z) of a fluid depends on position, and a particle moves along a path (x(t), y(t), z(t)), then dT/dt = ∂T/∂x · ẋ + ∂T/∂y · ẏ + ∂T/∂z · ż — the material derivative. In optimization and machine learning, the chain rule (extended to vector form as the Jacobian product rule) is the foundation of backpropagation. Mastering the dependency-diagram approach now lets you handle compositions of any complexity by mechanically reading off the paths.

Practice Questions 5 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 → Limits and Continuity in Multiple Variables → Functions of Several Variables → Continuity in Multiple Variables → Partial Derivatives: Definition and Computation → Differentiability in Multiple Variables → Differentiability in Multivariable Functions → Total Differential and Linear Approximation → Chain Rule for Multivariable Functions → Chain Rule for Multivariable Functions

Longest path: 79 steps · 336 total prerequisite topics

Prerequisites (1)

Leads To (1)