 
 
 
 
 
   
The chain rule should be familiar from one variable calculus. It's a way of determining the derivative of a function with respect to a variable when that variable depends on another variable and so on. Suppose that V(r) gives the volume of a spherical balloon based on its radius, r. Now, if the balloon is being inflated, r is also a function of time, r(t). Thus, indirectly, V is also a function of t: V(r(t)). To find dV/dt we simply string together all the derivatives which connect V to t:

The same chain of functional dependencies can happen in multivariable
calculus.  One common example is as follows.  Let f(x,y) be a function of
two variables.  In polar coordinates,  .  Thus, the function f depends on both r and
.  Thus, the function f depends on both r and  indirectly.  To compute
indirectly.  To compute  or
 or  we need to
include all of the possible dependencies:
 we need to
include all of the possible dependencies:

 .  No
matter how complicated the dependence, this should always happen, even
though it's not technically accurate to cancel the common factors in such
an expression.  Further,
.  No
matter how complicated the dependence, this should always happen, even
though it's not technically accurate to cancel the common factors in such
an expression.  Further,

Let's try a more complex example. Suppose we have a function of three variables: w = w(x,y,z). Now, suppose x, y, and z all depend on the two variable s and t. That is, x = x(s,t), y = y(s,t), and z = z(s,t). Further, suppose that s = s(u,v) and t = t(u,v). What are dw/du and dw/dv?
To answer this, it's easiest to use a sort of tree diagram. Each level of the tree is one level of functions. The branches that feed into each node show how that variable depends on the variables below it. To construct the correct chain of derivatives, start at the top of the tree. The first factor of the first term is the derivative of the variable at the top level with respect to the variable at the next level down. The next factor in the first term is the derivative formed from the next level and so on. Once you get down to the variable you need, stop, and start at the top forming the second term by branching down appropriately.
 
In this example, we see that


As you can no doubt see, it is easy for this to become quite complicated. The tree diagram will help you straighten out what is happening.
 
 
 
 
