Partial Derivative Calculator

Calculate partial derivatives of multivariable functions with respect to x, y, or z. Use polynomial expressions, parentheses, powers, trigonometric functions, logarithms, exponentials, square roots, and more. Calculate one derivative, all first partial derivatives, second or mixed partial derivatives, and evaluate derivatives at a point.

Examples: x^2*y + y^3 , sin(x*y)+e^x , (x+y)^2
Supported notation
Use 2x or 2*x, powers such as x^2, parentheses, and functions such as sin, cos, tan, ln, exp, and sqrt.
Quick example: Enter x^2*y + y^3 , choose x, and calculate. The result is 2xy because y is treated as a constant when differentiating with respect to x.

What Is a Partial Derivative?

A partial derivative describes how a function of several variables changes when one variable changes while the other variables are held constant. For example, for f(x,y) , the two first partial derivatives are ∂f/∂x and ∂f/∂y .

\[ \frac{\partial f}{\partial x} \qquad\text{and}\qquad \frac{\partial f}{\partial y} \]

For a function of three variables, f(x,y,z) , there are three first partial derivatives:

\[ \frac{\partial f}{\partial x}, \qquad \frac{\partial f}{\partial y}, \qquad \frac{\partial f}{\partial z} \]

Partial Derivative Rules

Power Rule

\[ \frac{\partial}{\partial x}x^n = nx^{n-1} \]

Constant Rule

\[ \frac{\partial}{\partial x}C = 0 \]

Sum and Difference Rules

\[ \frac{\partial}{\partial x}(f+g) = \frac{\partial f}{\partial x} + \frac{\partial g}{\partial x} \]

Product Rule

\[ \frac{\partial}{\partial x}(fg) = g\frac{\partial f}{\partial x} + f\frac{\partial g}{\partial x} \]

Quotient Rule

\[ \frac{\partial}{\partial x} \left( \frac{f}{g} \right) = \frac{ g f_x - f g_x }{ g^2 } \]

Chain Rule

\[ \frac{\partial}{\partial x} F(g) = F'(g) \frac{\partial g}{\partial x} \]

Examples of Partial Derivatives

Example 1

For \[ f(x,y)=x^2y+y^3 \]

\[ \frac{\partial f}{\partial x} = 2xy \]

Example 2

For \[ f(x,y)=3x^2+4xy+y^2 \]

\[ \frac{\partial f}{\partial y} = 4x+2y \]

Example 3

For \[ f(x,y,z)=xyz \]

\[ \frac{\partial f}{\partial z} = xy \]

Example 4 — Chain Rule

For \[ f(x,y)=\sin(xy) \]

\[ \frac{\partial f}{\partial x} = y\cos(xy) \]

Supported Mathematical Expressions

The calculator uses a symbolic parser rather than executing the submitted expression as PHP code.

Category Examples
Variables x, y, z
Arithmetic +, -, *, /
Implicit multiplication 2x, xy, xyz, 2sin(x)
Powers x^2, x^-2, (x+y)^2
Trigonometric sin, cos, tan, cot, sec, csc
Inverse trigonometric asin, acos, atan
Hyperbolic sinh, cosh, tanh
Logarithms and exponential ln(x), log(x), exp(x), e^x
Roots and absolute values sqrt(x), abs(x)
Constants pi, e

Second and Mixed Partial Derivatives

A second partial derivative differentiates a function twice. Examples include:

\[ \frac{\partial^2f}{\partial x^2}, \qquad \frac{\partial^2f}{\partial y^2}, \qquad \frac{\partial^2f}{\partial x\partial y} \]

A mixed partial derivative differentiates with respect to two different variables. For sufficiently smooth functions, mixed partial derivatives often agree:

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

Partial Derivatives and the Gradient

The gradient collects all first partial derivatives into a vector. For f(x,y,z) :

\[ \nabla f = \left( \frac{\partial f}{\partial x}, \frac{\partial f}{\partial y}, \frac{\partial f}{\partial z} \right) \]

For a dedicated gradient calculation, use the Gradient Calculator .

Related Multivariable Calculus Calculators

Frequently Asked Questions

What is a partial derivative?

A partial derivative measures how a multivariable function changes with respect to one variable while the other variables are held constant.

What does ∂f/∂x mean?

∂f/∂x is the partial derivative of f with respect to x. While differentiating with respect to x, y and z are treated as constants.

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

An ordinary derivative is normally used for a function of one variable. A partial derivative is used for a function of several variables and describes the change with respect to one selected variable.

Can I calculate all partial derivatives at once?

Yes. Select All first partial derivatives to calculate ∂f/∂x, ∂f/∂y, and ∂f/∂z.

What functions are supported?

The calculator supports x, y, z, arithmetic operations, powers, parentheses, implicit multiplication, trigonometric functions, inverse trigonometric functions, hyperbolic functions, logarithms, exponential functions, square roots, and absolute values.

Can I calculate a partial derivative at a point?

Yes. Enable point evaluation and enter numerical values for the variables used by the expression.

What is the gradient?

The gradient is the vector of first partial derivatives. For f(x,y,z), the gradient is (∂f/∂x, ∂f/∂y, ∂f/∂z).

What are mixed partial derivatives?

A mixed partial derivative differentiates with respect to two variables, such as ∂²f/(∂x∂y).