The Partial Derivative Calculator computes partial derivatives of functions with multiple variables. It differentiates with respect to your chosen variable while treating all other variables as constants.
Enter a multivariable function (e.g. x^2*y + sin(y)) and specify which variable to differentiate with respect to. The calculator uses symbolic differentiation to give exact results.
Your calculations will appear here
A partial derivative measures how a multivariable function changes when one variable changes while all other variables are held constant. If f(x, y) is a function of two variables, the partial derivative with respect to x, written as a curly-d f / curly-d x, tells you the instantaneous rate of change of f in the x-direction at any given point. The formal definition mirrors the ordinary derivative but fixes all variables except the one being differentiated: curly-d f / curly-d x = lim as h approaches 0 of [f(x+h, y) - f(x, y)] / h.
Several notations are used for partial derivatives, and understanding them is essential when reading textbooks and research papers. The most common is Leibniz notation: curly-d f / curly-d x. Subscript notation writes the same thing as f_x or f_y. The operator notation D_x f is also used, particularly in differential equations. For higher-order derivatives, curly-d squared f / curly-d x squared denotes the second partial with respect to x, while curly-d squared f / (curly-d x curly-d y) denotes a mixed partial derivative.
Geometrically, a partial derivative has a clear visual interpretation. For a function f(x, y) that defines a surface in three-dimensional space, the partial derivative curly-d f / curly-d x at a point (a, b) gives the slope of the tangent line to the curve formed by slicing the surface with the plane y = b. In other words, you freeze y at the value b and look at how the surface rises or falls as x changes. Similarly, curly-d f / curly-d y gives the slope of the tangent line when you slice with the plane x = a. These tangent lines together define the tangent plane to the surface at that point.
The gradient vector, denoted nabla f or grad f, collects all partial derivatives into a single vector: nabla f = (curly-d f / curly-d x, curly-d f / curly-d y) in two dimensions, or (curly-d f / curly-d x, curly-d f / curly-d y, curly-d f / curly-d z) in three dimensions. The gradient always points in the direction of steepest ascent of the function and its magnitude equals the maximum rate of change. This makes it central to optimisation. A directional derivative in any unit vector direction u can be computed as the dot product of the gradient with u: D_u f = nabla f dot u. Level curves (contours) of f are always perpendicular to the gradient.
Higher-order partial derivatives are obtained by differentiating a partial derivative again. The second-order partial curly-d squared f / curly-d x squared measures the concavity of f in the x-direction. Mixed partial derivatives, such as curly-d squared f / (curly-d x curly-d y), measure how the rate of change in one direction varies as the other variable changes. Clairaut's theorem (also called Schwarz's theorem) states that if the mixed partial derivatives are continuous, then the order of differentiation does not matter: curly-d squared f / (curly-d x curly-d y) = curly-d squared f / (curly-d y curly-d x). The Hessian matrix collects all second-order partial derivatives and is used to classify critical points as local maxima, local minima, or saddle points.
Partial derivatives have wide-ranging applications across science, engineering, economics, and computing. In physics, thermodynamic quantities such as entropy, pressure, and temperature are related through partial derivatives (Maxwell relations). In electromagnetism, Maxwell's equations involve partial derivatives of electric and magnetic fields. In economics, marginal cost is the partial derivative of total cost with respect to quantity, while marginal utility is the partial derivative of a utility function with respect to the quantity of a good consumed. In machine learning and artificial intelligence, gradient descent is the primary optimisation algorithm: it computes the gradient (vector of partial derivatives) of a loss function with respect to model parameters and updates those parameters in the direction of steepest descent. Backpropagation in neural networks is fundamentally a chain of partial derivative calculations using the multivariable chain rule.
Problem: Find curly-d f / curly-d x of f(x, y) = x^2*y + 3x*y^2
Solution: Treat y as a constant. Differentiate each term with respect to x: d/dx(x^2*y) = 2x*y (power rule, y is constant), d/dx(3x*y^2) = 3y^2 (y^2 is constant).
Answer: curly-d f / curly-d x = 2xy + 3y^2
Problem: Find curly-d f / curly-d y of f(x, y) = x^2*y + 3x*y^2
Solution: Treat x as a constant. Differentiate each term with respect to y: d/dy(x^2*y) = x^2 (x^2 is constant), d/dy(3x*y^2) = 6xy (power rule, 3x is constant).
Answer: curly-d f / curly-d y = x^2 + 6xy
Problem: Find curly-d f / curly-d x of f(x, y) = sin(x*y)
Solution: Apply the chain rule. The outer function is sin(u) with u = x*y. The derivative of sin(u) is cos(u). The derivative of u = x*y with respect to x is y (treating y as constant). So curly-d f / curly-d x = cos(x*y) * y.
Answer: curly-d f / curly-d x = y*cos(xy)
Problem: Find curly-d f / curly-d x of f(x, y) = e^(x^2 + y^2)
Solution: Apply the chain rule. Let u = x^2 + y^2. Then d/dx[e^u] = e^u * du/dx. Since du/dx = 2x (y^2 is constant), we get curly-d f / curly-d x = 2x * e^(x^2 + y^2).
Answer: curly-d f / curly-d x = 2x * e^(x^2 + y^2)
Problem: Find curly-d f / curly-d y of f(x, y, z) = x*y*z + x^2*z
Solution: Treat x and z as constants. d/dy(x*y*z) = x*z (x*z is constant factor). d/dy(x^2*z) = 0 (no y present). So curly-d f / curly-d y = xz.
Answer: curly-d f / curly-d y = xz
Problem: Find curly-d^2 f / (curly-d x curly-d y) of f(x, y) = x^3*y^2 + 2x*y
Solution: First compute curly-d f / curly-d y = 2x^3*y + 2x (treat x as constant). Then differentiate this result with respect to x: d/dx(2x^3*y) = 6x^2*y, d/dx(2x) = 2. So the mixed partial is 6x^2*y + 2. Note: by Clairaut's theorem, differentiating in the opposite order gives the same result.
Answer: curly-d^2 f / (curly-d x curly-d y) = 6x^2*y + 2
Problem: The temperature at point (x, y) on a metal plate is T(x, y) = 100 - x^2 - 2*y^2. Find the rate of temperature change in the x-direction at the point (1, 2).
Solution: Compute curly-d T / curly-d x = -2x. Evaluate at (1, 2): curly-d T / curly-d x at (1, 2) = -2(1) = -2. This means the temperature decreases at a rate of 2 degrees per unit distance in the x-direction.
Answer: curly-d T / curly-d x at (1, 2) = -2
Problem: A firm's profit function is P(q1, q2) = 50*q1 + 80*q2 - q1^2 - 2*q2^2 - q1*q2, where q1 and q2 are quantities of two products. Find the marginal profit with respect to q1.
Solution: The marginal profit with respect to q1 is the partial derivative curly-d P / curly-d q1. Treat q2 as constant: d/dq1(50*q1) = 50, d/dq1(-q1^2) = -2*q1, d/dq1(-q1*q2) = -q2, and the other terms have zero derivative. So curly-d P / curly-d q1 = 50 - 2*q1 - q2.
Answer: curly-d P / curly-d q1 = 50 - 2q1 - q2
Calculate derivatives of any function step by step. Supports higher-order derivatives, partial derivatives, and common functions. Free online tool.
Calculate indefinite integrals (antiderivatives) of functions. Symbolic integration with step-by-step display. Free online integral calculator.
Calculate definite integrals with upper and lower bounds. Numerical integration using Simpson's rule. Free online definite integral calculator.
Calculate double integrals over rectangular regions. Numerical evaluation of two-variable integrals. Free online double integral calculator.
Calculate limits of functions as a variable approaches a value. Supports left and right limits. Free online limit calculator.
Evaluate mathematical series and calculate partial sums. Arithmetic, geometric, and custom series. Free online series calculator.