Computing
Partial Derivatives
Learn how to differentiate multivariable functions with respect to one variable at a time, treating all others as constants.
What Is a Partial Derivative?
When a function depends on more than one variable, we often want to know how it changes when we adjust just one of those variables. A partial derivative measures the rate of change of \( f(x, y) \) with respect to one variable while holding all others constant.
Visualizing Partial Derivatives
Geometric idea: slice the surface with a plane where \( y \) is constant. The resulting curve's slope at any point is the partial derivative with respect to \( x \).
Why Partial Derivatives Matter
The Formal Definition
This is the limit definition: we nudge only \( x \) by \( h \), keep \( y \) fixed at \( b \), and see how \( f \) changes. The analogous definition for \( \frac{\partial f}{\partial y} \) nudges \( y \) instead.
The Practical Rule
Ordinary vs Partial Derivatives
| Ordinary \( \frac{df}{dx} \) | Partial \( \frac{\partial f}{\partial x} \) | |
|---|---|---|
| Variables | Single variable \( f(x) \) | Multiple variables \( f(x,y,\ldots) \) |
| Other vars | None to worry about | Held constant |
| Notation | \( f'(x),\; \frac{df}{dx} \) | \( f_x,\; \frac{\partial f}{\partial x} \) |
| Differentiation rules | Standard rules | Same rules, just freeze other vars |
Step-by-Step Method
Notation You Will See
Example 1: Polynomial
Example 2: Chain Rule
Example 3: Trigonometric
Higher-Order Partials
We can differentiate a partial derivative again. For \( f(x,y) \), the four second-order partial derivatives are:
Example: Second-Order Partials
Common Mistakes
Summary of Key Rules
| Function type | \( \frac{\partial}{\partial x} \) | \( \frac{\partial}{\partial y} \) |
|---|---|---|
| \( x^n y^m \) | \( n x^{n-1} y^m \) | \( m x^n y^{m-1} \) |
| \( e^{xy} \) | \( y\, e^{xy} \) | \( x\, e^{xy} \) |
| \( \sin(xy) \) | \( y \cos(xy) \) | \( x \cos(xy) \) |
| \( \ln(x^2+y) \) | \( \frac{2x}{x^2+y} \) | \( \frac{1}{x^2+y} \) |
Question 1 of 5
If \( f(x,y) = 4x^3 y^2 + 7x \), what is \( f_x \)?
Question 2 of 5
If \( g(x,y) = e^{2x + 3y} \), what is \( g_y \)?
Question 3 of 5
Let \( h(x,y) = x^2 \sin(y) \). What is \( h_{xy} \)?
Question 4 of 5
If \( f(x,y) = \ln(x^2 + y^2) \), what is \( f_x \)?
Question 5 of 5
For \( f(x,y,z) = xyz + z^2 \), what is \( \frac{\partial f}{\partial z} \)?