Partial derivative calculator

Type a function of x, y and z to get its partial derivatives with respect to each variable, or all second-order partials including the mixed ones. Add a point to see the values there, the gradient vector and its length.

Use x, y, z, numbers, + - * / ^, parentheses, pi, e and sin, cos, tan, exp, ln, log, sqrt, abs with brackets. Write products of letters with * or a space: x*y, not xy.
Optional. Coordinates in the order x, y, z, for example 1, 2, 3. Leave empty for the formulas only.
∂f/∂x2 * x * y
∂f/∂y
x^2 + 3 * y^2 * z
∂f/∂z
y^3
Point
(1, 2, 3)
f at the point
26
∂f/∂x at the point
4
∂f/∂y at the point
37
∂f/∂z at the point
8
Gradient ∇f
(4, 37, 8)
Length of the gradient |∇f|
38.06573262

Runs in your browser: nothing you enter is sent anywhere.

How to use it

  1. Type the function, for example x^2*y + y^3*z.
  2. Choose first or second partials.
  3. Optionally enter a point such as 1, 2, 3 to get the values, the gradient and its length.

Only the variables that appear in the function get a row: for f(x, y) there is no ∂f/∂z.

How it works

The function is turned into an expression tree and differentiated with the usual rules (sum, product, quotient, power and chain rules), treating every variable except the one you differentiate by as a constant. The result is lightly simplified and printed as a formula you can paste back in. Second partials differentiate the first partial again: ∂²f/∂x∂y here means differentiate by x, then by y. Values at the point are computed from the formulas.

Worked example

f(x, y, z) = x²y + y³z.

  • ∂f/∂x = 2xy, shown as 2 * x * y.
  • ∂f/∂y = x² + 3y²z, shown as x^2 + 3 * y^2 * z.
  • ∂f/∂z = y³, shown as y^3.

At (1, 2, 3): f = 1·2 + 8·3 = 26, ∂f/∂x = 4, ∂f/∂y = 1 + 3·4·3 = 37, ∂f/∂z = 8. The gradient is (4, 37, 8) and its length is √(16 + 1369 + 64) = √1449 = 38.06573262.

Tips and common mistakes

  • Write x*y or x y; xy is read as one unknown name.
  • Angles in sin, cos and tan are in radians.
  • A value marked “not defined at this point” comes from a division by zero or a logarithm of a non-positive number at that point, such as ln(x) at x = 0.

Frequently asked questions

What is a partial derivative?

It is the rate of change of a function of several variables when only one variable changes and the others are held constant. For f = x²y, ∂f/∂x = 2xy (y treated as a number) and ∂f/∂y = x².

Are the mixed partials ∂²f/∂x∂y and ∂²f/∂y∂x equal?

For functions whose second partials are continuous, yes (Schwarz's theorem), which covers everything built from polynomials, exp, sin and the like away from points where they are not defined. The calculator shows one mixed partial for each pair.

What is the gradient?

The vector of first partials (∂f/∂x, ∂f/∂y, ∂f/∂z). At a point it points in the direction of fastest increase of f, and its length is the rate of increase in that direction.

Can I use other variable names?

The variables are x, y and z. Rename others before typing, for example write the function of r and t as a function of x and y.

More in Math

All tools in this category: Math ·Updated November 4, 2026

Privacy choices

Google Analytics shows us which tools are used and whether they work. It may set cookies. Your choice is kept in this browser.