Linear Algebra
11.210 min read

Partial Derivatives

The partial derivative of f(x1,,xn)f(x_1, \ldots, x_n) with respect to xix_i measures the rate of change of ff when xix_i changes and all other variables are held fixed. It is computed exactly like a one-variable derivative — treating every variable except xix_i as a constant.

For a function f:R2Rf: \mathbb{R}^2 \to \mathbb{R}, the partial derivative with respect to xx at point (a,b)(a, b) is: fx(a,b)=limh0f(a+h,b)f(a,b)h\frac{\partial f}{\partial x}(a, b) = \lim_{h \to 0} \frac{f(a+h, b) - f(a, b)}{h} This is simply the ordinary derivative of the single-variable function g(x)=f(x,b)g(x) = f(x, b).

Geometrically, f/x\partial f / \partial x at (a,b)(a,b) is the slope of the tangent line to the curve obtained by slicing the surface z=f(x,y)z = f(x,y) with the plane y=by = b. Each partial derivative gives information in one coordinate direction only.

Formal View

Definition 11.3 — Partial Derivative
Let f:DRnRf: D \subseteq \mathbb{R}^n \to \mathbb{R}. The partial derivative of $f$ with respect to $x_i$ at aD\mathbf{a} \in D is
fxi(a)=limh0f(a+hei)f(a)h\frac{\partial f}{\partial x_i}(\mathbf{a}) = \lim_{h \to 0} \frac{f(\mathbf{a} + h\mathbf{e}_i) - f(\mathbf{a})}{h}
where ei\mathbf{e}_i is the ii-th standard basis vector, provided this limit exists.

Also written fxi(a)f_{x_i}(\mathbf{a}), if(a)\partial_i f(\mathbf{a}), or Dif(a)D_i f(\mathbf{a}).

Interactive Visualization

Partial Derivatives Explorer

Why This Matters

Partial derivatives are the building block of all multivariable calculus — gradients, Jacobians, and Hessians are all assembled from them.

  • Computing gradient vectors for optimization
  • Sensitivity analysis: how much does output change when one input changes slightly?
  • Partial differential equations (heat equation, wave equation) use partial derivatives to model physical phenomena

Quiz

Question 1

Let f(x,y)=x3y+2y2f(x,y) = x^3 y + 2y^2. What is fy\frac{\partial f}{\partial y}?

Question 2

If both partial derivatives f/x\partial f/\partial x and f/y\partial f/\partial y exist at a point, then ff is differentiable at that point.

Common Mistakes

  • Forgetting to treat all other variables as constants when differentiating — partial derivatives are single-variable derivatives in disguise.
  • Concluding differentiability from existence of partials — existence of all partial derivatives is necessary but not sufficient for differentiability.
  • Mixing up f/x\partial f / \partial x (partial) with df/dxdf/dx (total) — they are only equal when ff has no other variable dependencies.