Partial derivative calculator

Differentiate a function of several variables with respect to any one of them. Pick the variable, and every other symbol is held constant.

Use * between variables — x*y, not xy, which would read as a single symbol.

Try
Steps

    What a partial derivative measures

    A function of one variable has one rate of change. A function of two has a different rate in every direction, so "how fast does \(f\) change?" needs a direction attached to it. The partial derivatives answer the simplest version of that question: how fast \(f\) changes if you move parallel to an axis.

    For \(f(x, y)\), the partial \(\partial f/\partial x\) is taken by treating \(y\) as a constant and differentiating normally. Everything you already know still applies — the product rule, the chain rule, the power rule. The only new instruction is which symbols to freeze.

    Reading the notation

    • \(\partial f/\partial x\), \(f_x\) and \(\partial_x f\) all mean the same thing.
    • The curly \(\partial\) is used instead of \(d\) precisely to signal that other variables are held fixed.
    • \(f_{xy}\) means differentiate with respect to \(x\) first, then \(y\) — reading order runs left to right.

    Worked example in two variables

    Take \(f(x, y) = x^{2}y^{3} + \sin(x)\,y\).

    With respect to x

    Hold \(y\) constant. The first term carries the constant factor \(y^{3}\), so the power rule gives \(2xy^{3}\). In the second term \(y\) is a constant multiplier, so the trigonometric rule gives \(y\cos x\). Together:

    \[\frac{\partial f}{\partial x} = 2xy^{3} + y\cos x\]

    With respect to y

    Now \(x\) is frozen. The first term has the constant factor \(x^{2}\), giving \(3x^{2}y^{2}\). The second term is a constant \(\sin(x)\) times \(y\), which differentiates to \(\sin x\). Together:

    \[\frac{\partial f}{\partial y} = 3x^{2}y^{2} + \sin x\]

    Change the variable control above and watch the steps swap over. Same engine, same rules — only the frozen symbols differ.

    Second-order and mixed partials

    Differentiating twice gives four second-order partials: \(f_{xx}\), \(f_{yy}\), and the two mixed ones \(f_{xy}\) and \(f_{yx}\). Set the order control to 2 for \(f_{xx}\) or \(f_{yy}\) directly.

    For the example above, \(f_{xx} = 2y^{3} - y\sin x\) and \(f_{yy} = 6x^{2}y\). Both mixed partials come to \(6xy^{2} + \cos x\) — Clairaut's theorem in action: when the second partials are continuous, the order of differentiation does not matter.

    The gradient

    Collecting the partials into a vector gives the gradient, \(\nabla f = \langle f_x, f_y \rangle\). It points in the direction of steepest increase, and its length is how steep that is. Every directional derivative is a dot product with it, which is why the directional derivative calculator begins by computing exactly these partials.

    Total derivative versus partial derivative

    If \(x\) and \(y\) are themselves functions of \(t\), then \(f\) changes for two reasons at once and the partials alone do not capture it. The multivariable chain rule adds the contributions:

    \[\frac{df}{dt} = \frac{\partial f}{\partial x}\frac{dx}{dt} + \frac{\partial f}{\partial y}\frac{dy}{dt}\]

    This is also the machinery behind error propagation in physics: the uncertainty in a computed quantity combines the partial derivatives with respect to each measured input.

    Common mistakes

    • Differentiating the frozen variable anyway. Under \(\partial/\partial x\), the symbol \(y\) behaves exactly like the number 5.
    • Writing xy and expecting a product — that parses as a single symbol. Use x*y.
    • Using \(d\) instead of \(\partial\). The notation is the signal that other variables are held fixed.
    • Forgetting that a term with no \(y\) in it vanishes under \(\partial/\partial y\), just as a constant does.

    Questions

    What is a partial derivative?

    The derivative of a function of several variables with respect to one of them, holding the others fixed. For \(f(x, y)\), the partial \(\partial f/\partial x\) measures how \(f\) changes as \(x\) moves and \(y\) stays where it is.

    How do I take a partial derivative with respect to y?

    Type the expression, then choose y in the "with respect to" control. Every other symbol is treated as a constant, so terms without a \(y\) differentiate to zero.

    Can it handle three variables?

    Yes. Any symbol in the expression appears in the variable list, so \(f(x, y, z)\) gives you \(\partial f/\partial x\), \(\partial f/\partial y\) and \(\partial f/\partial z\).

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

    A partial derivative holds the other variables fixed. A total derivative accounts for them changing too: if \(x\) and \(y\) both depend on \(t\), then \(\frac{df}{dt} = \frac{\partial f}{\partial x}\frac{dx}{dt} + \frac{\partial f}{\partial y}\frac{dy}{dt}\).

    Are mixed partials always equal?

    For the functions you meet in a calculus course, yes — \(f_{xy} = f_{yx}\). Clairaut's theorem guarantees it whenever both mixed partials are continuous, which holds for every elementary function.

    Is this Calculus 2 or Calculus 3?

    Partial derivatives are a Calculus 3 (multivariable calculus) topic in most curricula. Single-variable differentiation is Calculus 1.