Steply

Chain rule with several variables

Calculus 3 · 20 problems, easy to harder

▶ Watch the first one solved

How we do it

  1. Draw the tree
  2. The pieces
  3. Use the chain rule
  4. Write it in t
  5. Check

The steps for z = x^2 y, x = t^2, y = 3t, find dz/dt. Every solution names its steps, so you always know what comes next.

Worked examples

z = x^2 y, x = t^2, y = 3t, find dz/dt Easy

The question

Question: find dz/dt when z = x²y, x = t² and y = 3t.

z = x2y, x = t², y = 3t

1 Draw the tree

Draw a tree.

z depends on x and y.

Each of them depends on t.

Each branch has its own slope.

To go from z down to t, there are two paths.

Multiply along each path, then add the paths.

2 The pieces

Term by term.

In x²y, y is fixed and waits in front.

x² gives 2x.

So 2xy.

So ∂z/∂x = 2xy.

∂z∂x = 2xy

Term by term.

In x²y, x² is fixed and waits in front.

y gives 1.

So x².

So ∂z/∂y = x².

∂z∂y = x2

x = t², so dx/dt = 2t.

dxdt = 2t

y = 3t, so dy/dt = 3.

dydt = 3

3 Use the chain rule

The chain rule: the x path plus the y path.

dzdt = ∂z∂x × dxdt + ∂z∂y × dydt

Put the four pieces in.

dzdt = (2xy) × (2t) + (x2) × (3)

Careful!

Many people use only one path.

z changes through x and through y, so both paths count.

Careful: two paths: add them

4 Write it in t

The answer should be in t only.

So put x = t² and y = 3t in.

x = t², y = 3t

Each x becomes t² and each y becomes 3t.

dzdt = 2(t2)(3t) × (2t) + (t2)2 × (3)

Multiply each part out: numbers with numbers, and add the powers of t.

dzdt = 12t4 + 3t4

Add the like terms: dz/dt = 15t⁴.

dzdt = 15t4

5 Check

Let's check another way.

Put x and y in first: z = 3t⁵.

z = 3t⁵

Its derivative is 15t⁴.

The same answer.

Right!

dzdt = 15t⁴

Let's look back.

First: draw the tree.

Then: the pieces.

Then: use the chain rule.

Then: write it in t.

Last: check.

Answer
dzdt = 15t4

▶ Watch it solved

z = x^2 + xy, x = t^2, y = t, find dz/dt Medium

The question

Question: find dz/dt when z = x² + xy, x = t² and y = t.

z = x2 + xy, x = t², y = t

1 Draw the tree

Draw a tree.

z depends on x and y.

Each of them depends on t.

Each branch has its own slope.

To go from z down to t, there are two paths.

Multiply along each path, then add the paths.

2 The pieces

Term by term.

x²: the power 2 comes down.

The power goes down by 1.

So 2x.

In xy, y is fixed and waits in front.

x gives 1.

So y.

So ∂z/∂x = 2x + y.

∂z∂x = 2x + y

Term by term.

x² has no y: it is a fixed number, so it gives 0.

In xy, x is fixed and waits in front.

y gives 1.

So x.

∂z∂y = 0 + x

Drop the zeros: ∂z/∂y = x.

∂z∂y = x

x = t², so dx/dt = 2t.

dxdt = 2t

y = t, so dy/dt = 1.

dydt = 1

3 Use the chain rule

The chain rule: the x path plus the y path.

dzdt = ∂z∂x × dxdt + ∂z∂y × dydt

Put the four pieces in.

dzdt = (2x + y) × (2t) + (x) × (1)

Careful!

Many people use only one path.

z changes through x and through y, so both paths count.

Careful: two paths: add them

4 Write it in t

The answer should be in t only.

So put x = t² and y = t in.

x = t², y = t

Each x becomes t² and each y becomes t.

dzdt = 2(t2) × (2t) + (t) × (2t) + (t2) × (1)

Multiply each part out: numbers with numbers, and add the powers of t.

dzdt = 4t3 + 2t2 + t2

Add the like terms: dz/dt = 4t³ + 3t².

dzdt = 4t3 + 3t2

5 Check

Let's check another way.

Put x and y in first: z = t⁴ + t³.

z = t⁴ + t³

Its derivative is 4t³ + 3t².

The same answer.

Right!

dzdt = 4t³ + 3t²

Let's look back.

First: draw the tree.

Then: the pieces.

Then: use the chain rule.

Then: write it in t.

Last: check.

Answer
dzdt = 4t3 + 3t2

▶ Watch it solved

z = x^2 y - y^2, x = 2t, y = t^3, find dz/dt Harder

The question

Question: find dz/dt when z = x²y − y², x = 2t and y = t³.

z = x2y − y2, x = 2t, y = t³

1 Draw the tree

