Home › Calculators › Partial Derivative Calculator

Partial Derivative Calculator

Enter a function of x, y and z, pick the variables to differentiate by, and get the exact partial derivative with every rule explained. Evaluate it at a point and see the full gradient and Hessian matrix.

Last updated:

Examples:

Variables x, y, z (and t). Use ^ for powers, * or implicit multiplication (3xy), sqrt, ln, log, e^x, sin, cos, tan, asin, acos, atan, sinh, cosh, abs, pi.

Differentiate with respect to

Tap variables in order: x = ∂f/∂x, xx = ∂²f/∂x², xy = fxy (first x, then y).

Evaluate at a point (optional)
Result

Step-by-step

Gradient (all first partial derivatives)

Second partial derivatives (Hessian)

Advertisement
Advertisement

How to use the Partial Derivative Calculator

  1. Type the function using x, y and z, for example x^2*y^3 + 3xy or sin(x*y). Or tap an example.
  2. Choose the derivative: tap ∂/∂x, ∂/∂y or ∂/∂z in the order you want, or a shortcut like fxx or fxy. The order box shows the sequence (xy means x first, then y).
  3. Optionally enter a point such as x = 1, y = 2 to evaluate the derivative there.
  4. Press Calculate partial derivative to see the result, the value at the point and the steps.
  5. Scroll down for the gradient and Hessian, and copy the result with one click.

Rules for partial derivatives

Every single-variable rule still works. The only new idea is that the other variables behave like constants. Here is how each rule looks when differentiating with respect to x:

RulePatternExample f(x, y)∂f/∂x
ConstantTerms without x → 05y³0
Constant multiple∂/∂x [c(y)·g(x)] = c(y)·g′(x)y²·x³3x²y²
Power∂/∂x xⁿ = n·xⁿ⁻¹x⁴ + y4x³
Product(uv)′ = u′v + uv′x·sin(xy)sin(xy) + xy·cos(xy)
Quotient(u/v)′ = (u′v − uv′)/v²x/(x + y)y/(x + y)²
Chain∂/∂x g(u) = g′(u)·∂u/∂xex²y2xy·ex²y
Logarithm∂/∂x ln(u) = (∂u/∂x)/uln(x² + y²)2x/(x² + y²)

Notation cheat sheet

SubscriptLeibnizMeaningEnter as
fx∂f/∂xRate of change in the x directionx
fxx∂²f/∂x²Concavity in the x directionxx
fxy∂²f/∂y∂xFirst x, then yxy
fyx∂²f/∂x∂yFirst y, then xyx
fxyz∂³f/∂z∂y∂xx, then y, then zxyz

Worked example with a second-derivative test

Take f(x, y) = x³ − 3xy + y³. The first partials are fx = 3x² − 3y and fy = 3y² − 3x. Setting both to zero gives y = x² and x = y², so the critical points are (0, 0) and (1, 1). The second partials are fxx = 6x, fyy = 6y and fxy = −3, so D = 36xy − 9. At (0, 0), D = −9 < 0: a saddle point. At (1, 1), D = 27 > 0 and fxx = 6 > 0: a local minimum with f(1, 1) = −1. Type the function above and evaluate at each point to check every number.

Want to see the surface itself? Paste the same function into the 3D Graphing Calculator to rotate it and spot the saddle and the minimum.

Frequently asked questions

What is a partial derivative?

A partial derivative measures how a function of several variables changes when only one variable changes and all the others are held constant. For f(x, y) = x²y³, treating y as a constant gives ∂f/∂x = 2xy³, and treating x as a constant gives ∂f/∂y = 3x²y².

How do you calculate a partial derivative?

Pick the variable you differentiate with respect to, treat every other variable as if it were a number, and apply the ordinary derivative rules (power, product, quotient and chain rule). Terms that do not contain the variable are constants and differentiate to 0.

What does f_xy mean?

f_xy is a mixed second partial derivative: differentiate f with respect to x first, then differentiate the result with respect to y. In Leibniz notation it is written ∂²f/∂y∂x, with the variables read right to left. Enter it here as the sequence xy.

Is f_xy always equal to f_yx?

