Multivariable Chain Rule Explained with Worked Examples

If with and , then .

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

What Multivariable chain rule means

A change in affects through both and . Add the contributions from each path: the sensitivity of to times the rate at which changes, plus the same for .

For several parameters, use partial derivatives with respect to each.

It underlies change of variables in integration and the derivation of the Jacobian. It generalises the chain rule, is closely related to the total differential, and the changes of coordinates use the Jacobian.

This page is part of Multivariable calculus in Calculus. Topics that work alongside it: Chain rule, Total differential, Jacobian for a change of variables, Gradient and directional derivative, Cylindrical coordinates and Spherical coordinates.

What is it used for?

The multivariable chain rule gives the rate of change of f(x, y) along a path where x and y depend on t: df/dt = fₓ dx/dt + fᵧ dy/dt.

How to use multivariable chain rule

  1. Find and .
  2. Find and .
  3. Multiply and add.
  4. Substitute to write in terms of .

Graph

z = xy with x = t², y = t³: z = t⁵ and dz/dt = 5t⁴dz/dt at t = 1: 500.20.40.60.811.21.402468z = xy with x = t², y = t³: z = t⁵ and dz/dt = 5t⁴tvaluez = t^5dz/dt = 5t^4Graph with x from 0 to 1.5 and y from 0 to 9. Shows the curve z = t^5; the curve dz/dt = 5t^4; point dz/dt at t = 1: 5 at (1, 5).

The chain rule gives the same result as substituting first.

Worked examples

These examples are worked by hand, step by step, so you can compare your own working.

Example 1: z = x²y

Find for with , , at .

Worked example
Answer
4t34t^{3}
  1. Partial derivatives
  2. Derivatives with respect to t
  3. Apply the chain rule
  4. At t = 1

Example 2: z = xy

Find for with , at .

Worked example Answer checked
Answer
55
  1. Chain rule
  2. Substitute t = 1 (x = 1, y = 1)
  3. Check
    z = t⁵, so dz/dt = 5t⁴ = 5.

Example 3: z = e^(xy)

Find for with , at .

Worked example
Answer
3e3e
  1. Chain rule
  2. Substitute t = 1 (x = 1, y = 1)

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

z = x²y, x = t², y = t³

dz/dt = 2xy·2t + x²·3t² = 7t⁶

t = 1: 7.

t = 2

7 × 64

448.

z = x² + y², x = cos t, y = sin t

2x(−sin t) + 2y cos t

0.

z = xy, x = eᵗ, y = sin t, t = 0

y eᵗ + x cos t

1.

Word problems

If z = f(x, y) with x = x(t), y = y(t), then dz/dt = f_x dx/dt + f_y dy/dt. Substitute the point after differentiating.

At t = 1

z = x²y, x = t², y = t³: dz/dt = 7t⁶. Find it at t = 1.

  1. 7
  2. Check: ✓7

At t = 2

Find 7t⁶ at t = 2.

  1. 7 × 64
  2. Check: ✓448

A circle path Higher

z = x² + y² along the unit circle. Find dz/dt at t = 1.

  1. 0
  2. Check: z is constant ✓0

Exponential path Higher

z = xy, x = eᵗ, y = sin t: dz/dt at t = 0.

  1. 0 + 1
  2. Check: ✓1

Common mistakes

Forgetting one term

f_x dx/dt only ✗

add f_y dy/dt ✓

Both paths.

Evaluating before differentiating

plug t first ✗

differentiate then substitute ✓

Order.

Using ordinary d for partials

dz/dx ✗

∂z/∂x ✓

Notation.

Wrong inner derivative

dx/dt = t ✗

dx/dt = 2t ✓

Differentiate carefully.

Exam tips

  1. dz/dt = f_x x′ + f_y y′.
  2. Both terms.
  3. Substitute x(t), y(t).
  4. Check by direct substitution.
  5. Tree diagram.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. z = xy, x = t, y = t²: dz/dt at t = 2 (y + 2xt) Foundation

12

2. z = x² + y², x = t, y = 2t: dz/dt at t = 1 Foundation

10

3. z = x²y, x = t, y = 1: dz/dt at t = 3 Foundation

6

4. z = eˣʸ, x = t, y = t: dz/dt at t = 0 Higher

0

5. z = x + y², x = t², y = t: dz/dt at t = 2 Higher

8

6. z = xy, x = cos t, y = sin t: dz/dt at t = 0 Higher

1

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Multivariable chain rule
dz/dt = f_x x′ + f_y y′.
Partial derivative
f_x, f_y.
Parametrisation
x(t), y(t).
Total derivative
dz/dt.
Composite function
f(x(t), y(t)).
Tree diagram
Dependency picture.

Frequently asked questions

What is the multivariable chain rule?

dz/dt = (∂f/∂x)(dx/dt) + (∂f/∂y)(dy/dt).

Do I need both terms?

Yes, z depends on t through x and y.

How can I check?

Substitute x(t), y(t) and differentiate.

What is dz/dt along a circle for x² + y²?

0.

Which page covers the total differential?

total differential.

Which page covers the Hessian?

Hessian and second derivative test.

More in Calculus and the formula sheets.