Hessian Calculator | Classify Critical Points


Hessian Calculator

Analyze multivariable functions and classify critical points with our powerful Hessian matrix calculator.

Function & Point Evaluator

Enter the second partial derivatives of a two-variable function f(x, y) and the point to evaluate.


Enter the expression for the partial derivative with respect to x, twice. Use * for multiplication.


Enter the expression for the partial derivative with respect to y, twice.


Enter the expression for the mixed partial derivative (Clairaut’s theorem assumes fxy = fyx).




Nature of Critical Point
Local Minimum

Hessian Determinant (D)
36.00

fxx(a,b)
6.00

Eigenvalues (λ₁, λ₂)
6.00, 6.00

Hessian Matrix H(a,b)

[ 6.00, 0.00 ]
[ 0.00, 6.00 ]

The formula used is the second partial derivative test. A point is a local minimum if D > 0 and fxx > 0, a local maximum if D > 0 and fxx < 0, and a saddle point if D < 0.

Visualization of the Critical Point

A conceptual visualization of the surface curvature at the critical point.

What is a Hessian Calculator?

A Hessian calculator is a computational tool used in multivariable calculus to determine the nature of critical points of a function. It computes the Hessian matrix, which is a square matrix of second-order partial derivatives. By analyzing this matrix at a specific point, one can classify the point as a local minimum, local maximum, or a saddle point. This process is fundamental to optimization problems in fields like mathematics, physics, engineering, economics, and machine learning. Our online hessian calculator automates this complex analysis, providing instant results for the Hessian matrix, its determinant, and the classification of the point.

This tool is designed for students learning multivariable calculus, engineers solving optimization problems, and data scientists analyzing loss functions. The primary purpose of a hessian calculator is to apply the second partial derivative test to functions of two or more variables. If you’ve found a point where the gradient of a function is zero, this calculator is the next step to understanding the geometry of the function’s surface at that specific location.

Hessian Calculator Formula and Mathematical Explanation

The Hessian matrix, denoted as H(f), organizes all the second partial derivatives of a scalar-valued function f. For a function of two variables, f(x, y), the Hessian matrix is a 2×2 matrix defined as:

H(f) =

[ fxx(x, y)   fxy(x, y) ]
[ fyx(x, y)   fyy(x, y) ]

According to Clairaut’s theorem, if the second partial derivatives are continuous, then the mixed partial derivatives are equal (fxy = fyx), making the Hessian matrix symmetric. The key to classifying a critical point (a, b) where the gradient is zero is the determinant of the Hessian matrix evaluated at that point, often called the discriminant (D).

D(a, b) = det(H(a, b)) = fxx(a, b) * fyy(a, b) – [fxy(a, b)]2

The second partial derivative test uses D and the sign of fxx(a,b) to classify the point:

  • If D > 0 and fxx(a, b) > 0, then f has a local minimum at (a, b).
  • If D > 0 and fxx(a, b) < 0, then f has a local maximum at (a, b).
  • If D < 0, then f has a saddle point at (a, b).
  • If D = 0, the test is inconclusive.
Variables in the Hessian Calculation
Variable Meaning Unit Typical Range
fxx Second partial derivative with respect to x Function-dependent (-∞, +∞)
fyy Second partial derivative with respect to y Function-dependent (-∞, +∞)
fxy Mixed second partial derivative Function-dependent (-∞, +∞)
D Determinant of the Hessian (Discriminant) Function-dependent (-∞, +∞)

Practical Examples (Real-World Use Cases)

Example 1: Finding a Local Minimum

Consider the function f(x, y) = x2 + y2. This function describes a paraboloid. We want to classify the critical point at (0, 0).

  1. First Derivatives: fx = 2x, fy = 2y. Setting these to zero gives the critical point (0, 0).
  2. Second Derivatives: fxx = 2, fyy = 2, fxy = 0.
  3. Use the Hessian Calculator: Entering these constant derivatives into the hessian calculator for point (0,0) yields the Hessian matrix: [,].
  4. Interpret Results: The determinant D = (2)(2) – 02 = 4. Since D > 0 and fxx = 2 > 0, the point (0, 0) is a local minimum, which is the vertex of the paraboloid.

Example 2: Identifying a Saddle Point

Now, let’s analyze f(x, y) = x2 – y2 at its critical point (0, 0).

  1. First Derivatives: fx = 2x, fy = -2y. The critical point is (0, 0).
  2. Second Derivatives: fxx = 2, fyy = -2, fxy = 0.
  3. Use the Hessian Calculator: The Hessian matrix at (0, 0) is [, [0, -2]].
  4. Interpret Results: The determinant D = (2)(-2) – 02 = -4. Since D < 0, the hessian calculator correctly identifies the point (0, 0) as a saddle point. The function curves up in the x-direction and down in the y-direction, like a horse's saddle. Using a saddle point calculator helps confirm this analysis.

How to Use This Hessian Calculator