For functions whose second partial derivatives are continuous (true for nearly every formula you meet in class) the order does not matter, so f_xy = f_yx. This is Clairaut's (or Schwarz's) theorem. The Hessian section checks it for your function.

What is the gradient?

The gradient ∇f is the vector of all first partial derivatives, ⟨f_x, f_y, f_z⟩. At a point it points in the direction of steepest increase of f, and its length is the rate of increase in that direction.

What is the Hessian matrix used for?

The Hessian is the matrix of all second partial derivatives. At a critical point (where the gradient is zero) it classifies the point: for two variables, D = f_xx·f_yy − f_xy². D > 0 with f_xx > 0 is a local minimum, D > 0 with f_xx < 0 is a local maximum, and D < 0 is a saddle point.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Derivative CalculatorSymbolic derivative of any f(x) up to 5th order, with steps, slope at a point and a graph.Integral CalculatorDefinite integral of f(x) from a to b with adaptive Simpson, area graph and antiderivative.3D Graphing CalculatorPlot z = f(x, y) surfaces and 3D parametric curves; rotate, zoom, add contours, save PNG.Vector Calculator2D and 3D vectors: add, subtract, dot and cross product, magnitude, angle, unit vector, projection.Graphing CalculatorPlot multiple functions with zoom, pan, intersections and a value table.Exponent CalculatorRaise any number to a power, including negative and fractional exponents.Logarithm CalculatorCalculate log in any base, ln, log10, log2 and antilog with change-of-base steps.Quadratic Equation SolverSolve ax² + bx + c = 0 with exact roots, steps, vertex and a parabola graph.Matrix CalculatorAdd, multiply, invert and row-reduce matrices up to 5×5 with exact fractions and steps.Prime Number CheckerCheck if a number is prime, factor it with a factor tree and list primes in a range.GCF and LCM CalculatorFind the GCF and LCM of two or more numbers with Euclid steps and prime factorization.Cubic Yard CalculatorConvert length, width and depth in any unit to cubic yards, cubic feet, m³ and material weight.Factorial CalculatorExact n! up to 5000! with digit count, trailing zeros and double factorial.Prime Factorization CalculatorFind prime factors in exponent form with a factor tree, divisor count and divisors list.Modulo CalculatorCalculate a mod n and the quotient, with floored, truncated and Euclidean rules.Exponential Growth CalculatorExponential growth and decay: final amount, rate or time, discrete or continuous.Linear Regression CalculatorLeast-squares line of best fit: slope, intercept, r, r², predictions and a scatter plot.System of Equations SolverSolve 2×2, 3×3 and 4×4 linear systems with exact fractions and step-by-step working.Cubic Equation SolverSolve ax³ + bx² + cx + d = 0 for real and complex roots with steps and a graph.Summation CalculatorEvaluate sigma notation: sum any expression in n from a to b with partial sums and a chart.Arithmetic Sequence CalculatorFind the n-th term, sum and full list of an arithmetic sequence, or d from two terms.Geometric Sequence CalculatorFind the n-th term, sum and infinite sum of a geometric sequence, or r from two terms.Fibonacci CalculatorExact n-th Fibonacci number (BigInt), sequence lists, Fibonacci check and golden ratio.Factors CalculatorAll factors and factor pairs of a number, prime factors, divisor count and perfect check.Depth of Field CalculatorNear and far focus limits, depth of field and hyperfocal distance for any camera or lens.Crop Factor CalculatorCrop factor, full-frame equivalent focal length and aperture, and field of view for any sensor.Completing the Square CalculatorRewrite ax² + bx + c in vertex form a(x − h)² + k step by step and solve it.Exposure Value CalculatorEV from aperture, shutter and ISO, or solve any missing setting with sunny 16 presets.Factoring Trinomials CalculatorFactor trinomials and polynomials: GCF, ac method, difference of squares, cubes, with steps.Least Common Denominator CalculatorFind the LCD of two or more fractions and rewrite them as equivalent fractions, with steps.Limiting Reactant CalculatorFind the limiting reactant, theoretical yield and leftover excess from an equation.Parabola CalculatorVertex, focus, directrix, axis, intercepts and graph of a parabola from its equation.Polynomial Root FinderFind all real and complex roots of a polynomial up to degree 10, with the factored form.Prime Number List GeneratorList all primes in a range or the first N primes with a fast sieve; copy or download the list.Quadratic Regression CalculatorFit y = ax² + bx + c (or up to degree 6) to x, y data with R², predictions and a graph.Scatter Plot MakerPaste X,Y pairs for a scatter plot with trendline, equation, r and R². Download PNG.Synthetic Division CalculatorDivide polynomials by x − c (synthetic table) or any polynomial (long division) with steps.Algebra CalculatorSimplify, expand and factor algebraic expressions with exact answers and step-by-step working.Limit CalculatorEvaluate limits at a point or at infinity, one-sided or two-sided, with steps, table and graph.Linear Interpolation CalculatorInterpolate or extrapolate y for any x from two points or a data table, with steps and a plot.Matrix Inverse CalculatorFind the inverse of a 2×2 to 8×8 matrix in exact fractions with Gauss–Jordan or adjugate steps.RREF CalculatorRow reduce any matrix to RREF with exact fractions, every row operation, pivots and rank.Stem and Leaf Plot MakerMake stem-and-leaf plots (standard, split stems or back-to-back) with a key; copy or save PNG.Taylor Series CalculatorTaylor and Maclaurin polynomials of any f(x) to order n, with exact coefficients and a graph.Antilog CalculatorInverse logarithm (antilog) in base 10, e, 2 or any base, with steps and scientific notation.Asymptote CalculatorFind vertical, horizontal and slant asymptotes and holes of a function, with graph and reasoning.Cramer's Rule CalculatorSolve 2x2 and 3x3 linear systems by Cramer's rule with every determinant shown step by step.Dot Plot MakerMake a dot plot or line plot from data or a frequency table; download PNG or SVG.Exponential Regression CalculatorFit y = a·bˣ or y = a·e^(kx) to data with r², predictions, residuals and a plot.Extended Euclidean Algorithm CalculatorFind gcd(a, b) and Bézout coefficients x, y with the full step-by-step division table.Factor Tree GeneratorDraw the prime factor tree of any number as a printable diagram, with exponent form and steps.Function Composition CalculatorFind f(g(x)), g(f(x)), f + g, f · g and f / g with values at a point and domains.X and Y Intercept CalculatorFind the x- and y-intercepts of lines, curves and functions with steps and a graph.Line Intersection CalculatorFind where two lines cross from equations, points or slopes, with parallel checks and a graph.Linear Programming SolverSolve max/min linear programs with the simplex method: tableau steps and a 2-variable graph.Modular Exponentiation CalculatorCompute a^b mod m for huge numbers with square-and-multiply steps (BigInt).Modular Inverse CalculatorFind a⁻¹ mod m with the extended Euclidean algorithm, step by step, for huge numbers too.Nth Term CalculatorFind the nth term formula of a sequence: arithmetic, geometric, quadratic or cubic.Partial Fraction Decomposition CalculatorSplit a rational function into partial fractions with the setup, equations and solution.Perpendicular Line CalculatorEquation of the perpendicular and parallel line through a point, with distance and a graph.Polar Graphing CalculatorGraph polar equations r = f(θ): roses, cardioids, spirals, with a θ range slider and PNG export.Polynomial CalculatorAdd, subtract, multiply, divide and evaluate polynomials; see roots, degree and a graph.Polynomial Long Division CalculatorDivide polynomials with the full long division layout, quotient, remainder and steps.Scale Factor CalculatorScale factor between similar figures, plus scaled lengths, areas (k²) and volumes (k³).Set CalculatorUnion, intersection, difference and complement of up to 4 sets, with a Venn diagram and counts.Table of Values CalculatorMake an x/y table for any function with a start, end and step, then plot it or copy CSV.Determinant CalculatorDeterminant of a 2×2 to 8×8 matrix with exact fractions and cofactor or row-reduction steps.Differential Equation SolverSolve first- and second-order ODEs step by step, with initial conditions, an RK4 check and a graph.
See all 74 Algebra & Calculus Calculators →