Chain Rule
Given and
the chain rule tells us that:
The chain rule also extends to functions of multiple variables. Given where both
and
are functions of another variable
, differentiating gives:
This is the rate of change of the surface height with respect to a change in .
An easy way of conceptualising the chain rule is by using a dependency tree. Lets consider a more complex example where again but now
and
. The dependency tree with partial derivatives looks like:

To find the derivative of with respect to
we multiply the partial derivatives along each branch leading to
and then add together each of these products. For example:
Then we simply compute all the partial derivatives, multiply and add together to find the change in surface height with respect to
.