All articles
Mathematics
vector-calculus

Mastering Multivariable Calculus: Partial Derivatives and the Chain Rule

Unlock the power of multivariable calculus by mastering partial derivatives and the chain rule. This guide provides essential techniques for university-level mathematics.

Math Instructor AI 22 September 2026 8 min read

Mastering Multivariable Calculus: Partial Derivatives and the Chain Rule

In university-level mathematics, moving from single-variable calculus to multivariable calculus is a significant step. You are no longer restricted to functions of a single input; instead, you must navigate surfaces and fields where multiple variables interact simultaneously. Understanding partial derivatives and the multivariable chain rule is essential for success in your exams, as these concepts form the bedrock of vector calculus, optimisation, and physical modelling.

This article will guide you through the mechanics of differentiating functions of several variables and show you how to apply the chain rule when those variables are themselves dependent on other parameters. By the end, you will have the tools to tackle complex differentiation problems with confidence.

Understanding the Partial Derivative

A partial derivative measures how a function changes as one variable changes, while keeping all other variables constant. If we have a function $f(x, y)$, the partial derivative with respect to $x$, denoted as $\frac{\partial f}{\partial x}$ or $f_x$, treats $y$ as a constant. Similarly, $\frac{\partial f}{\partial y}$ or $f_y$ treats $x$ as a constant.

Think of this as taking a 'slice' of a 3D surface along a plane parallel to the $x$ or $y$ axis. You are essentially performing standard single-variable differentiation on a restricted view of the function.

The Chain Rule for One Independent Variable

When a function $z = f(x, y)$ depends on $x$ and $y$, and both $x$ and $y$ are functions of a single parameter $t$, we use the multivariable chain rule to find the total derivative $\frac{dz}{dt}$. The formula is:

$$\frac{dz}{dt} = \frac{\partial z}{\partial x} \frac{dx}{dt} + \frac{\partial z}{\partial y} \frac{dy}{dt}$$

This formula accounts for the change in $z$ contributed by both $x$ and $y$ as $t$ varies.

Worked Example 1

Let $z = x^2y + 3xy^4$, where $x = \sin(t)$ and $y = e^t$. Find $\frac{dz}{dt}$.

  1. Calculate partial derivatives: $\frac{\partial z}{\partial x} = 2xy + 3y^4$ and $\frac{\partial z}{\partial y} = x^2 + 12xy^3$.
  2. Calculate derivatives with respect to $t$: $\frac{dx}{dt} = \cos(t)$ and $\frac{dy}{dt} = e^t$.
  3. Substitute into the formula: $\frac{dz}{dt} = (2xy + 3y^4)\cos(t) + (x^2 + 12xy^3)e^t$.
  4. Substitute $x$ and $y$ in terms of $t$ to get the final expression.

The Chain Rule for Two Independent Variables

If $z = f(x, y)$ and both $x$ and $y$ are functions of two variables, say $s$ and $t$, we calculate partial derivatives with respect to $s$ and $t$ separately:

$$\frac{\partial z}{\partial s} = \frac{\partial z}{\partial x} \frac{\partial x}{\partial s} + \frac{\partial z}{\partial y} \frac{\partial y}{\partial s}$$ $$\frac{\partial z}{\partial t} = \frac{\partial z}{\partial x} \frac{\partial x}{\partial t} + \frac{\partial z}{\partial y} \frac{\partial y}{\partial t}$$

Worked Example 2

Let $z = x^2 + y^2$, where $x = s + t$ and $y = s - t$. Find $\frac{\partial z}{\partial s}$.

  1. Partial derivatives of $z$: $\frac{\partial z}{\partial x} = 2x$, $\frac{\partial z}{\partial y} = 2y$.
  2. Partial derivatives of $x, y$ with respect to $s$: $\frac{\partial x}{\partial s} = 1$, $\frac{\partial y}{\partial s} = 1$.
  3. Apply the formula: $\frac{\partial z}{\partial s} = (2x)(1) + (2y)(1) = 2(s+t) + 2(s-t) = 4s$.

Common Mistakes

  • Confusing partials with total derivatives: Always ensure you are using the correct notation. If you are differentiating a function of multiple variables with respect to one parameter, use the total derivative notation ($d/dt$).
  • Forgetting to substitute: Students often leave $x$ and $y$ in the final answer when the question asks for the derivative with respect to $t$. Ensure your final answer is in terms of the independent variable requested.
  • Incorrectly treating variables as constants: When calculating $\frac{\partial f}{\partial x}$, ensure you treat every term containing $y$ as a constant, even if it is multiplied by $x$.

Frequently Asked Questions

What is the difference between a partial derivative and a total derivative? A partial derivative measures change with respect to one variable while holding others fixed. A total derivative accounts for the change in the function resulting from changes in all variables simultaneously.

Do I need to use the Jacobian matrix? For simple functions, the standard chain rule formula is sufficient. However, for systems of equations or vector-valued functions, the Jacobian matrix provides a more systematic approach.

Why is the chain rule important in physics? It is vital for calculating rates of change in systems where variables are coupled, such as fluid dynamics or thermodynamics, where temperature and pressure might depend on spatial coordinates and time.

Conclusion

Mastering these techniques is a rite of passage for any mathematics student. By breaking down complex compositions into partial components, you can solve problems that initially appear daunting. To see these concepts in action with visual, narrated explanations, visit MathInstructor AI and generate a free animated lesson on this topic today.

Topics

partial derivative
multivariable calculus
chain rule
university maths
functions of two variables
vector-calculus
differentiation
total derivative

Want this explained out loud?

Turn any question into a narrated, animated lesson in seconds.

Try the Studio free