Math Solver Free

Partial Derivative Calculator

Differentiate f(x, y, …) with respect to one variable — others held constant.

How Partial Derivatives Work

A partial derivative measures how a multivariable function changes when you vary one variable while freezing the others. Picture the function as a landscape: an ordinary derivative gives the slope along a single road, while a partial derivative gives the slope walking due east, or due north, with your other coordinate held fixed. This calculator differentiates symbolically — exactly, not numerically — for functions of x, y, z, and t. Type the function, tap the variable you want to differentiate by, and it returns the partial derivative together with a note naming the rules it used and the variables it treated as constants.

The Notation, Symbol by Symbol

The symbol ∂ is called “del” or the curly d; it replaces the straight d of ordinary calculus whenever several variables are present. f is the multivariable function — the rule producing one output from several inputs, as in f(x, y) = x²y. ∂f/∂x, read “the partial of f with respect to x”, is the rate of change of f as x alone moves, and the variable written after the second ∂ is always the one allowed to vary; every other letter in the expression — y, z, t, or a parameter like a — is handled as a constant coefficient. The tool's variable buttons offer exactly x, y, z, and t.

How to Use the Partial Derivative Calculator

  1. Enter the function in the Function f(x, y, …) field, using ^ for powers and explicit multiplication — for example x^2*y + sin(y).
  2. Choose the variable with the x, y, z, t buttons under “Differentiate with respect to”. Every other variable in your expression will be treated as a constant.
  3. Press Differentiate Partially.
  4. Read the result panel: it shows ∂f/∂(variable) in exact symbolic form, plus a Method note confirming which variables were held constant and which rules — power, product, trigonometric, exponential, logarithmic — were involved.
  5. Need another partial? Switch the variable button and press the button again; no need to retype the function.

The Constant Rule in Action

For f(x, y) = x²y + sin(y): differentiating with respect to x treats y as a constant, so ∂f/∂x = 2xy. Differentiating with respect to y treats x as a constant, giving ∂f/∂y = x² + cos(y). The same power, product, and chain rules from single-variable calculus all still apply.

Worked Example 1: Both Partials of f(x, y) = x³y² + 4xy

Differentiate term by term. With respect to x (y frozen): the term x³y² has the constant factor y² riding on x³, so the power rule gives 3x² · y²; the term 4xy has constant factor 4y riding on x, giving 4y · 1. Adding the pieces, ∂f/∂x = 3x²y² + 4y.With respect to y (x frozen): x³y² gives x³ · 2y, and 4xy gives 4x · 1, so ∂f/∂y = 2x³y + 4x. Notice how the frozen variable survives untouched in every term — it is the active variable's exponent that drops by one. Enter f = x^3*y^2 + 4*x*y in the tool and toggle the x and y buttons to see both results.

Worked Example 2: f(x, y) = e^x sin(y) with Respect to y

Here the function is a product of a factor containing only x and a factor containing only y. Differentiating with respect to y, the factor e^x contains no y at all, so it behaves as one constant multiplier and simply carries through. The derivative of sin(y) is cos(y), so ∂f/∂y = e^x cos(y). Differentiating the same function with respect to x flips the roles: sin(y) becomes the constant factor, the derivative of e^x is e^x itself, and ∂f/∂x = e^x sin(y) — the function reproduces itself, a signature behavior of the exponential. Checking which factor is “along for the ride” before you start is the fastest way to avoid the classic error of differentiating both.

Where They Matter

Partial derivatives answer “what happens if only this one input changes?” — a question every field asks. In machine learning, gradient descent adjusts each model weight according to the partial derivative of the loss with respect to that weight alone. In physics, the heat and wave equations are built from partials with respect to position and time. In economics, a partial derivative is marginal analysis: the extra output from one more worker, holding capital fixed. Engineers run the same calculation as sensitivity analysis, asking which single measurement a bridge load or a circuit output depends on most. For single-variable differentiation, see our derivative calculator.

Common Mistakes

  • Differentiating the frozen variable too. When finding ∂/∂x of x²y, y is a constant multiplier: the answer is 2xy, not 2x and not 2xy + x². Only the chosen variable moves; terms containing no trace of it, like sin(y) under ∂/∂x, differentiate to 0.
  • Dropping the constant factor. The derivative of 4xy with respect to x is 4y — the 4 and the y both survive as the coefficient of the missing x. Losing them is the most common arithmetic slip in hand-worked partials.
  • Reaching for the product rule when one factor is constant. For e^x sin(y) under ∂/∂y, e^x is a constant, so no product rule is needed; applying it anyway tempts you to differentiate e^x with respect to y and invent an extra term.

How to Find a Partial Derivative: The 4-Step Method

Every partial derivative on this page — first-order, second-order or mixed — is found with the same four steps. Learn the method once and the calculator above becomes a checker for your own work instead of a black box.

  1. Pick the variable. The variable named after the second ∂ is the only one allowed to move.
  2. Freeze everything else. Treat every other variable as a constant number — a coefficient, not an unknown.
  3. Differentiate term by term with the ordinary rules: power, product, chain, and the derivatives of sin, cos, e^x and ln.
  4. Simplify — and check numerically. Evaluate your answer at one test point and compare it with the slope you get by nudging the active variable a tiny amount (the worked examples below show this check).

