Multivariable Calculus Tool

The Partial Derivative Calculator That Shows Its Work

Enter any multivariable function, pick your variable, and get the exact partial derivative — with step-by-step explanations. Free, instant, no signup.

Start Calculating ↓ Read the Blog
partial-derivative-calculator.js

Use: ^ for power, * for multiply, sin cos tan ln exp sqrt

Result —

Try a Common Function

Click any example to populate the calculator and see results instantly.

f(x,y) = x²y
∂f/∂x — polynomial function
f(x,y) = sin(x)cos(y)
∂f/∂y — trigonometric
f(x,y) = e^(x²+y²)
∂f/∂x — exponential
f(x,y) = x³ + 3x²y + y³
∂²f/∂x² — second order
f(x,y) = ln(x²+y²)
∂f/∂x — logarithmic
f(x,y,z) = xyz + x²z
∂f/∂z — three variables

How Partial Derivatives Work

What Is a Partial Derivative?

A partial derivative measures how a multivariable function changes as one variable changes, while all other variables are held constant. It extends single-variable differentiation to functions of several variables.

∂f/∂x = lim[h→0] [f(x+h, y) − f(x, y)] / h

Second-Order Partials

Second-order partial derivatives describe the curvature of a function's surface. They appear in the Hessian matrix and are essential for optimization and classifying critical points.

∂²f/∂x² = ∂/∂x (∂f/∂x)

Mixed Partial Derivatives

Mixed partials differentiate with respect to two different variables. Schwarz's theorem states that ∂²f/∂x∂y = ∂²f/∂y∂x when both are continuous — the order doesn't matter.

∂²f/∂x∂y = ∂/∂x (∂f/∂y)

Gradient Vector

The gradient ∇f collects all partial derivatives into a vector pointing in the direction of steepest ascent. It's foundational in machine learning, physics, and optimization.

∇f = (∂f/∂x, ∂f/∂y, ∂f/∂z)

From the Blog

Deepen your understanding of multivariable calculus with our in-depth guides.

View all articles →

Frequently Asked Questions

What functions can I enter in the calculator?
+

You can enter any standard mathematical function including polynomials (x^2 + y^2), trigonometric functions (sin(x), cos(y), tan(x*y)), exponentials (exp(x)), logarithms (ln(x)), and combinations of these. Use * for multiplication and ^ for exponents.

How do I calculate a mixed partial derivative?
+

Enable the "Mixed Partial" checkbox, then select two (or more) variables by clicking their chips. The calculator will differentiate with respect to each selected variable in sequence, computing ∂²f/∂x∂y or higher-order mixed partials.

What is the difference between a partial and a total derivative?
+

A partial derivative (∂f/∂x) measures change in f with respect to x while all other variables are held constant. A total derivative accounts for how all variables change simultaneously and is expressed as df = (∂f/∂x)dx + (∂f/∂y)dy + … The total derivative is used when variables are related (e.g., via a path or constraint).

Is this calculator free to use?
+

Yes, completely free. No signup, no account required. All computations run directly in your browser — we don't send your functions to any server.

Where are partial derivatives used in real life?
+

Partial derivatives appear throughout science and engineering: gradient descent in machine learning uses them to minimize loss functions; thermodynamics uses them to relate pressure, volume, and temperature; economics uses them for marginal analysis; and physics uses them in the equations of electromagnetism (Maxwell's equations) and quantum mechanics (Schrödinger equation).