Step by step
The question
Question: find dz/dt when z = x²y, x = t² and 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.
Term by term.
In x²y, x² is fixed and waits in front.
y gives 1.
So x².
So ∂z/∂y = x².
x = t², so dx/dt = 2t.
y = 3t, so dy/dt = 3.
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 = t² and y = 3t in.
Each x becomes t² and each y becomes 3t.
Multiply each part out: numbers with numbers, and add the powers of t.
Add the like terms: dz/dt = 15t⁴.
5 Check
Let's check another way.
Put x and y in first: z = 3t⁵.
Its derivative is 15t⁴.
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.