Partial Derivatives Explained: A Guide to Multivariable Calculus
Partial derivatives extend the concept of differentiation to functions of more than one variable. Instead of finding how a function changes with respect to a single input, we look at how it changes with respect to one variable while keeping all other variables constant. This idea is central to multivariable calculus and has applications in physics, engineering, economics, and machine learning.
In this guide, we cover the definition of partial derivatives, notation, computation techniques, higher-order partial derivatives, and practical applications. By the end, you will be able to compute partial derivatives confidently and understand their geometric meaning.
What Is a Partial Derivative?
Suppose you have a function of two variables, . The partial derivative of with respect to measures how changes as changes, while is held fixed. Formally:
Similarly, the partial derivative with respect to holds constant:
The symbol (a curly d) distinguishes partial derivatives from ordinary derivatives. Other common notations include , , , and .
How to Compute Partial Derivatives
The key rule is simple: when differentiating with respect to one variable, treat every other variable as a constant. All the familiar derivative rules (power rule, product rule, quotient rule, chain rule) still apply.
Step-by-Step Process
- Identify which variable you are differentiating with respect to.
- Treat all other variables as constants (just like numbers).
- Apply the standard differentiation rules.
- Simplify the result.
Worked Examples
Example 1: A Polynomial Function
Find both partial derivatives of .
Partial derivative with respect to x: Treat as a constant.
The term becomes 0 (it is a constant with respect to ), and 7 also vanishes.
Partial derivative with respect to y: Treat as a constant.
Example 2: A Trigonometric Function
Find for .
Using the chain rule, with :
So .
Example 3: An Exponential Function
Let . Find both partial derivatives.
In each case, we differentiate the exponent with respect to the relevant variable and multiply by the exponential.
Example 4: A Quotient
Find for .
Using the quotient rule:
Higher-Order Partial Derivatives
Just as you can take second and third derivatives of single-variable functions, you can take higher-order partial derivatives. For a function , there are four second-order partial derivatives:
- (differentiate twice with respect to )
- (differentiate twice with respect to )
- (first with respect to , then )
- (first with respect to , then )
Clairaut's Theorem
If the mixed partial derivatives and are both continuous, then they are equal:
This is a powerful result that simplifies many calculations, as you only need to compute one of the mixed partials.
Example: Second-Order Partials
Let . First-order partials:
Second-order partials:
As expected by Clairaut's theorem, .
The Gradient Vector
The gradient of a function collects all partial derivatives into a vector:
The gradient points in the direction of steepest increase of , and its magnitude gives the rate of change in that direction. This concept is fundamental in optimisation and machine learning, where gradient descent uses the gradient to find minima of cost functions.
For three or more variables, the gradient extends naturally:
The Chain Rule for Partial Derivatives
When a multivariable function depends on variables that are themselves functions of other variables, the chain rule becomes essential. If where and , then:
This generalises to functions of multiple independent variables in a natural way.
Applications of Partial Derivatives
Optimisation
To find the critical points of , set both partial derivatives to zero:
The second derivative test uses the Hessian determinant to classify critical points as local maxima, local minima, or saddle points.
Physics and Engineering
Partial derivatives appear throughout physics. The heat equation, wave equation, and Laplace equation are all expressed using partial derivatives. For example, the two-dimensional Laplace equation is:
Economics
In economics, partial derivatives represent marginal effects. If a production function depends on labour and capital , then gives the marginal product of labour: how much additional output one more unit of labour produces, holding capital fixed.
Common Mistakes to Avoid
- Forgetting to hold other variables constant. When differentiating with respect to , every is treated as a number. Do not differentiate terms.
- Confusing notation. is not the same as . The curly d specifically indicates a partial derivative.
- Neglecting the chain rule. For compositions like , you must apply the chain rule when differentiating with respect to either variable.
- Assuming commutativity without checking continuity. While holds for most functions encountered in practice, it requires continuity of the mixed partials.
Try It Yourself
Compute partial derivatives instantly with our free Partial Derivative Calculator. Enter any multivariable function, choose the variable, and see the result step by step. You can also explore related tools like our Derivative Calculator for single-variable differentiation and our Integral Calculator for antiderivatives.
Related Articles
Understanding Integrals and Antiderivatives: A Complete Guide
Learn how integrals work, from basic antiderivatives to definite integrals. Covers the power rule for integration, substitution, and the Fundamental Theorem of Calculus.
Integration Techniques: A Practical Guide to Finding Antiderivatives
Learn the key integration techniques including substitution, integration by parts, partial fractions, and trigonometric substitution with worked examples.
ANOVA Explained: One-Way Analysis of Variance Guide
Learn how to perform one-way ANOVA to compare means across multiple groups. Covers the F-statistic, SS/MS calculations, assumptions, and post-hoc tests.