Draw a tree.

z depends on x and y.

Each of them depends on t.

Each branch has its own slope.

To go from z down to t, there are two paths.

Multiply along each path, then add the paths.

2 The pieces

Term by term.

In x²y, y is fixed and waits in front.

x² gives 2x.

So 2xy.

y² has no x: it is a fixed number, so it gives 0.

∂z∂x = 2xy + 0

Drop the zeros: ∂z/∂x = 2xy.

∂z∂x = 2xy

Term by term.

In x²y, x² is fixed and waits in front.

y gives 1.

So x².

y²: the power 2 comes down: −1 times 2 is −2.

The power goes down by 1.

So 2y.

So ∂z/∂y = x² − 2y.

∂z∂y = x2 − 2y

x = 2t, so dx/dt = 2.

dxdt = 2

y = t³, so dy/dt = 3t².

dydt = 3t2

3 Use the chain rule

The chain rule: the x path plus the y path.

dzdt = ∂z∂x × dxdt + ∂z∂y × dydt

Put the four pieces in.

dzdt = (2xy) × (2) + (x2 − 2y) × (3t2)

Careful!

Many people use only one path.

z changes through x and through y, so both paths count.

Careful: two paths: add them

4 Write it in t

The answer should be in t only.

So put x = 2t and y = t³ in.

x = 2t, y = t³

Each x becomes 2t and each y becomes t³.

dzdt = 2(2t)(t3) × (2) + (2t)2 × (3t2) − 2(t3) × (3t2)

Multiply each part out: numbers with numbers, and add the powers of t.

dzdt = 8t4 + 12t4 − 6t5

Add the like terms: dz/dt = 20t⁴ − 6t⁵.

dzdt = 20t4 − 6t5

5 Check

Let's check another way.

Put x and y in first: z = 4t⁵ − t⁶.

z = 4t⁵ − t⁶

Its derivative is 20t⁴ − 6t⁵.

The same answer.

Right!

dzdt = 20t⁴ − 6t⁵

Let's look back.

First: draw the tree.

Then: the pieces.

Then: use the chain rule.

Then: write it in t.

Last: check.

Answer
dzdt = 20t4 − 6t5

▶ Watch it solved

Practice

Try each one, then open the answer. Stuck? Open the problem to watch every step.

Easy

  1. z = x^2 y, x = t^2, y = 3t, find dz/dt
    Answer
    dzdt = 15t4
  2. z = xy, x = 2t, y = t^2, find dz/dt
    Answer
    dzdt = 6t2
  3. z = x + y^2, x = t^3, y = 2t, find dz/dt
    Answer
    dzdt = 3t2 + 8t
  4. z = x^2 + y^2, x = t, y = 2t, find dz/dt
    Answer
    dzdt = 10t
  5. z = 3xy, x = t^2, y = t, find dz/dt
    Answer
    dzdt = 9t2
  6. z = x^2 - y, x = 2t, y = t^2, find dz/dt
    Answer
    dzdt = 6t

Medium

  1. z = x^2 + xy, x = t^2, y = t, find dz/dt
    Answer
    dzdt = 4t3 + 3t2
  2. z = 4xy, x = t^3, y = t, find dz/dt
    Answer
    dzdt = 16t3
  3. z = x^2 y + 2y, x = t, y = t^2, find dz/dt
    Answer
    dzdt = 4t3 + 4t
  4. find dz/dt if z = xy + y^2, x = 2t, y = t^3
    Answer
    dzdt = 8t3 + 6t5
  5. z = x^2 y^2, x = t, y = t^2, find dz/dt
    Answer
    dzdt = 6t5
  6. z = 2x^2 + 3xy, x = t^2, y = 2t, find dz/dt
    Answer
    dzdt = 8t3 + 18t2
  7. z = x^3 - xy, x = t, y = 4t^2, find dz/dt
    Answer
    dzdt = −9t2
  8. z = xy^2, x = 3t, y = t^2, find dz/dt
    Answer
    dzdt = 15t4
  9. z = x^2 + 4y, x = t^3, y = t^2, find dz/dt
    Answer
    dzdt = 6t5 + 8t

Harder

  1. z = x^2 y - y^2, x = 2t, y = t^3, find dz/dt
    Answer
    dzdt = 20t4 − 6t5
  2. z = 5xy + x^2, x = t^2, y = 3t, find dz/dt
    Answer
    dzdt = 45t2 + 4t3
  3. z = x^3 y, x = 2t, y = t^2, find dz/dt
    Answer
    dzdt = 40t4
  4. z = x^2 + y^3, x = 3t^2, y = 2t, find dz/dt
    Answer
    dzdt = 36t3 + 24t2
  5. z = 2xy - y^2, x = t^3, y = 2t, find dz/dt
    Answer
    dzdt = 16t3 − 8t