Study Guide915 words

The Multivariable Chain Rule: A Comprehensive Study Guide

The Chain Rule

The Multivariable Chain Rule: A Comprehensive Study Guide

This guide covers the extension of the single-variable Chain Rule to functions of several variables, focusing on intermediate and independent variables, the use of tree diagrams, and the generalized chain rule formula.


Learning Objectives

After studying this chapter, you should be able to:

  • State the chain rules for one or two independent variables.
  • Construct and interpret tree diagrams to visualize dependency paths.
  • Differentiate between intermediate and independent variables in a composite function.
  • Perform implicit differentiation of functions involving several variables.
  • Apply the generalized chain rule to functions with nn independent variables and mm intermediate variables.

Key Terms & Glossary

  • Independent Variable: The fundamental inputs at the "bottom" of the dependency chain (e.g., tt in x(t)x(t) or u,vu, v in x(u,v)x(u,v)).
  • Intermediate Variable: A variable that depends on others but is itself an input for a higher-level function (e.g., xx and yy in z=f(x,y)z = f(x,y) where xx and yy are functions of tt).
  • Composite Function: A function formed by substituting one function into another.
  • Partial Derivative: The derivative of a multivariable function with respect to one variable while holding others constant.
  • Total Derivative: The rate of change of a function with respect to an independent variable, accounting for all paths through intermediate variables.

The "Big Idea"

In single-variable calculus, the Chain Rule handles functions nested like Russian dolls: f(g(x))f(g(x)). In multivariable calculus, the nesting becomes a web. A change in an independent variable (like time tt) might affect multiple intermediate variables (like coordinates xx and yy), which in turn both affect the final output zz. The multivariable Chain Rule is essentially a way to sum the contributions of change from every possible path through that web.


Formula / Concept Box

CaseDependencyFormula
One Independent Variablez=f(x,y)z = f(x,y), where x=g(t),y=h(t)x=g(t), y=h(t)dzdt=zxdxdt+zydydt\frac{dz}{dt} = \frac{\partial z}{\partial x}\frac{dx}{dt} + \frac{\partial z}{\partial y}\frac{dy}{dt}
Two Independent Variablesz=f(x,y)z = f(x,y), where x=g(u,v),y=h(u,v)x=g(u,v), y=h(u,v)zu=zxxu+zyyu\frac{\partial z}{\partial u} = \frac{\partial z}{\partial x}\frac{\partial x}{\partial u} + \frac{\partial z}{\partial y}\frac{\partial y}{\partial u}
Generalized Casez=f(x1,...,xn)z = f(x_1, ..., x_n), xi=gi(t1,...,tm)x_i = g_i(t_1, ..., t_m)ztj=i=1nzxixitj\frac{\partial z}{\partial t_j} = \sum_{i=1}^{n} \frac{\partial z}{\partial x_i} \frac{\partial x_i}{\partial t_j}

[!IMPORTANT] Note the notation difference: If the final result depends on only one variable, we use dd (total derivative). If it depends on multiple variables, we use \partial (partial derivative).


Hierarchical Outline

  • I. Chain Rule for One Independent Variable
    • Dependency Path: t(x,y)zt \to (x, y) \to z
    • Summation Principle: Multiply derivatives along paths; add the paths together.
  • II. Chain Rule for Two Independent Variables
    • Independence: uu and vv are independent; changing uu does not change vv.
    • Partial Differentiation: We calculate zu\frac{\partial z}{\partial u} and zv\frac{\partial z}{\partial v} separately.
  • III. The Generalized Chain Rule
    • Dimensionality: Works for nn variables and mm parameters.
    • Matrix View: Can be represented as a product of Jacobian matrices.
  • IV. Implicit Differentiation Revisited
    • Using the Chain Rule to find dydx\frac{dy}{dx} for F(x,y)=0F(x,y) = 0.

Visual Anchors

Dependency Tree for One Independent Variable

This diagram shows how tt influences zz through two different intermediate paths.

Loading Diagram...
Figure 1 — Mermaid diagram

Dependency Tree for Two Independent Variables

When we have two independent variables (u,vu, v), we must follow paths to the specific variable of interest.

Loading Diagram...
Figure 2 — Mermaid diagram

