Skip to content
  • Open the math solver
  • Ask the AI tutor
  • Find an AP course
  • Create a quiz
  • Open the calculator
  • Graphing Calculator
  • Browse all calculators
  • Read math guides
↑ ↓Enter to open · Esc to close
Solve a problem
CalculusMultivariable CalculusCollege

Partial Derivatives

Differentiate with respect to one variable while holding others constant.

A function of several variables, such as f(x,y)=x2y+3yf(x, y) = x^2 y + 3y, changes differently depending on which input you vary. The partial derivative ∂f∂x\frac{\partial f}{\partial x} measures the rate of change as xx varies with yy held fixed, and ∂f∂y\frac{\partial f}{\partial y} does the reverse. You compute them with the ordinary rules, treating the other variable as a constant.

Together the partial derivatives form the gradient ∇f=(fx,fy)\nabla f = \left(f_x, f_y\right), which points in the direction of steepest increase. Setting the gradient to zero finds critical points of surfaces, the starting point for optimisation in economics, physics and machine learning.

Key ideas

  • Hold every other variable constant and differentiate as usual.
  • Mixed partials fxyf_{xy} and fyxf_{yx} are equal for smooth functions.
  • The gradient is perpendicular to level curves.
  • Second derivative test: D=fxxfyy−fxy2D = f_{xx}f_{yy} - f_{xy}^2 classifies critical points.

Worked example

For f(x,y)=x2y+3y2−4xf(x, y) = x^2 y + 3y^2 - 4x, find fxf_x and fyf_y at (1,2)(1, 2).

  1. fx=2xy−4f_x = 2xy - 4, treating yy as constant.
  2. fy=x2+6yf_y = x^2 + 6y, treating xx as constant.
  3. At (1,2)(1, 2): fx=4−4=0f_x = 4 - 4 = 0.
  4. fy=1+12=13f_y = 1 + 12 = 13.

Answer: fx=0f_x = 0, fy=13f_y = 13

Common mistakes

  • Differentiating the held-constant variable as if it changed.
  • Dropping a term like x2yx^2 y entirely when differentiating with respect to yy; it becomes x2x^2.
  • Confusing the gradient vector with a single number.

Practice questions

Try each one, then open the answer. Numerical answers on this page are verified by an automated calculation check.

  1. 1.For f=3x2yf = 3x^2 y, find fxf_x at (1,4)(1, 4).

    Show answer

    2424

  2. 2.For f=xy3f = xy^3, find fyf_y at (2,1)(2, 1).

    Show answer

    66

  3. 3.For f=exyf = e^{x} y, find fxf_x at (0,5)(0, 5).

    Show answer

    55

Keep practising

More in Multivariable Calculus