Worked Examples: Every Partial of f(x, y, z) = x⁴y² − 3xy³ + z²cos(x)

First-order partials. With respect to x (y and z frozen): x⁴y² gives 4x³y², −3xy³ gives −3y³, and z²cos(x) gives −z² sin(x) — the chain rule fires here because cos(x) genuinely contains the active variable. So ∂f/∂x = 4x³y² − 3y³ − z² sin(x). With respect to y (x and z frozen): ∂f/∂y = 2x⁴y − 9xy², and the whole z²cos(x) term vanishes — it contains no y at all. With respect to z: only the last term survives, giving ∂f/∂z = 2z cos(x).

Second-order partials. Differentiate a first partial again. From ∂f/∂x: ∂²f/∂x² = 12x²y² − z² cos(x) (the −z² sin(x) term differentiates to −z² cos(x)). From ∂f/∂y: ∂²f/∂y² = 2x⁴ − 18xy. From ∂f/∂z: ∂²f/∂z² = 2cos(x) — the z disappears entirely on the second pass.

Mixed partials — Clairaut's theorem in action. Differentiate ∂f/∂x with respect to y: ∂²f/∂y∂x = 8x³y − 9y². Now go the other way — differentiate ∂f/∂y with respect to x: ∂²f/∂x∂y = 8x³y − 9y². Identical, exactly as Clairaut's theorem promises for smooth functions. Numeric spot check at (2, 1, 3): ∂f/∂x = 4(8)(1) − 3(1) − 9·sin(2) = 29 − 9(0.9093) ≈ 20.82, and ∂f/∂z = 2(3)cos(2) ≈ −2.50 — evaluate the original function at (2, 1, 3) and (2.001, 1, 3) and the slope matches to three decimals. Every result in this section was verified symbolically and numerically before publication; the full set, including the gradient, is worked in our guide to partial derivative examples.

Frequently Asked Questions

What is a partial derivative?

It is the derivative of a multivariable function with respect to one variable, treating all other variables as constants. Written ∂f/∂x for differentiation with respect to x, it measures how steeply the function's surface climbs when you walk in the x-direction alone, holding your position in every other direction fixed.

How do you treat other variables?

As constants — frozen numbers for the duration of the calculation. In x²y + sin(y), differentiating with respect to x treats y as a constant multiplier, giving 2xy, and the sin(y) term vanishes because it does not contain x at all. Differentiating with respect to y instead freezes x and gives x² + cos(y).

What is the difference between d/dx and ∂/∂x?

d/dx is the ordinary derivative of a single-variable function, where x is the only input that can change. ∂/∂x is the partial derivative, used when the function depends on several variables; the curly ∂ signals that the other variables exist but are being held constant while x varies.

What is the gradient of a function?

The gradient is the vector built from all the first partial derivatives: ∇f = (∂f/∂x, ∂f/∂y, …). It points in the direction of steepest increase of the function, and its length gives that steepest rate of change. Compute each component with this calculator, one variable button at a time, and assemble them in order.

Can I find second-order partial derivatives with this tool?

Yes, in two passes. First differentiate with respect to one variable, then type the resulting expression back in and differentiate with respect to the same variable again — or a different one for a mixed partial such as ∂²f/∂y∂x. For smooth functions the mixed partials are equal either way round, by Clairaut's theorem.

How do you find a second-order partial derivative?

Differentiate twice. Find the first partial, then differentiate that result once more — with respect to the same variable for a pure second partial like ∂²f/∂x², or a different variable for a mixed partial. With this calculator, simply type the first result back in and press Differentiate Partially again.

What are mixed partial derivatives?

A mixed partial differentiates with respect to one variable, then another: ∂²f/∂y∂x means first ∂/∂x, then ∂/∂y of the result. For smooth functions the order does not matter — Clairaut's theorem. For f(x, y, z) = x⁴y² − 3xy³ + z²cos(x), both orders give exactly 8x³y − 9y².

How can I check a partial derivative answer?

Use a numeric spot check: pick a test point, evaluate the original function there and again with the active variable nudged by a tiny amount (say +0.001), and divide the change by the nudge — that slope should match your symbolic answer at the point. For our worked example at (2, 1, 3), ∂f/∂x ≈ 20.82 and ∂f/∂z ≈ −2.50, both confirmed this way.

Is this partial derivative calculator free?

Yes — every tool on Math Solver Free is free with no sign-up, and all calculations run in your browser. Enter a function of x, y, z, or t, choose the variable, and the exact symbolic partial derivative appears with a note naming the rules used.

Related Tools & Guides

About the MathSolverFree Team

The MathSolverFree Team builds and maintains the calculators and step-by-step solvers on this site. Every tool is checked against worked textbook examples before it is published, and the method behind each solver is written out in full — in the worked examples on the page and in our guides — so you can see exactly how an answer is reached, not just the answer itself.

How we build and test our tools·More about the team