Loading…

Local Extrema Finder

Math Calculus • Differential Equations

View all topics

Find and classify local extrema of a two-variable function \(f(x,y)\). The calculator solves \(f_x=0\) and \(f_y=0\), builds the Hessian matrix, applies the second derivative test, and marks local maxima, local minima, and saddle points on a clear animated 3D surface.

Critical point condition \(\displaystyle f_x=0,\qquad f_y=0\) Hessian matrix \(\displaystyle H=\begin{pmatrix}f_{xx}&f_{xy}\\f_{yx}&f_{yy}\end{pmatrix}\) Discriminant \(\displaystyle D=f_{xx}f_{yy}-f_{xy}^{\,2}\) Classification \(\displaystyle D>0,\ f_{xx}>0\Rightarrow\text{local min}\)

Function and search settings

Supported: \(x\), \(y\), powers, fractions, implicit multiplication, sin, cos, tan, sqrt, ln, exp, abs, constants pi and e.
More seeds can find more critical points but may take longer.
Live preview

Quick examples

Ready
Enter a function and click “Find extrema”.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What is a critical point?

A critical point is a point where both first partial derivatives are zero, so fx = 0 and fy = 0.

What is the Hessian matrix?

The Hessian matrix is the matrix of second partial derivatives: [[fxx, fxy], [fyx, fyy]].

How does the second derivative test classify points?

Use D = fxx fyy - fxy^2. If D > 0 and fxx > 0, the point is a local minimum. If D > 0 and fxx < 0, it is a local maximum. If D < 0, it is a saddle point. If D = 0, the test is inconclusive.

Why might no critical point be found?

The point may be outside the selected search region, the function may not have a critical point, or the numerical solver may need more starting points.

Can the calculator find several critical points?

Yes. It searches from many starting points and merges duplicate solutions.

What does inconclusive mean?

Inconclusive means the Hessian determinant is near zero, so the standard second derivative test cannot classify the point.