Local minimum
For \(f=x^2+y^2\), the only critical point is \((0,0)\). The Hessian eigenvalues are \(2,2\), so both directions curve upward.
Enter a scalar function of one, two, or three variables. The calculator builds its exact symbolic gradient and Hessian, searches a bounded region for critical points, and applies the Hessian eigenvalue test—all locally in your browser.
Use ^ for powers and * between variables. Supported functions include sin, cos, exp, ln, and sqrt.
Use 1–3 distinct single-letter variables.
The same closed interval is searched along every variable axis.
Enter one coordinate per variable, such as 1, 0.
Keyboard shortcut: Ctrl/⌘ + Enter.
The derivative and classification steps will appear here.
Numerical-search limit: a bounded multi-start search is evidence, not proof of completeness. It may miss critical points of highly oscillatory, flat, singular, or ill-conditioned functions. The Hessian test is also inconclusive when an eigenvalue is zero or numerically near zero.
For a twice-differentiable scalar function \(f(x_1,\ldots,x_n)\), the Hessian is the square matrix of second partial derivatives:
A critical point satisfies \(\nabla f=\mathbf 0\) when the gradient exists. At such a point, a positive-definite Hessian gives a strict local minimum, a negative-definite Hessian gives a strict local maximum, and an indefinite Hessian gives a saddle point. This is the multivariable second derivative test described in OpenStax Calculus, Volume 3, section 4.7.
For \(f=x^2+y^2\), the only critical point is \((0,0)\). The Hessian eigenvalues are \(2,2\), so both directions curve upward.
For \(f=-x^2-y^2\), the Hessian eigenvalues are \(-2,-2\), so the critical point at the origin is a strict local maximum.
For \(f=x^2-y^2\), the eigenvalues \(2,-2\) have opposite signs. The surface curves up in one direction and down in another.
For \(f=x^4+y^4\), the origin is a minimum but the Hessian there is zero. The second derivative test alone is inconclusive, so higher-order reasoning is required.
It is the square matrix containing every second-order partial derivative of a scalar-valued function. Its row and column order follows the variables you enter.
It runs damped Newton iterations from a fixed grid of starting locations inside your bounds and keeps distinct finite points where the gradient norm is at most \(10^{-7}\).
Yes. Numerical root finding is not a completeness proof. Try narrower or shifted bounds, test a known point directly, and use analytic reasoning for flat, oscillatory, singular, or difficult functions.
Positive Hessian eigenvalues indicate a local minimum, negative eigenvalues indicate a local maximum, and mixed signs indicate a saddle point. A zero or near-zero eigenvalue makes this test inconclusive.
It means the Hessian has a zero or numerically near-zero eigenvalue. The point can still be a minimum, maximum, saddle, or neither; higher-order terms or another argument are needed.
No. It searches for stationary points where the gradient exists and is approximately zero. Cusps, corners, discontinuities, and other points where a first derivative does not exist require separate domain analysis.
Equivalent symbolic expressions can have different forms. For sufficiently smooth functions, the mixed partials are equal even when the calculator’s algebraic formatting does not make that equality visually obvious.
No. This tool searches for unconstrained critical points where the full gradient is zero. A boundary optimum that does not have zero gradient requires constrained optimization or endpoint analysis.
No. Parsing, differentiation, root searching, and classification run on your device.