Steply

Find dz/dt if z = xy + y^2, x = 2t, y = t^3

Step by step, with the reason for every step · Chain rule with several variables · Calculus 3

Step by step

The question

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

z = xy + 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 xy, y is fixed and waits in front.

x gives 1.

So y.

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

∂z∂x = y + 0

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

∂z∂x = y

Term by term.

In xy, x is fixed and waits in front.

y gives 1.

So x.

y²: the power 2 comes down.

The power goes down by 1.

So 2y.

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

∂z∂y = x + 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 = (y) × (2) + (x + 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 = (t3) × (2) + (2t) × (3t2) + 2(t3) × (3t2)

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

dzdt = 2t3 + 6t3 + 6t5

Add the like terms: dz/dt = 8t³ + 6t⁵.

dzdt = 8t3 + 6t5

5 Check

Let's check another way.

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

z = 2t⁴ + t⁶

Its derivative is 8t³ + 6t⁵.

The same answer.

Right!

dzdt = 8t³ + 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 = 8t3 + 6t5

Your turn

Try this one yourself, then check:

Find z = xy + 2y2, x = 3t, y = t³
Show the answer
dzdt = 12t³ + 12t⁵

More from Chain rule with several variables

The whole lesson: Chain rule with several variables →