This hessian calculator is designed for ease of use while providing a comprehensive analysis of a function’s critical point. Follow these steps:

  1. Compute Second Partial Derivatives: Before using the calculator, you must manually find the second partial derivatives (fxx, fyy, and fxy) of your function f(x, y). This is a crucial step in understanding multivariable calculus calculator applications.
  2. Enter the Derivative Functions: Input your calculated derivative expressions into the corresponding fields. You can use ‘x’ and ‘y’ as variables (e.g., `2*x + y`).
  3. Specify the Critical Point: Enter the x and y coordinates of the critical point you are investigating. This is the point where the function’s gradient is zero.
  4. Analyze the Real-Time Results: The hessian calculator instantly updates.
    • The Primary Result tells you if the point is a Local Minimum, Local Maximum, or Saddle Point.
    • The Intermediate Values show the calculated Hessian Determinant (D), the value of fxx, and the matrix’s eigenvalues, which are crucial for the second partial derivative test.
    • The Hessian Matrix itself is displayed, evaluated at your specified point.
    • The Dynamic Chart provides a visual representation of the surface’s curvature, helping you intuitively understand the result.
  5. Reset or Copy: Use the ‘Reset’ button to return to the default example or ‘Copy Results’ to save a summary of your calculation for your notes.

Key Factors That Affect Hessian Calculator Results

The outcome of a hessian calculator analysis is sensitive to several mathematical factors that define the curvature of a function’s surface at a critical point. Understanding these is key to interpreting the results correctly in various optimization problems.

  • Sign of fxx and fyy: These values represent the concavity in the x and y directions, respectively. If both are positive, the function is concave up in both directions, suggesting a minimum. If both are negative, it suggests a maximum.
  • Magnitude of Mixed Derivative (fxy): The mixed partial derivative measures how the slope in one direction changes as you move in another direction. A large fxy value indicates a significant twisting or shearing effect on the surface.
  • The Discriminant (D): This is the most critical factor. It elegantly combines the pure and mixed derivatives. A positive D means the concavity in the primary directions (fxx, fyy) dominates any twisting (fxy), resulting in a clear minimum or maximum. A negative D means the twisting effect is so strong that it creates a saddle point.
  • Eigenvalues of the Hessian: The eigenvalues provide the most profound insight. They represent the principal curvatures at the point. Two positive eigenvalues mean the surface curves up in all directions (minimum). Two negative eigenvalues mean it curves down in all directions (maximum). A mix of positive and negative eigenvalues is the definitive signature of a saddle point. For more on this, see a eigenvalue calculator.
  • Critical Point Location: The classification is entirely dependent on the point of evaluation. A function can have multiple critical points of different types (e.g., one minimum and one saddle point). A proper hessian calculator analysis must be performed at each distinct critical point.
  • Function Complexity: For complex, non-polynomial functions, the second derivatives can change signs across the domain, leading to a rich variety of local extrema and saddle points. Analyzing the linear algebra basics of the Hessian matrix is essential here.

Frequently Asked Questions (FAQ)

1. What does the Hessian matrix represent?

The Hessian matrix is the multivariable equivalent of the second derivative. It’s a matrix of second-order partial derivatives that describes the local curvature of a function of many variables. Our hessian calculator uses it to understand how the function bends at a critical point.

2. What if the Hessian determinant (D) is zero?

If D = 0, the second partial derivative test is inconclusive. The critical point could be a local minimum, maximum, or saddle point. Higher-order derivative tests or other analysis methods are required to classify the point. For example, f(x,y) = x4 + y4 has a minimum at (0,0), but D=0.

3. Can this hessian calculator handle functions of three or more variables?

This specific hessian calculator is optimized for two-variable functions, f(x, y), resulting in a 2×2 Hessian matrix. The concept extends to more variables (an n-variable function has an n x n Hessian), but the classification rules become more complex, relying on the signs of all the matrix’s eigenvalues.

4. What is the difference between the Hessian and the Jacobian?

The Hessian is a matrix of second partial derivatives of a scalar-valued function. The Jacobian is a matrix of first partial derivatives of a vector-valued function. The Hessian deals with curvature, while the Jacobian deals with linear approximation of transformations.

5. Why is the Hessian important in machine learning?

In machine learning, the Hessian matrix describes the curvature of the loss function. This information is used in advanced optimization algorithms like Newton’s method to find the minimum of the loss function more quickly. It helps diagnose issues like saddle points, which can slow down training. Our hessian calculator simulates this type of analysis.

6. What is a saddle point?

A saddle point is a critical point that is a maximum in one direction but a minimum in another. The surface resembles a horse’s saddle. This occurs when the Hessian determinant is negative. Using this hessian calculator is an effective way to find them.

7. Does the hessian calculator find the critical points for me?

No. You must first find the critical points yourself by calculating the gradient (the vector of first partial derivatives) and finding where it equals the zero vector. This hessian calculator is for the next step: classifying those points. You may need a derivative calculator to find the first partial derivatives.

8. What are eigenvalues in the context of the Hessian matrix?

The eigenvalues of the Hessian matrix represent the principal curvatures at the critical point. Their signs are a definitive way to classify the point: two positive eigenvalues imply a local minimum, two negative imply a local maximum, and one of each implies a saddle point. This is a more robust method than the determinant test, especially for higher dimensions.

Related Tools and Internal Resources

Expand your understanding of calculus and optimization with these related tools and guides:

  • Derivative Calculator: A tool to find the first derivative of single-variable functions, a foundational skill for finding critical points.
  • Integral Calculator: Explore the reverse operation of differentiation and calculate areas under curves.
  • Matrix Determinant Calculator: A focused tool to compute the determinant of any square matrix, a key part of the hessian calculator logic.
  • Critical Point Classification: A detailed guide on the theory behind finding and classifying critical points.
  • Calculus Formulas: A comprehensive list of essential formulas for derivatives, integrals, and more.
  • Local Extrema Finder: Another tool focused on the same goal as this hessian calculator, helping you find local maxima and minima.

© 2026 Professional Web Tools. All Rights Reserved. For educational purposes only.



Leave a Reply

Your email address will not be published. Required fields are marked *