Math & Science

Partial Derivative Calculator 2026

Free · No signup
df/dx and df/dy
Step-by-step work
How to use: Enter each term as coefficient, x-exponent, y-exponent. For f(x,y) = 3x²y + 2xy³ + 5y², enter three rows: (3, 2, 1), (2, 1, 3), (5, 0, 2).
Enter f(x, y) TermsFree · No signup
Coefficient
x exponent
y exponent

How Partial Derivatives Are Calculated

For a multivariable polynomial, each partial derivative treats all other variables as constants. This calculator differentiates each term with respect to x (holding y constant) and with respect to y (holding x constant) using the power rule.

For term: c * x^a * y^b
d/dx = c * a * x^(a-1) * y^b   (y is constant)
d/dy = c * b * x^a * y^(b-1)   (x is constant)
If a = 0: term is constant w.r.t. x, so d/dx = 0
If b = 0: term is constant w.r.t. y, so d/dy = 0

Partial differentiation and integration are inverse operations in the same sense that ordinary differentiation and integration are. For computing the integral (antiderivative) of a single-variable function, see the Antiderivative Calculator.

Partial Derivative Symbol: Notation and LaTeX

The partial derivative uses the symbol ∂ (Unicode U+2202), called the curly d or Jacobi symbol, to distinguish partial from ordinary derivatives. There are two common notations for partial derivatives.

Notation StyleWritten FormMeaningLaTeX Code
Leibniz (fraction)df/dxPartial derivative of f with respect to x\frac{\partial f}{\partial x}
Leibniz (fraction)df/dyPartial derivative of f with respect to y\frac{\partial f}{\partial y}
Subscriptf_xPartial derivative of f with respect to xf_x
Subscriptf_yPartial derivative of f with respect to yf_y
Second orderd^2f/dx^2Second partial derivative w.r.t. x twice\frac{\partial^2 f}{\partial x^2}
Mixedd^2f/dxdyFirst diff w.r.t. y, then w.r.t. x\frac{\partial^2 f}{\partial x \partial y}

In typed mathematics and homework, f_x and f_y (subscript notation) are often faster to write than the full Leibniz fraction. Both notations are accepted on exams. The ∂ symbol can be inserted in Microsoft Word with the Symbol menu, in LaTeX as \partial, or typed directly on macOS with Option+D in some applications.

Chain Rule for Partial Derivatives

When a multivariable function depends on variables that are themselves functions of other variables, the chain rule extends to partial derivatives. This is one of the most commonly used rules in physics, thermodynamics, and machine learning.

If z = f(x, y) and x = x(s, t), y = y(s, t):
dz/ds = (df/dx)(dx/ds) + (df/dy)(dy/ds)
dz/dt = (df/dx)(dx/dt) + (df/dy)(dy/dt)

Worked example: Let z = x^2 + y^2 where x = cos(t), y = sin(t). Then: dz/dt = 2x(-sin(t)) + 2y(cos(t)) = -2cos(t)sin(t) + 2sin(t)cos(t) = 0. This confirms that the function z = cos^2(t) + sin^2(t) = 1 has zero derivative (as expected for a constant).

The chain rule for partial derivatives is the foundation of implicit differentiation. When a function is defined implicitly by F(x, y) = 0, the derivative dy/dx equals -(dF/dx) / (dF/dy). The Implicit Derivative Calculator applies this formula directly.

Second Order Partial Derivatives and Mixed Partials

Second order partial derivatives apply the partial derivative operation twice. For f(x, y), there are four second-order partials. By Clairaut's theorem, the two mixed partials are equal for most functions encountered in practice.

NotationMeaningHow to Compute
f_xx or d^2f/dx^2Second partial w.r.t. x (pure)Differentiate f_x with respect to x
f_yy or d^2f/dy^2Second partial w.r.t. y (pure)Differentiate f_y with respect to y
f_xy or d^2f/dydxMixed: x then yDifferentiate f_x with respect to y
f_yx or d^2f/dxdyMixed: y then xDifferentiate f_y with respect to x

