19
2
18
6
10
-2
18.11077
56
—
19
2
18
6
10
-2
18.11077
56
—
The Partial Derivative Calculator computes the partial derivatives of a two-variable quadratic function $$f(x,y) = ax^2 + bxy + cy^2 + dx + ey + f$$ at any specified point. It calculates both first-order partial derivatives ($$\partial f/\partial x$$ and $$\partial f/\partial y$$), all three second-order partial derivatives, the gradient magnitude, and the Hessian determinant with classification. This is a fundamental tool for multivariable calculus, optimization, and surface analysis.
Partial derivatives extend the concept of a derivative to functions of multiple variables. Unlike ordinary differentiation, where you differentiate with respect to the only independent variable, partial differentiation holds all variables constant except the one you are differentiating with respect to. The notation $$\frac{\partial f}{\partial x}$$ means "differentiate f treating y as a constant," and $$\frac{\partial f}{\partial y}$$ means "differentiate f treating x as a constant."
The theory of partial derivatives was developed in the 18th century by Leonhard Euler, Alexis Clairaut, and Joseph-Louis Lagrange. Clairaut's theorem, a key result, states that for functions with continuous second partial derivatives, the mixed partials are equal: $$\frac{\partial^2 f}{\partial x \partial y} = \frac{\partial^2 f}{\partial y \partial x}$$. This symmetry is confirmed by the calculator — both mixed partials equal $$b$$.
For the quadratic function $$f(x,y) = ax^2 + bxy + cy^2 + dx + ey + f$$, the partial derivatives are exact and elegant:
$$\frac{\partial f}{\partial x} = 2ax + by + d, \qquad \frac{\partial f}{\partial y} = bx + 2cy + e$$
The gradient vector $$\nabla f = \left(\frac{\partial f}{\partial x}, \frac{\partial f}{\partial y}\right)$$ points in the direction of steepest ascent of the surface. Its magnitude tells you how rapidly the function is changing. The gradient is zero at critical points, where the surface has a local maximum, local minimum, or saddle point.
The Hessian matrix of second partial derivatives determines the nature of critical points. For our quadratic, the Hessian is constant: $$H = \begin{pmatrix} 2a & b \\ b & 2c \end{pmatrix}$$. Its determinant $$D = 4ac - b^2$$ classifies the surface: $$D > 0$$ with $$a > 0$$ gives a local minimum (elliptic paraboloid opening up), $$D > 0$$ with $$a < 0$$ gives a local maximum (opening down), $$D < 0$$ gives a saddle point (hyperbolic paraboloid), and $$D = 0$$ is degenerate.
Applications of partial derivatives span every quantitative field. In thermodynamics, partial derivatives relate pressure, volume, and temperature changes. In machine learning, gradient descent uses partial derivatives to optimize model parameters. In economics, partial derivatives compute marginal productivity of labor and capital. In fluid dynamics, partial derivatives appear in the Navier-Stokes equations. Enter your function coefficients and evaluation point below.
The calculator differentiates the quadratic $$f(x,y) = ax^2 + bxy + cy^2 + dx + ey + f$$ with respect to each variable.
First-order partial derivatives:
$$\frac{\partial f}{\partial x} = 2ax + by + d$$
$$\frac{\partial f}{\partial y} = bx + 2cy + e$$
Second-order partial derivatives:
$$\frac{\partial^2 f}{\partial x^2} = 2a, \quad \frac{\partial^2 f}{\partial y^2} = 2c, \quad \frac{\partial^2 f}{\partial x \partial y} = b$$
Gradient magnitude:
$$|\nabla f| = \sqrt{\left(\frac{\partial f}{\partial x}\right)^2 + \left(\frac{\partial f}{\partial y}\right)^2}$$
Hessian determinant:
$$D = \frac{\partial^2 f}{\partial x^2} \cdot \frac{\partial^2 f}{\partial y^2} - \left(\frac{\partial^2 f}{\partial x \partial y}\right)^2 = 4ac - b^2$$
Classification: If $$D > 0$$ and $$2a > 0$$, the Hessian is positive definite (local minimum). If $$D > 0$$ and $$2a < 0$$, negative definite (local maximum). If $$D < 0$$, indefinite (saddle point). If $$D = 0$$, degenerate.
f(x,y) is the function value at the given point — the height of the surface above the xy-plane.
∂f/∂x is the rate of change of f in the x-direction (holding y constant). It tells you how the surface slopes in the x-direction at that point.
∂f/∂y is the rate of change of f in the y-direction (holding x constant).
Second partial derivatives (∂²f/∂x², ∂²f/∂y², ∂²f/∂x∂y) describe the curvature of the surface. For this quadratic, they are constants that characterize the shape everywhere.
Gradient Magnitude measures the steepness of the surface. A larger magnitude means the function is changing more rapidly. At a critical point, the gradient magnitude is zero.
Hessian Determinant classifies the surface shape. Positive definite means a bowl (minimum). Negative definite means an inverted bowl (maximum). Indefinite means a saddle, where the surface curves up in one direction and down in another.
Inputs
Results
∂f/∂x = 6(1) + (−2)(2) = 2. ∂f/∂y = (−2)(1) + 10(2) = 18. Hessian det = (6)(10) − (−2)² = 56 > 0, and ∂²f/∂x² = 6 > 0, so the surface is an elliptic paraboloid with a minimum at the origin.
Inputs
Results
Hessian det = (2)(2) − (−4)² = 4 − 16 = −12 < 0, confirming a saddle point. The surface curves upward in some directions and downward in others.
An ordinary derivative applies to functions of one variable — it measures the total rate of change. A partial derivative applies to functions of two or more variables — it measures the rate of change with respect to one variable while holding all others constant. For a function of one variable, the partial and ordinary derivatives are identical.
The gradient $$\nabla f = (\partial f/\partial x, \partial f/\partial y)$$ is a vector that points in the direction of steepest ascent of the surface at any point. Its magnitude indicates how steep that ascent is. The gradient is fundamental to optimization algorithms like gradient descent, where you move in the direction opposite to the gradient to minimize a function.
The Hessian is the matrix of all second partial derivatives. For a function of two variables, it is a 2×2 matrix. Its determinant determines whether a critical point is a maximum, minimum, or saddle point — this is the second partial derivative test for multivariable functions. The eigenvalues of the Hessian give the principal curvatures of the surface.
Because our function is a quadratic (degree 2), the second partial derivatives are all constants (independent of x and y). This means the Hessian is the same everywhere, and the surface has uniform curvature. For higher-degree functions, the Hessian would vary from point to point.
A saddle point is a critical point where the surface curves upward in one direction and downward in another, like a mountain pass or a horse saddle. At a saddle point, the gradient is zero but the point is neither a maximum nor a minimum. The Hessian determinant is negative at saddle points.
Clairaut's theorem states that if the mixed partial derivatives are continuous, then $$\frac{\partial^2 f}{\partial x \partial y} = \frac{\partial^2 f}{\partial y \partial x}$$. For polynomials, this always holds. This symmetry means the order of differentiation doesn't matter, which simplifies computation of the Hessian matrix.
Roboculator Team
The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.
How helpful was this calculator?
Be the first to rate!