Motivating Questions
- What is the Chain Rule and how do we use it to find a derivative?
- How can we use a tree diagram to guide us in applying the Chain Rule?
In single-variable calculus, we encountered situations in which some quantity depends on and, in turn, depends on A change in produces a change in which consequently produces a change in Using the language of differentials that we saw in the previous section, these changes are naturally related by
In terms of instantaneous rates of change, we then have
and thus
This most recent equation we call the Chain Rule.
In the case of a function of two variables where it might be that both and depend on another variable A change in then produces changes in both and which then cause to change. In this section we will see how to find the change in that is caused by a change in leading us to multivariable versions of the Chain Rule involving both regular and partial derivatives.
Preview Activity
Suppose you are driving around in the -plane in such a way that your position at time is given by function
The path taken is shown on the left of Figure .


Suppose, furthermore, that the temperature at a point in the plane is given by
and note that the surface generated by is shown on the right of Figure . Therefore, as time passes, your position changes, and, as your position changes, the temperature also changes.
- The position function provides a parameterization and of the position at time By substituting for and for in the formula for we can write as a function of Make these substitutions to write as a function of and then use the Chain Rule from single variable calculus to find (Do not do any algebra to simplify the derivative, either before taking the derivative, nor after.)
- Now we want to understand how the result from part (a) can be obtained from as a multivariable function. Recall from the previous section that small changes in and produce a change in that is approximated by
The Chain Rule tells us about the instantaneous rate of change of and this can be found as
Use Equation \ref{eq_PA_10_5_1} to explain why the instantaneous rate of change of that results from a change in is
- Using the original formulas for and in the problem statement, calculate all of the derivatives in Equation \ref{eq_PA_10_5_2} (with and in terms of and and and in terms of ), and hence write the right-hand side of Equation \ref{eq_PA_10_5_2} in terms of and
- Compare the results of parts (a) and (c). Write a couple of sentences that identify specifically how each term in (c) relates to a corresponding terms in (a). This connection between parts (a) and (c) provides a multivariable version of the Chain Rule.
As Preview Activity suggests, the following version of the Chain Rule holds in general.
Chain Rule
Let where is a differentiable function of the independent variables and and let and each be differentiable functions of an independent variable Then
It is important to note the differences among the derivatives in Equation \ref{E_10_5_chain_rule}. Since is a function of the two variables and the derivatives in the Chain Rule for with respect to and are partial derivatives. However, since and are functions of the single variable their derivatives are the standard derivatives of functions of one variable. When we compose with and we then have as a function of the single variable making the derivative of with respect to a standard derivative from single variable calculus as well.
To understand why this Chain Rule works in general, suppose that some quantity depends on and so that
Next, suppose that and each depend on another quantity so that
Combining Equations \ref{E_10_5_1} and \ref{E_10_5_2}, we find that
which is the Chain Rule in this particular context, as expressed in Equation \ref{E_10_5_chain_rule}.
Activity
In the following questions, we apply the Chain Rule in several different contexts.
- Suppose that we have a function defined by In addition, suppose that and are restricted to points that move around the plane by following a circle of radius centered at the origin that is parameterized by
- Use the Chain Rule to find the resulting instantaneous rate of change
- Substitute for and for in the rule for to write in terms of and calculate directly. Compare to the result of part (i.).
- Suppose that the temperature on a metal plate is given by the function with
where the temperature is measured in degrees Fahrenheit and and are each measured in feet.
- Find and What are the units on these partial derivatives?
- Suppose an ant is walking along the -axis at the rate of 2 feet per minute toward the origin. When the ant is at the point what is the instantaneous rate of change in the temperature that the ant experiences. Include units on your response.
- Suppose instead that the ant walks along an ellipse with and where is measured in minutes. Find at and What does this seem to tell you about the path along which the ant is walking?
- Suppose that you are walking along a surface whose elevation is given by a function Furthermore, suppose that if you consider how your location corresponds to points in the -plane, you know that when you pass the point your velocity vector is If some contours of are as shown in Figure , estimate the rate of change when you pass through

Tree Diagrams
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 . 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 above in Figure . 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 above in Figure illustrates the Chain Rule
Activity
- Figure shows the tree diagram we construct when (a) depends on and (b) and each depend on and and (c) and depend on
Figure . Three levels of dependencies
- Label the edges with the appropriate derivatives.
- Use the Chain Rule to write
- Suppose that and that
- Construct a tree diagram representing the dependencies of on and and and on and
- Use the tree diagram to find
- Now suppose that and Find the values of and that correspond to these given values of and and then use the Chain Rule to find the value of the partial derivative
Summary
- The Chain Rule is a tool for differentiating a composite for functions. In its simplest form, it says that if is a function of two variables and and depend on then
- A tree diagram can be used to represent the dependence of variables on other variables. By following the links in the tree diagram, we can form chains of partial derivatives or derivatives that can be combined to give a desired partial derivative.