Partial Derivative Calculator

∂f/∂x at the point—
∂f/∂y at the point—
f(x, y) at the point—

How Partial Derivative Calculator is calculated: ∂f/∂x = [f(x+h, y) − f(x−h, y)] ÷ 2h, with h = 0.00001 (central difference)

What is a Partial Derivative Calculator?

The Partial Derivative Calculator is a free online tool that finds the partial derivatives of a two-variable function at a point — how fast the function changes when you move in the x direction, and how fast it changes when you move in the y direction. Multivariable-calculus, physics and engineering students use it when the slope of a surface in each direction, for example to find where a hill is steepest or where a function stops changing. Instead of differentiating term by term and then substituting the point, where a single sign slip ruins the answer, you type the function from the list and the point (x, y) to evaluate at and the calculator returns ∂f/∂x, ∂f/∂y and the value of the function itself at that point straight away.

The working idea is simple. the calculator uses central finite differences: it evaluates the function a tiny step ahead and a tiny step behind the point, and divides the difference by twice the step The step h is 0.00001, small enough that the secant line is almost the tangent line, but large enough that the computer's rounding does not swamp the difference. The results are numeric approximations, labelled as such, and they agree with the exact derivatives to about four decimal places for the functions on the list. There is no sign-up and nothing to install: the page runs entirely in your browser, so your numbers never leave your device.

That matters because a function of two variables has a slope in every direction, and the two partial derivatives are the building blocks: they make the gradient, the tangent plane and the test for maxima and minima The answers are numeric approximations from finite differences, not symbolic derivatives, so they are accurate to roughly four decimal places for smooth functions — good enough for homework checks, not for a proof. The rest of this page walks through the formula, the input people get wrong most often, and a worked example with real numbers you can check by hand.

How a Partial Derivative Calculator works

At its core, the calculator applies each partial derivative is a central difference: the change in the function over a tiny step, divided by the step. ∂f/∂x is [f(x+h, y) − f(x−h, y)] ÷ 2h and ∂f/∂y is [f(x, y+h) − f(x, y−h)] ÷ 2h, with h = 0.00001. Holding the other variable fixed is what makes the derivative partial: you move along one axis only. The formula box at the top of this page shows the same rule in symbols: ∂f/∂x = [f(x+h, y) − f(x−h, y)] ÷ 2h, with h = 0.00001 (central difference).

The calculator picks the function you chose from a preset list — it does not parse typed formulas — and evaluates it at four nearby points. Central differences are used instead of forward differences because they cancel the first-order error and are roughly a hundred times more accurate for the same step. All four preset functions are smooth everywhere, so there are no points where the derivative fails to exist. If you need a function that is not on the list, pick the closest one and treat the answer as a guide, not a substitute.

Central differences with h = 0.00001 give about four correct decimal places on smooth functions A derivative calculator can help you check the numbers that feed into this step, and it is worth doing that check before you trust an answer that looks surprising.

The the function explained

The function is the whole problem, and the mistake people make is choosing the wrong one from the list — usually the similar-looking one. The list has x² + y², which is a bowl, and x³ + y³ − 3xy, which is a saddle with a dip, and the two behave very differently: at the point (1, 2) the first has ∂f/∂x = 2, while the second has ∂f/∂x = 3×1² − 3×2 = −3. Picking the wrong function gives a confident, precise, completely wrong answer.

Read the list slowly and match every term of your function to the preset, including the minus signs. If your function is x² + y², pick that entry, not the cubic one, and double-check the point as well: swapping x and y changes both answers. Check the function value first — it is shown as the third result. If f(x, y) is not what you expect, the function or the point is wrong, and the derivatives will be wrong too.

For f = x² + y² at (1, 2) you can check by hand: ∂f/∂x = 2x = 2 and ∂f/∂y = 2y = 4, which is what the calculator shows. A slope calculator is a good cross-check when the input comes from a measurement or a table rather than from a textbook problem.

A worked example

Take the default settings on this page: f(x, y) = x² + y² at the point (1, 2).

The function value is 1² + 2² = 5, shown as 5. The x-derivative is 2x = 2, shown as 2, and the y-derivative is 2y = 4, shown as 4. The numeric differences agree with the exact values to the decimals shown.