Definition-Example Pairs

1. Total Derivative via Chain Rule

  • Definition: The derivative of a function with respect to an independent variable when all intermediate variables are also functions of that independent variable.
  • Example: If z=x2+y2z = x^2 + y^2 (a paraboloid) and a particle moves along a path x=sin(t),y=cos(t)x = \sin(t), y = \cos(t), the total derivative dzdt\frac{dz}{dt} tells us how the height of the particle changes over time.

2. Generalized Chain Rule Summation

  • Definition: For a function w=f(x,y,z)w = f(x, y, z), the rate of change with respect to an input uu is the sum of the partials of ww with respect to each coordinate, each multiplied by how that coordinate changes with uu.
  • Example: In a weather model where temperature TT depends on latitude, longitude, and altitude, and each of those depends on the time of day, the Chain Rule calculates the temperature change rate for a moving weather balloon.

Worked Examples

Example 1: One Independent Variable

Problem: Calculate dzdt\frac{dz}{dt} given z=x2yy2z = x^2y - y^2, where x=extsin(t)x = ext{sin}(t) and y=ety = e^t.

Step 1: Find necessary partials.

  • zx=2xy\frac{\partial z}{\partial x} = 2xy
  • zy=x22y\frac{\partial z}{\partial y} = x^2 - 2y
  • dxdt=cos(t)\frac{dx}{dt} = \cos(t)
  • dydt=et\frac{dy}{dt} = e^t

Step 2: Apply the Chain Rule formula. dzdt=(2xy)(cost)+(x22y)(et)\frac{dz}{dt} = (2xy)(\cos t) + (x^2 - 2y)(e^t)

Step 3: Substitute xx and yy back to get a function of tt. dzdt=2sin(t)etcos(t)+(sin2(t)2et)et\frac{dz}{dt} = 2\sin(t)e^t\cos(t) + (\sin^2(t) - 2e^t)e^t

Example 2: Two Independent Variables

Problem: Calculate zu\frac{\partial z}{\partial u} for z=x2+3xyz = x^2 + 3xy, where x=uvx = u \cdot v and y=u+vy = u + v.

Step 1: Identify components.

  • zx=2x+3y\frac{\partial z}{\partial x} = 2x + 3y
  • zy=3x\frac{\partial z}{\partial y} = 3x
  • xu=v\frac{\partial x}{\partial u} = v
  • yu=1\frac{\partial y}{\partial u} = 1

Step 2: Calculate. zu=(2x+3y)(v)+(3x)(1)\frac{\partial z}{\partial u} = (2x + 3y)(v) + (3x)(1) zu=(2uv+3(u+v))v+3uv=2uv2+3uv+3v2+3uv=2uv2+6uv+3v2\frac{\partial z}{\partial u} = (2uv + 3(u+v))v + 3uv = 2uv^2 + 3uv + 3v^2 + 3uv = 2uv^2 + 6uv + 3v^2


Checkpoint Questions

  1. Identify: In the dependency w=f(x,y,z)w = f(x, y, z) where x=g(r,s)x=g(r, s), y=h(r,s)y=h(r, s), and z=k(r,s)z=k(r, s), which variables are independent and which are intermediate?
  2. Logic: Why do we add the terms in the Chain Rule formula rather than multiplying the entire expression?
  3. Visualization: Draw a tree diagram for w=f(x,y)w = f(x, y) where x=g(u,v)x = g(u, v) and y=h(u,v)y = h(u, v). How many paths lead to vv?
  4. Application: If zz is a function of xx and yy, and xx and yy are functions of tt, what is the difference between zx\frac{\partial z}{\partial x} and dzdt\frac{dz}{dt}?
Click to view answers
  1. Independent: r,sr, s. Intermediate: x,y,zx, y, z.
  2. Because each intermediate variable provides an additive contribution to the total change of the output.
  3. Two paths lead to vv (one through xx, one through yy).
  4. zx\frac{\partial z}{\partial x} is the rate of change of zz as only xx changes; dzdt\frac{dz}{dt} is the total rate of change of zz as tt flows through both xx and yy.

Ready to study Calculus III: Multivariable Calculus?

Practice tests, flashcards, and all study notes — free, no sign-up needed.

Start Studying — Free