The chain rule is a fundamental concept in calculus that allows us to compute derivatives of composite functions. While most students are familiar with the chain rule for single-variable functions, its extension to multivariable functions is essential in fields such as physics, engineering, and economics. This page explores the chain rule for functions of two and three variables, providing formulas, examples, and applications.
The chain rule for multivariable functions enables us to find how a function changes when its inputs change along some path in the input space. This is particularly useful when the inputs themselves are functions of another variable.
Consider a function $z = f(x,y)$ where both $x$ and $y$ depend on a single parameter $t$: $x = x(t)$ and $y = y(t)$. To find the rate of change of $z$ with respect to $t$, we use the chain rule for functions of two variables:
This formula tells us that the total derivative of $z$ with respect to $t$ is the sum of the partial derivatives of $f$ with respect to each variable, multiplied by the derivative of that variable with respect to $t$.
Let $z = x^2y + 3xy^2$, where $x = t^2 + 1$ and $y = t^3 - t$. Find $dz/dt$ at $t = 1$.
Tree diagram representing the chain rule for functions of two variables
Naturally, the chain rule extends to functions of three variables. Consider a function $w = f(x,y,z)$ where $x = x(t)$, $y = y(t)$, and $z = z(t)$. The chain rule in this case is:
This more complex formula accounts for the additional path through which $t$ influences $w$ via $z$.
Let $w = xyz + x^2 + y^2$, where $x = t$, $y = t^2$, and $z = t^3$. Find $dw/dt$ at $t = 2$.
Tree diagram representing the chain rule for functions of three variables
The chain rule for multivariable functions has numerous applications across various scientific disciplines:
In thermodynamics, we often need to find how state functions (like entropy or internal energy) change with respect to temperature or pressure. These state functions depend on multiple variables, making the multivariable chain rule essential for calculations.
In mechanics, the position or velocity of an object might depend on multiple parameters that themselves vary with time. The chain rule helps calculate how these quantities change over time.
In economics, profit or utility functions often depend on multiple variables which are themselves functions of time or policy parameters. The chain rule helps economists analyze how changing one variable affects overall outcomes.
The chain rule can be generalized further. If $w$ is a function of $n$ variables, $x_1, x_2, \ldots, x_n$, and each $x_i$ is a function of a single variable $t$, then:
This compact notation expresses the fundamental idea that the total derivative is the sum of the contributions from each path connecting $w$ to $t$.
Several special cases of the multivariable chain rule are worth noting:
Problem 1: Let $z = \sin(x) + \cos(y)$, where $x = t^2$ and $y = 3t$. Find $\frac{dz}{dt}$ at $t = \pi$.
Problem 2: Given $w = x^2y - yz^2 + zx$, where $x = \cos(t)$, $y = \sin(t)$, and $z = t$, evaluate $\frac{dw}{dt}$ at $t = 0$.
Problem 3: A company's profit $P$ depends on the prices of two products: $P(x,y) = 100x + 150y - x^2 - 2xy - y^2$. If $x = 10 + t$ and $y = 20 + 2t$, find the rate at which profit is changing with respect to time when $t = 1$.
The chain rule for functions of two and three variables extends the powerful concept of differentiation to multivariable contexts. By understanding how functions change along different paths in their input space, we can analyze complex systems where variables are interdependent. This mathematical tool is indispensable in fields as diverse as physics, engineering, economics, and computer science, where understanding the relationships between changing quantities is crucial for modeling and solving real-world problems.
The chain rule connects rates of change across different dimensions, providing a systematic approach to analyzing complex systems with interdependent variables. Mastering this concept opens the door to deeper understanding in multivariable calculus and its applications.
