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.
- Sum rule: d/dy[x² y + sin(y)] = d/dy[x² y] + d/dy[sin(y)]
- Constant multiple: d/dy[x² y] = x² · d/dy[y]
- d/dy[sin(y)] = cos(y)
- Result: x² + cos(y)
How to use it
- 1Type a function using x, y, t, u or v, like
x^2 y + sin(y). - 2Choose the variable to differentiate with respect to. The others are treated as constants.
- 3For 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?
What does the symbol ∂ mean?
How do I find a second partial derivative?
What variables can I use?
Related tools and guides
Symbolic derivatives with the rules shown step by step.
Surfaces, implicit and parametric 3D graphs, exportable for 3D printing.
2D and 3D fields with divergence, curl and line integrals.
Taylor and Maclaurin polynomials, up to degree 20.
Antiderivatives and definite integrals, exact where possible.
Power, product, quotient and chain rule, with a full cheat sheet.
It opens instantly, with no account and nothing to install.