Skip to content
ihateDesmos

Partial derivative calculator

Type a function of several variables, choose which one to differentiate with respect to, and get the partial derivative with the rules shown step by step.

∂/∂y
Result
x2+cos(y)
Steps
  1. Sum rule: d/dy[x² y + sin(y)] = d/dy[x² y] + d/dy[sin(y)]
  2. Constant multiple: d/dy[x² y] = x² · d/dy[y]
  3. d/dy[sin(y)] = cos(y)
  4. Result: x² + cos(y)
Graph the result

How to use it

  1. 1
    Type a function using x, y, t, u or v, like x^2 y + sin(y).
  2. 2
    Choose the variable to differentiate with respect to. The others are treated as constants.
  3. 3
    For a second partial, paste the result back in and differentiate again.

What a partial derivative is

A function of several variables can change in several directions. A partial derivative measures the rate of change in one direction, holding every other variable fixed. On the surface z = f(x, y), ∂f/∂x is the slope you feel walking parallel to the x-axis.

To find it, differentiate as usual, treating the other variables as numbers. For f = x²y + sin(y): ∂f/∂x = 2xy, since y is a constant multiplier; and ∂f/∂y = x² + cos(y), since x² is the constant multiplier and sin(y) differentiates normally.

Second partials and mixed partials

Differentiate twice for second partial derivatives: ∂²f/∂x² twice in x, and ∂²f/∂y∂x once in each. For well-behaved functions, the order of the mixed partials doesn’t matter, a result known as Clairaut’s theorem. For f = x²y + sin(y), ∂²f/∂y∂x = 2x either way round.

What they’re used for

  • The gradient: the vector of partial derivatives, ∇f = (∂f/∂x, ∂f/∂y), points in the direction of steepest ascent.
  • Optimisation: at a local maximum or minimum, all the partials are zero.
  • Physics: the heat and wave equations are written in partial derivatives.
  • Machine learning: training a model means following partial derivatives downhill.

See it in 3D

Type a function like z = x^2 y into the 3D graphing calculator to see the surface whose slopes these partial derivatives measure.

Frequently asked questions

How do you calculate a partial derivative?
Differentiate with respect to one variable, treating all the others as constants, using the same rules as ordinary derivatives.
What does the symbol ∂ mean?
It is a curly d, pronounced “partial” or “del”. It signals that the function has several variables and only one is being varied.
How do I find a second partial derivative?
Find the first, then paste it back in and differentiate again with respect to whichever variable you need.
What variables can I use?
x, y, t, u and v.

Related tools and guides

Try the partial derivative calculator

It opens instantly, with no account and nothing to install.

Open the calculator