01 / 21
\(\partial\) \(f\)

Partial
Derivatives

Learn to differentiate functions of multiple variables with respect to one variable at a time: the foundational tool of multivariable calculus.

Multivariable Calculus

What Is a Partial Derivative?

When a function depends on two or more variables, we can ask: how does the output change if we nudge just one input while holding the rest fixed? That rate of change is the partial derivative.

Geometric Intuition

slice at fixed \( y = y_0 \) slope = \( f_x \) surface \( z = f(x,y) \) \(x\) \(z\)

Why Do They Matter?

Gradient Vectors
The gradient \( \nabla f = \langle f_x, f_y \rangle \) points in the direction of steepest ascent.
Optimization
Setting all partial derivatives to zero finds critical points of multivariable functions.
Real-World Models
Physics, engineering, and economics use partials to analyze systems with many changing inputs.

The Formal Definition

Notice each limit is exactly the single-variable derivative definition: we increment one variable by \( h \) and hold the other fixed. All familiar differentiation rules (power, product, quotient, chain) apply to that variable.

Notation Guide

Notation Meaning Read as
\( \frac{\partial f}{\partial x} \) Partial of \( f \) w.r.t. \( x \) "partial f, partial x"
\( f_x \) or \( f_1 \) Subscript notation "f sub x"
\( D_x f \) Operator notation "D sub x of f"
\( \partial_x f \) Compact operator "partial x of f"

Partial vs. Ordinary Derivatives

Feature Ordinary \( \frac{df}{dx} \) Partial \( \frac{\partial f}{\partial x} \)
Input variables One: \( f(x) \) Two or more: \( f(x,y,\ldots) \)
Other variables N/A Held constant
Symbol \( d \) \( \partial \)
Chain rule \( \frac{df}{dt} \) Multi-branch: \( \frac{\partial f}{\partial x}\frac{dx}{dt} + \frac{\partial f}{\partial y}\frac{dy}{dt} \)

How to Compute Partials

1
Identify the target variable. Which variable are you differentiating with respect to?
2
Treat all other variables as constants. Mentally replace them with fixed letters like \( a, b, c \).
3
Differentiate normally. Apply the power rule, product rule, chain rule, etc., exactly as in single-variable calculus.
4
Simplify. Leave the result in terms of all original variables.

Example 1: Polynomial

Finding \( f_x \)
Treat \( y \) as constant:
\( \frac{\partial}{\partial x}(3x^2 y) = 6xy \)
\( \frac{\partial}{\partial x}(5xy^3) = 5y^3 \)
\( \frac{\partial}{\partial x}(-7y) = 0 \)
\( f_x = 6xy + 5y^3 \)
Finding \( f_y \)
Treat \( x \) as constant:
\( \frac{\partial}{\partial y}(3x^2 y) = 3x^2 \)
\( \frac{\partial}{\partial y}(5xy^3) = 15xy^2 \)
\( \frac{\partial}{\partial y}(-7y) = -7 \)
\( f_y = 3x^2 + 15xy^2 - 7 \)

Example 2: Exponential & Trig

Finding \( g_x \)
\( \sin(y) \) is constant w.r.t. \( x \).
Chain rule on \( e^{xy} \): derivative is \( y \cdot e^{xy} \).

\( g_x = y\, e^{xy}\sin(y) \)
Finding \( g_y \)
Product rule: \( u = e^{xy},\ v = \sin(y) \).
\( u_y = x\, e^{xy},\quad v_y = \cos(y) \)

\( g_y = x\, e^{xy}\sin(y) + e^{xy}\cos(y) \)

Example 3: Quotient Rule

1
Set numerator \( u = x^2 + y \), denominator \( v = x - y \).
2
Treating \( y \) as constant: \( u_x = 2x \), \( v_x = 1 \).
3
Quotient rule: \( h_x = \dfrac{v \cdot u_x - u \cdot v_x}{v^2} = \dfrac{(x-y)(2x) - (x^2+y)(1)}{(x-y)^2} \)
4
Simplify: \( h_x = \dfrac{x^2 - 2xy - y}{(x-y)^2} \)

Higher-Order Partials

Just as in single-variable calculus, we can differentiate again. A function of two variables has four second-order partial derivatives:

\( f_{xx} \)
\( \frac{\partial^2 f}{\partial x^2} \): differentiate w.r.t. \( x \) twice.
\( f_{yy} \)
\( \frac{\partial^2 f}{\partial y^2} \): differentiate w.r.t. \( y \) twice.
\( f_{xy} \)
\( \frac{\partial^2 f}{\partial y\, \partial x} \): first \( x \), then \( y \).
\( f_{yx} \)
\( \frac{\partial^2 f}{\partial x\, \partial y} \): first \( y \), then \( x \).

Clairaut's Theorem

This means that for "nice" functions (which includes all polynomials, trig, exponential, and logarithmic functions you encounter in this course), mixed partials are equal. You only need to compute one of \( f_{xy} \) or \( f_{yx} \).

Example: Second-Order Partials

1
First partials: \( f_x = 3x^2 + 2xy^2 \), \( f_y = 2x^2 y - 6y^2 \).
2
\( f_{xx} \) \( = \frac{\partial}{\partial x}(3x^2 + 2xy^2) = 6x + 2y^2 \)
3
\( f_{yy} \) \( = \frac{\partial}{\partial y}(2x^2 y - 6y^2) = 2x^2 - 12y \)
4
\( f_{xy} = f_{yx} \) \( = \frac{\partial}{\partial y}(3x^2 + 2xy^2) = 4xy \) ✓

Common Mistakes

✕ Differentiating the wrong variable
When finding \( f_x \), accidentally differentiating \( y \) terms instead of treating them as constants. Always label which variable you are targeting.
✕ Forgetting the chain rule
For \( e^{xy} \), the derivative w.r.t. \( x \) is \( y \cdot e^{xy} \), not just \( e^{xy} \). The inner function matters!
✕ Constants vanishing too early
A term like \( 5xy^3 \) is not constant w.r.t. \( x \): its \( x \)-derivative is \( 5y^3 \), not zero.

Quick Reference Table

Function \( f_x \) \( f_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} \)
\( \frac{x}{y} \) \( \frac{1}{y} \) \( -\frac{x}{y^2} \)

Question 1 of 5

If \( f(x,y) = 4x^3 y^2 - 2xy + 7 \), what is \( f_x \)?

Question 2 of 5

For \( g(x,y) = e^{2x+y} \), what is \( g_y \)?

Question 3 of 5

Let \( f(x,y) = x^2 y + 3y^2 \). What is the mixed partial \( f_{xy} \)?

Question 4 of 5

For \( h(x,y) = \sin(x^2 y) \), which expression gives \( h_x \)?

Question 5 of 5

Clairaut's theorem guarantees \( f_{xy} = f_{yx} \) when: