Partial Derivative Calculator

  • Free
  • No sign-up
  • Works on phones
  • Shows the working
Multivariable#21

Partial Derivatives

First and second partials of \(f(x, y)\), evaluated at a point.

The partial derivative calculator differentiates a function of two variables, \( f(x, y) \), with respect to each variable. It returns the first partials \( f_x \) and \( f_y \) as formulas and as values at a point you choose, plus the second partials \( f_{xx} \), \( f_{yy} \) and \( f_{xy} \).

It’s made for multivariable calculus students checking their work on homework, tangent planes and critical-point problems. It’s free and needs no sign-up.

How to use the partial derivative calculator

  1. Type \( f(x, y) \) using x and y. Use ^ for powers and sqrt(), sin(), cos(), ln(), e^(x y) and pi for functions. Implicit multiplication works, so x^2 y means \( x^2 \cdot y \) and sin(x y) means \( \sin(xy) \).
  2. Enter the point \( (x_0, y_0) \) where you want the values.
  3. Press Differentiate. The top rows show \( f_x \) and \( f_y \), each as a formula and its value at your point.
  4. Read the second partials \( f_{xx} \), \( f_{yy} \) and \( f_{xy} \) in the rows below. These are given as formulas, so substitute the point yourself if you need their values.

How it works

A partial derivative measures how \( f \) changes when only one variable moves:

$$f_x = \frac{\partial f}{\partial x} = \lim_{h\to0}\frac{f(x+h, y) - f(x, y)}{h}$$

and similarly for \( f_y \), with \( h \) added to \( y \). In practice you treat the other variable as a constant and use the ordinary rules: power, product, quotient and chain rule.

The calculator does this symbolically. It differentiates with respect to \( x \) while holding \( y \) fixed, then with respect to \( y \) while holding \( x \) fixed, simplifies, and evaluates at your point. The second partials are the partials of the partials:

$$f_{xx} = \frac{\partial^2 f}{\partial x^2}, \quad f_{yy} = \frac{\partial^2 f}{\partial y^2}, \quad f_{xy} = \frac{\partial}{\partial y}\big(f_x\big)$$

For the smooth functions you meet in a calculus course, the mixed partials agree (Clairaut’s theorem), so \( f_{xy} = f_{yx} \) and one row covers both.

Worked example

Example 1: a polynomial. Let \( f(x, y) = x^3y^2 - 4xy \). Find all first and second partials, and the first partials at \( (1, 2) \).

Hold \( y \) constant and differentiate in \( x \):

$$f_x = 3x^2y^2 - 4y$$

Hold \( x \) constant and differentiate in \( y \):

$$f_y = 2x^3y - 4x$$

At \( (1, 2) \): \( f_x = 3(1)(4) - 8 = 4 \) and \( f_y = 2(1)(2) - 4 = 0 \). So near this point \( f \) rises at a rate of 4 in the \( x \)-direction and is momentarily flat in the \( y \)-direction.

Second partials: \( f_{xx} = 6xy^2 \), \( f_{yy} = 2x^3 \), and \( f_{xy} = 6x^2y - 4 \). As a check, differentiating \( f_y \) in \( x \) also gives \( 6x^2y - 4 \). At \( (1, 2) \) these are 24, 2 and 8. The calculator above is preloaded with this function and point.

Example 2: the chain rule. Let \( g(x, y) = \sin(x^2y) \) at \( (1, \pi) \). The inner function is \( x^2 y \), so

$$g_x = 2xy\cos(x^2y), \qquad g_y = x^2\cos(x^2y).$$

At \( (1, \pi) \), \( \cos\pi = -1 \), so \( g_x = -2\pi \approx -6.2832 \) and \( g_y = -1 \). Type sin(x^2 y) with \( x_0 = 1 \), \( y_0 = \) pi to compare.

Common mistakes

  • Differentiating the “constant” variable. In \( \frac{\partial}{\partial x}(4xy) \), \( y \) is a constant factor, so the answer is \( 4y \), not \( 4y + 4x \).
  • Dropping a factor with the chain rule. For \( \sin(x^2y) \), the \( x \)-partial needs the inner derivative \( 2xy \), and the \( y \)-partial needs \( x^2 \). This is the single-variable chain rule with one variable frozen.
  • Mixing up \( f_{xy} \) notation. \( f_{xy} \) means “first \( x \), then \( y \)”, while \( \frac{\partial^2 f}{\partial x\,\partial y} \) is read right to left. For smooth functions they match, so the order rarely matters for the answer.
  • Stopping at \( f_x \) and \( f_y \). Critical points need both first partials equal to 0, and classifying them needs \( f_{xx} \), \( f_{yy} \) and \( f_{xy} \) for the second-derivative test.

For more worked examples and the geometric meaning of each partial, read the guide to partial derivatives. The two first partials together form the gradient, covered in gradient and directional derivative; the gradient calculator evaluates it at a point along with directional derivatives.

Related guides

Further reading

FAQ

Does the partial derivative calculator show second derivatives?

Yes. It gives \( f_{xx} \), \( f_{yy} \) and the mixed partial \( f_{xy} \) as formulas, below the first partials.

Can it handle functions of three variables?

No. This calculator works with \( f(x, y) \). For \( f(x, y, z) \), treat two variables as constants and differentiate by hand, or fix \( z \) at a number and use the calculator for the other two.

What does a partial derivative of zero mean?

The function is momentarily flat in that direction. If both \( f_x \) and \( f_y \) are zero, the point is a critical point: a local maximum, minimum or saddle.

Is the partial derivative calculator free?

Yes. It works in your browser with no sign-up and no limits.

Embed this calculator on your website

Teachers, tutors and bloggers are welcome to use this calculator for free. Copy the code below and paste it into any page (in WordPress, use a "Custom HTML" block). The small script makes the calculator grow to fit its answer; if your site removes scripts, it still works at a fixed height. Please keep the credit link.

More calculators

See all calculators