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
- Enter the function in the Function f(x, y, …) field, using ^ for powers and explicit multiplication — for example x^2*y + sin(y).
- 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.
- Press Differentiate Partially.
- 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.
- 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.