About the Partial Derivative Calculator
Most quantities in science and economics depend on more than one input. The volume of a cylinder depends on its radius and its height, a company's profit depends on price and advertising spend, and the temperature in a room depends on all three coordinates. A partial derivative answers a focused question about such a function: how fast does the output change when one input moves and every other input stays fixed?
This calculator computes those rates exactly. Type a function such as , choose the variable, and it differentiates term by term using the sum, constant multiple, power, product and chain rules, treating every other letter as a constant. Each rule appears as its own step, so you can see why survives in front of and why a term like disappears when you differentiate with respect to .
Higher-order derivatives work the same way. Enter xx for the second partial in , or xy for the mixed partial that differentiates first in and then in . Add a point such as x = 1, y = 2 to evaluate the result there. Every answer is cross-checked against a numerical finite-difference estimate before it is shown.
What is a partial derivative?
For a function , the partial derivative with respect to , written or , is the ordinary derivative you get by treating as a fixed number. Formally, . The curly symbol signals that other variables are present and being held constant.
Geometrically, the graph of is a surface. Slicing that surface with the plane constant gives a curve, and is the slope of that curve. Likewise, is the slope of the slice in the -direction. Together the first-order partials form the gradient vector , which points in the direction of steepest increase.
Partial derivatives appear in optimisation (critical points are where all first partials vanish), in physics (the heat, wave and Laplace equations are written with them), in economics (marginal cost and marginal utility) and in machine learning, where gradients drive the training of every neural network.
How to use the Partial Derivative Calculator
- Type the function using any letters as variables, for example x^2 y + sin(x y) or x^3 y^2 + 4y. A space or * between letters means multiplication.
- In the second box enter the variable to differentiate with respect to, such as x or y.
- For higher orders, list one letter per differentiation in order: xx for f_xx, xy for f_xy (first x, then y), yyx and so on.
- Optionally give every variable a value, such as x = 1, y = 2, to evaluate the derivative at that point.
- Press Differentiate and follow the steps, each labelled with the rule it uses.
Formulas
Definition
Mixed partial notation
Clairaut's theorem
Gradient
Chain rule inside a partial
Worked example: ∂/∂x of x²y + sin(xy)
The worked example below is computed live for , differentiated with respect to . With held constant, the first term is a constant times , so it becomes . The second term needs the chain rule: the derivative of is times , and for that inner derivative is .
Adding the pieces gives , which the calculator factors as . Notice that never gets differentiated; it behaves exactly as the number 5 would if it stood in the same place.
The solution below is generated by the same engine that powers the calculator above.
Final answer
How we read your problem
Find the first partial derivative f_x of f(x, y).
Step-by-step solution
Identify the function and the order of differentiation
Differentiate with respect to x; every other variable (y) is held constant.
Sum rule: differentiate each term separately
Chain rule — d/dx[sin u] = cos u · u′
Constant multiple rule
Constant multiple rule
Power rule: d/dx[xⁿ] = n·xⁿ⁻¹
Simplify: f_x
Formulas used
Definition
Mixed partials (Clairaut)
A partial derivative measures how f changes when only one variable moves: the other variables are treated exactly like numbers, so the usual derivative rules apply.
Verification
- Cross-checked against an independent symbolic differentiator at several sample points ✓
Detailed explanation
Holding the other variables constant
The single idea behind every partial derivative is that the variables you are not differentiating with respect to are frozen. If you find this hard to see, substitute an actual number for them first. Differentiating with respect to is like differentiating when : the answer has the shape , and putting back in place of 8 gives .
This also explains which terms vanish. A term that contains only frozen variables is a constant, so its partial derivative is zero. In , the partial with respect to ignores entirely and gives .
The familiar rules still apply
Partial differentiation uses exactly the same rules as single-variable calculus: power, sum, constant multiple, product, quotient and chain. The only change is bookkeeping. A product of two factors that both contain needs the product rule when differentiating in , but if one factor contains only it is just a constant multiplier.
The chain rule is where most errors happen. When a function is applied to an expression containing several variables, such as or , the inner derivative is a partial derivative too. So , and .
Second-order and mixed partial derivatives
Differentiating a partial derivative again gives a second-order partial. A function of two variables has four of them: , and the mixed partials and . The subscript notation is read left to right, so means differentiate in first, then in . The fraction notation is read right to left and describes the same thing.
For , differentiating in gives , and then differentiating in gives , which equals 24 at the point . Differentiating in the other order gives and then again. That agreement is Clairaut's theorem: for functions whose second partials are continuous, the order of mixed differentiation does not matter. The calculator notes this as a check whenever it computes a mixed partial.
Second partials have concrete uses. In the second derivative test for a critical point of , the quantity decides whether the point is a local maximum, a local minimum or a saddle point.
Evaluating at a point and interpreting the number
A partial derivative is itself a function of all the variables, so its value depends on where you are. For , the derivative equals 8 at . That means that near this point, increasing by a small amount while keeping increases by about .
Units make the interpretation concrete. If is the volume of a cylinder in cubic centimetres, then is measured in cubic centimetres per centimetre of radius and tells you how sensitive the volume is to a change in radius when the height is fixed.
Common mistakes
- Differentiating the held-constant variable as well, for example writing .
- Treating a term like as surviving when differentiating with respect to ; it is a constant and gives 0.
- Forgetting the inner partial derivative in the chain rule, such as writing for .
- Reading in the wrong order; the subscript order is the order of differentiation.
- Mixing up with the total derivative when itself depends on .
Tips
- Replace the frozen variables with numbers mentally if you lose track of what is constant.
- Factor constants out before differentiating; is times when differentiating in .
- Use Clairaut's theorem as a free check: compute and and compare.
- Write as soon as you have both first partials; most applications need the whole gradient.
- Simplify the first derivative before taking a second one to keep expressions manageable.
- Check the sign of a partial at a point to see whether the function rises or falls in that direction.
Frequently asked questions
How do I type a function of two variables?
Use letters for the variables and a space or * for multiplication, for example x^2 y + sin(x y) or x^2*y + sin(x*y). Any letter that is not a function name such as sin or log is treated as a variable.
How do I get a second partial derivative like f_xx?
Type the variable once per differentiation in the 'with respect to' box: xx for f_xx, yy for f_yy. The calculator differentiates repeatedly and shows each stage separately.
Is f_xy the same as f_yx?
For almost every function met in a course, yes. Clairaut's theorem guarantees it whenever the mixed partials are continuous. The calculator reports the comparison so you can see the agreement.
What does the symbol ∂ mean?
It is a rounded d used for partial derivatives. It signals that the function has several variables and that all except the one in the denominator are being held constant during differentiation.
Can it evaluate the partial derivative at a point?
Yes. Enter values for every variable, such as x = 1, y = 2, in the optional box. The calculator substitutes them into the final derivative and gives the number, for example f_x = 2x + 3y becomes 8 at (1, 2).
Does it work with three variables?
Yes. A function such as x y z or x^2 + y z can be differentiated with respect to any of its letters. For x y z, the partial with respect to z is xy.
How is a partial derivative different from an ordinary derivative?
The rules are identical, but an ordinary derivative involves one variable while a partial derivative picks one of several variables and treats the rest as constants. The result is still a function of all the variables.
What is the gradient and how do partial derivatives form it?
The gradient is the vector of all first-order partials, such as ⟨f_x, f_y⟩. It points in the direction in which the function increases fastest, and its length is that fastest rate of increase.
Why does my partial derivative look different from the textbook answer?
Equivalent expressions can be arranged in many ways. The calculator may factor a common term, as in y(2x + cos(xy)) instead of 2xy + y cos(xy), or order factors differently. Expand both forms, or evaluate them at the same point, to confirm they match.
Differentiate your multivariable function
Enter a function and the variables to differentiate with respect to above to get first, second or mixed partial derivatives with every rule shown.