Second derivative test for critical points: At a critical point (f_x = 0, f_y = 0), compute D = f_xx * f_yy - (f_xy)^2. If D > 0 and f_xx > 0: local minimum. If D > 0 and f_xx < 0: local maximum. If D < 0: saddle point. If D = 0: inconclusive. The gradient (f_x, f_y) is central to gradient descent in machine learning; the Correlation Coefficient Calculator is another tool commonly used in data science and statistical modeling.

Example Calculation

Function: f(x, y) = 3x²y + 2xy³ + 5y²

df/dx (treat y as constant):
  d/dx[3x^2 y] = 6xy
  d/dx[2xy^3] = 2y^3
  d/dx[5y^2] = 0  (no x)
  df/dx = 6xy + 2y^3
df/dy (treat x as constant):
  d/dy[3x^2 y] = 3x^2
  d/dy[2xy^3] = 6xy^2
  d/dy[5y^2] = 10y
  df/dy = 3x^2 + 6xy^2 + 10y
At (2, 1): df/dx = 6(2)(1) + 2(1)^3 = 14
At (2, 1): df/dy = 3(4) + 6(2)(1) + 10(1) = 34

Common Mistakes to Avoid

Differentiating all variables at once
When finding df/dx, only differentiate with respect to x. Every other variable is a fixed constant for that entire pass.
Forgetting that pure-y terms vanish for df/dx
A term like 5y² has no x, so its partial derivative with respect to x is zero. Applying the power rule to y here gives a wrong answer.
Bringing down the wrong exponent
For 3x²y, the partial w.r.t. x applies only to x². The y is a multiplicative constant, giving 3 x 2 x y x x^1 = 6xy, not 6xy².
Confusing mixed and second partials
d^2f/dydx means differentiate with respect to x first, then y - not the other way around. Notation order matters even when the values coincide by Clairaut's theorem.
Substituting values before differentiating
Always find the symbolic partial derivative expression first, then plug in x and y values. Substituting numbers into the original function first leaves nothing to differentiate.

Frequently Asked Questions

A partial derivative measures how a multivariable function changes when only one variable changes while all others are held constant. For f(x, y), the partial derivative with respect to x (written as df/dx) answers: how does f change as x increases by a tiny amount, keeping y fixed? The symbol d (curly d) distinguishes partial from ordinary derivatives.

More Math & Science Calculators

Sources & References

1
Stewart J: Multivariable Calculus, 9th Edition
Primary reference for the power rule applied to partial derivatives, mixed partial notation, and Clairaut's theorem on equality of mixed partials.
2
MIT OpenCourseWare: 18.02 Multivariable Calculus, Lecture 11 ↗
Open lecture notes on partial derivatives, the chain rule for multivariable functions, and gradient interpretation.
3
Marsden J & Tromba A: Vector Calculus, 6th Edition
Reference for second-order partial derivatives, the second derivative test for critical points, and mixed partial derivative symmetry.
HR
Hassaan Rasheed
Developer and Researcher, CalculatorFlux

Researches and verifies the formulas, methodology, and source data behind each calculator on CalculatorFlux. All tools are built and checked against the cited references before publication.

Last updated: May 2026
Quick Examples
f = x^3 y^2
df/dx = 3x^2 y^2
df/dy = 2x^3 y
f = 5x^2 y + 3y^3
df/dx = 10xy
df/dy = 5x^2 + 9y^2
f = x^2 y^2 - 4x
df/dx = 2xy^2 - 4
df/dy = 2x^2 y
Key Rule
For df/dx, treat y as a numeric constant throughout. Every term with only y (no x) differentiates to zero. Every term with x follows the usual power rule, with y coefficients remaining unchanged.
Browse Categories
Payroll & Tax
50+
Construction & Materials
21+
Health & Fitness
24+
Finance & Investment
20+
Education & GPA
16+
Math & Science
10+
Food & Cooking
8+
Specialty & Other
15+

Articles & Guides

In-depth guides related to this calculator.

All articles →