Step by step
The question
Question: find dz/dt when z = x² + y³, x = 3t² and 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.
x²: the power 2 comes down.
The power goes down by 1.
So 2x.
y³ has no x: it is a fixed number, so it gives 0.
Drop the zeros: ∂z/∂x = 2x.
Term by term.
x² has no y: it is a fixed number, so it gives 0.
y³: the power 3 comes down.
The power goes down by 1.
So 3y².
Drop the zeros: ∂z/∂y = 3y².
x = 3t², so dx/dt = 6t.
y = 2t, so dy/dt = 2.
3 Use the chain rule
The chain rule: the x path plus the y path.
Put the four pieces in.
Careful!
Many people use only one path.
z changes through x and through y, so both paths count.
4 Write it in t
The answer should be in t only.
So put x = 3t² and y = 2t in.
Each x becomes 3t² and each y becomes 2t.
Multiply each part out: numbers with numbers, and add the powers of t.
So dz/dt = 36t³ + 24t².
5 Check
Let's check another way.
Put x and y in first: z = 9t⁴ + 8t³.
Its derivative is 36t³ + 24t².
The same answer.
Right!
Let's look back.
First: draw the tree.
Then: the pieces.
Then: use the chain rule.
Then: write it in t.
Last: check.