Steply

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

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 = 2xy − y², x = t³ and y = 2t.

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

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

x gives 1.

So 2y.

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

∂z∂x = 2y + 0

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

∂z∂x = 2y

Term by term.

In 2xy, 2x is fixed and waits in front.

y gives 1.

So 2x.

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

The power goes down by 1.

So 2y.

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

∂z∂y = 2x − 2y

x = t³, so dx/dt = 3t².

dxdt = 3t2

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

dydt = 2

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 = (2y) × (3t2) + (2x − 2y) × (2)

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 = 2t in.

x = t³, y = 2t

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

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

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

dzdt = 12t3 + 4t3 − 8t

Add the like terms: dz/dt = 16t³ − 8t.

dzdt = 16t3 − 8t

5 Check

Let's check another way.

Put x and y in first: z = 4t⁴ − 4t².

z = 4t⁴ − 4t²

Its derivative is 16t³ − 8t.

The same answer.

Right!

dzdt = 16t³ − 8t

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 = 16t3 − 8t

Your turn

Try this one yourself, then check:

Find z = 4xy − 2y2, x = t³, y = t
Show the answer
dzdt = 16t³ − 4t

More from Chain rule with several variables

The whole lesson: Chain rule with several variables →