Up to this point, we have applied the Chain Rule to situations where we have a function
of variables
and
with both
and
depending on another single quantity
We may apply the Chain Rule, however, when
and
each depend on more than one quantity, or when
is a function of more than two variables. It can be challenging to keep track of all the dependencies among the variables, and thus a tree diagram can be a useful tool to organize our work. For example, suppose that
depends on
and
and
and
both depend on
We may represent these relationships using the tree diagram shown at left
Figure 2.4.3. We place the dependent variable at the top of the tree and connect it to the variables on which it depends one level below. We then connect each of those variables to the variable on which each depends.
To represent the Chain Rule, we label every edge of the diagram with the appropriate derivative or partial derivative, as seen at right in
Figure 2.4.3. To calculate an overall derivative according to the Chain Rule, we construct the product of the derivatives along all paths connecting the variables and then add all of these products. For example, the diagram at right in
Figure 2.4.3 illustrates the Chain Rule