The two numbers say the surface rises twice as fast in the y direction as in the x direction at this point — which makes sense, because y is the larger coordinate and the bowl steepens as you move away from the origin. Swap the point to (2, 1) and the answers swap too: ∂f/∂x becomes 4 and ∂f/∂y becomes 2, which is a quick way to confirm the calculator is reading the point the way you intend.

Where the Partial Derivative Calculator is used

In calculus, partial derivatives are the first step to finding maxima and minima of a surface: where both partial derivatives are zero, the surface is flat, and that point may be a peak, a valley or a saddle.

In physics, the partial derivatives of a potential energy function give the force in each direction, and in thermodynamics they turn one measured quantity into another, such as pressure from energy and volume. A trigonometry calculator often sits next to it in the same workflow, because the two answers answer different halves of the same question.

In machine learning, the gradient of a loss function — built from partial derivatives — tells the optimiser which way to step, and every training run depends on getting those derivatives right.

It also helps to keep the units consistent from the first number to the last. Mixing units — metres with centimetres, degrees with radians, seconds with minutes — is the quietest way to get an answer that looks plausible and is wrong by a large factor. Write the unit next to every number you enter, and check the result's unit against the unit you expect before you use the answer anywhere else.

Partial Derivative Calculator vs Derivative Calculator

A derivative calculator handles a function of one variable, f(x), and gives one number, f′(x). This calculator handles a function of two variables, f(x, y), and gives two numbers, one for each direction. The one-variable derivative is the special case where the second variable does not exist.

Use the derivative calculator for curves, and this one for surfaces. If your problem has only x, the extra machinery here adds nothing; if it has x and y, the one-variable tool cannot even state the question. The scientific calculator covers the other side of the same problem, so the two tools complement each other rather than compete.

The two agree where they overlap: for f(x, y) = x² + y² with y held at 2, the partial derivative ∂f/∂x is 2x, exactly what the one-variable calculator gives for f(x) = x² + 4.

Common mistakes with the Partial Derivative Calculator

The first mistake is forgetting to hold the other variable fixed. ∂f/∂x treats y as a constant, so for f = xy the answer is y, not 1 — the y is a number at the point, and it stays in the derivative.

The second mistake is swapping the two derivatives. ∂f/∂x comes from moving in x, so it is the one that changes when you change x; if your answers look swapped, check which box holds which coordinate.

The third mistake is trusting the numeric answer to too many decimals. The calculator shows two decimals, and that is honest for a finite-difference approximation; quoting six decimals from a numeric method would be pretending to a precision the method does not have.

A last mistake is trusting the first answer without a rough check. Before you accept a result, estimate it by hand to one significant figure: if the calculator says 400 and your rough estimate says 40, something is off — usually a misplaced decimal point or a wrong unit. The calculator does the arithmetic; the judgement about whether the answer makes sense still belongs to you.

How to use this Partial Derivative Calculator

Open the page and enter the function from the list and the point (x, y) to evaluate at. Pick the function, enter the point, and read the two derivatives. The function value is shown as a check that the function and point are the ones you meant.

Read ∂f/∂x as the slope of the surface in the x direction at your point, and ∂f/∂y as the slope in the y direction. If both derivatives are zero, the surface is flat at that point — a candidate maximum, minimum or saddle point, which the second-derivative test then sorts out.

Everything runs in your browser. No account, no upload, no data sent anywhere — your numbers never leave your device. If a result looks wrong, re-check the inputs first: a single mistyped number is the usual cause, and a derivative calculator will confirm the arithmetic.

Frequently Asked Questions

∂f/∂x is 2 and ∂f/∂y is 4, and the function value is 5. By hand: ∂f/∂x = 2x = 2 and ∂f/∂y = 2y = 4.

each partial derivative is a central difference: the change in the function over a tiny step, divided by the step ∂f/∂x is [f(x+h, y) − f(x−h, y)] ÷ 2h and ∂f/∂y is [f(x, y+h) − f(x, y−h)] ÷ 2h, with h = 0.00001. Holding the other variable fixed is what makes the derivative partial: you move along one axis only.

An ordinary derivative is for a function of one variable and gives a single rate of change. A partial derivative is for a function of several variables: you differentiate with respect to one variable while holding the others fixed, so a function of two variables has two partial derivatives, one per direction.

They are numeric approximations from central finite differences with a step of 0.00001, accurate to about four decimal places for the smooth functions on the list. That is plenty for checking homework, but if you need a symbolic answer such as ∂f/∂x = 2x, work it out by hand and use this calculator to check the numbers.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.