Fiveable

Calculus IV Unit 3 Review

QR code for Calculus IV practice questions

3.1 Definition and computation of partial derivatives

3.1 Definition and computation of partial derivatives

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
Calculus IV
Unit & Topic Study Guides

Partial Derivatives and Multivariable Functions

Partial derivatives let you isolate how a multivariable function changes with respect to one variable while holding everything else constant. They're the foundation for nearly everything else in Calculus IV: tangent planes, optimization, gradient fields, and more.

Definition and Notation of Partial Derivatives

A multivariable function depends on two or more independent variables. For example, f(x,y)=x2+y2f(x, y) = x^2 + y^2 takes in two inputs and returns a single output.

A partial derivative measures the rate of change of such a function with respect to one variable, treating all other variables as constants. Think of it this way: if you're standing on a surface z=f(x,y)z = f(x, y) and you walk purely in the xx-direction, the partial derivative fx\frac{\partial f}{\partial x} tells you how steeply the surface rises or falls along that path.

The symbol \partial (as opposed to dd) signals that other variables are being held fixed. Common notations you'll see:

  • fx\frac{\partial f}{\partial x} or fxf_x for the partial derivative with respect to xx
  • fy\frac{\partial f}{\partial y} or fyf_y for the partial derivative with respect to yy

The formal limit definition mirrors single-variable calculus:

fx(a,b)=limh0f(a+h,b)f(a,b)hf_x(a, b) = \lim_{h \to 0} \frac{f(a + h,\, b) - f(a, b)}{h}

Notice only the xx-input changes; yy stays at bb.

Computing Partial Derivatives

The mechanics are straightforward: differentiate with respect to your target variable using all the standard rules (power, product, chain, trig, etc.), and treat every other variable as if it were a constant number.

Step-by-step process:

  1. Identify which variable you're differentiating with respect to.
  2. Mentally replace every other variable with a constant (some students find it helpful to literally substitute a letter like kk for the held-fixed variable while computing).
  3. Differentiate using the usual single-variable rules.
  4. Substitute the original variable names back in if you replaced them.

Example 1: Let f(x,y)=x2yf(x, y) = x^2 y.

  • For fx\frac{\partial f}{\partial x}: treat yy as a constant. You're differentiating yx2y \cdot x^2, which gives 2xy2xy.
  • For fy\frac{\partial f}{\partial y}: treat xx as a constant. You're differentiating x2yx^2 \cdot y, which gives x2x^2.

Example 2: Let f(x,y)=x3+2xy+sin(y)f(x, y) = x^3 + 2xy + \sin(y).

  • fx=3x2+2y\frac{\partial f}{\partial x} = 3x^2 + 2y (the sin(y)\sin(y) term is a constant with respect to xx, so it vanishes)
  • fy=2x+cos(y)\frac{\partial f}{\partial y} = 2x + \cos(y) (the x3x^3 term vanishes since it's constant with respect to yy)

A common early mistake is forgetting to zero out terms that don't involve your target variable. If a term has no xx in it, its partial derivative with respect to xx is zero.

Definition and Notation of Partial Derivatives, Multivariable Calculus - Wikiversity

Higher-Order Partial Derivatives

Just as in single-variable calculus, you can differentiate again. Second-order partial derivatives come in two flavors:

  • Unmixed: differentiate twice with respect to the same variable, e.g., fxx=2fx2f_{xx} = \frac{\partial^2 f}{\partial x^2}
  • Mixed: differentiate with respect to different variables, e.g., fxy=2fyxf_{xy} = \frac{\partial^2 f}{\partial y \, \partial x}

Be careful with the notation for mixed partials. In 2fyx\frac{\partial^2 f}{\partial y \, \partial x}, you differentiate with respect to xx first, then with respect to yy (right to left). In subscript notation fxyf_{xy}, you go left to right: xx first, then yy. These conventions are opposite, which trips people up.

Clairaut's Theorem and Mixed Partial Derivatives

Clairaut's theorem says: if fxyf_{xy} and fyxf_{yx} are both continuous near a point, then fxy=fyxf_{xy} = f_{yx} at that point. In practice, this means the order of differentiation doesn't matter for the vast majority of functions you'll encounter in this course.

Example: Let f(x,y)=x2y+xy2f(x, y) = x^2y + xy^2.

  1. Compute fx=2xy+y2f_x = 2xy + y^2, then fxy=y(2xy+y2)=2x+2yf_{xy} = \frac{\partial}{\partial y}(2xy + y^2) = 2x + 2y.
  2. Compute fy=x2+2xyf_y = x^2 + 2xy, then fyx=x(x2+2xy)=2x+2yf_{yx} = \frac{\partial}{\partial x}(x^2 + 2xy) = 2x + 2y.

Both mixed partials equal 2x+2y2x + 2y, confirming Clairaut's theorem. If you ever compute them and get different results, check your algebra first.

Definition and Notation of Partial Derivatives, multivariable calculus - Definition of partial derivatives from Rudin's PMA - Mathematics Stack ...

Geometric Interpretation

Tangent Planes and Directional Derivatives

Partial derivatives have a clean geometric meaning. The partial derivative fx(a,b)f_x(a, b) is the slope of the curve you get by slicing the surface z=f(x,y)z = f(x, y) with the plane y=by = b. Similarly, fy(a,b)f_y(a, b) is the slope of the slice at x=ax = a. Together, these two slopes determine the tangent plane at a point.

The equation of the tangent plane to z=f(x,y)z = f(x, y) at the point (a,b,f(a,b))(a, b, f(a, b)) is:

zf(a,b)=fx(a,b)(xa)+fy(a,b)(yb)z - f(a, b) = f_x(a, b)(x - a) + f_y(a, b)(y - b)

This is the best linear approximation to the surface near that point, and it generalizes the tangent line from Calc I.

The directional derivative extends partial derivatives beyond just the xx- and yy-directions. It measures the rate of change of ff at (a,b)(a, b) in the direction of any unit vector u=u1,u2\vec{u} = \langle u_1, u_2 \rangle:

Duf(a,b)=fx(a,b)u1+fy(a,b)u2D_{\vec{u}}f(a, b) = f_x(a, b)\, u_1 + f_y(a, b)\, u_2

Note that u\vec{u} must be a unit vector. If you're given a direction that isn't unit length, normalize it first.

The gradient vector f(a,b)=fx(a,b),fy(a,b)\nabla f(a, b) = \langle f_x(a, b),\, f_y(a, b) \rangle packages both partial derivatives into a single vector. Two key facts about the gradient:

  • It points in the direction of the greatest rate of increase of ff.
  • It's perpendicular to the level curves of ff at that point.

Example: For f(x,y)=x2+y2f(x, y) = x^2 + y^2, the gradient at (a,b)(a, b) is f=2a,2b\nabla f = \langle 2a, 2b \rangle. The level curves are circles centered at the origin, and f\nabla f points radially outward, perpendicular to those circles, exactly as expected.