Steply

z = 2x^2 + 3xy, x = t^2, 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 = 2x² + 3xy, x = t² and y = 2t.

z = 2x2 + 3xy, 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.

2x²: the power 2 comes down: 2 times 2 is 4.

The power goes down by 1.

So 4x.

In 3xy, 3y is fixed and waits in front.

x gives 1.

So 3y.

So ∂z/∂x = 4x + 3y.

∂z∂x = 4x + 3y

Term by term.

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

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

y gives 1.

So 3x.

∂z∂y = 0 + 3x

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

∂z∂y = 3x

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

dxdt = 2t

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

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

dzdt = 8t3 + 12t2 + 6t2

Add the like terms: dz/dt = 8t³ + 18t².

dzdt = 8t3 + 18t2

5 Check

Let's check another way.

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

z = 2t⁴ + 6t³

Its derivative is 8t³ + 18t².

The same answer.

Right!

dzdt = 8t³ + 18t²

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 + 18t2

Your turn

Try this one yourself, then check:

Find z = 3x2 + 4xy, x = t², y = t
Show the answer
dzdt = 12t³ + 12t²

More from Chain rule with several variables

The whole lesson: Chain rule with several variables →