Critical Points Calculator for Multivariable Functions

Solve gradients and classify points with Hessian checks. Review steps, assumptions, and exportable result data. Use examples to compare minima, maxima, and saddles accurately.

Calculator

Use x, y, and optional z. Example: x^2 + y^2 - 4*x + 6*y + 10

Example Data Table

Function Variables Expected point Classification
x^2 + y^2 - 4*x + 6*y + 10 x, y (2, -3) Local minimum
-x^2 - y^2 + 2*x - 8*y x, y (1, -4) Local maximum
x^2 - y^2 x, y (0, 0) Saddle point

Formula Used

For f(x,y), the critical point condition is ∇f = (fx, fy) = (0, 0).

For f(x,y,z), the condition is ∇f = (fx, fy, fz) = (0, 0, 0).

The calculator estimates first derivatives with central differences: fx ≈ [f(x+h,y) - f(x-h,y)] / 2h.

Second derivatives form the Hessian matrix. For two variables, D = fxxfyy - fxy².

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.

How to Use This Calculator

Enter a smooth function using x and y. Select three variables when z is included.

Choose grid search when you want to test many starting points. Choose single seed when you already know a nearby point.

Set a smaller tolerance for stricter convergence. Use a wider grid range when the function may have several stationary points.

Press the submit button. The result appears above the form and below the header section.

About Critical Points

Critical points show where a multivariable function may flatten, turn, or change behavior. They appear when every first partial derivative is zero, or when a derivative is undefined. In many practical problems, they mark possible best, worst, or unstable settings. Engineers use them for surfaces. Analysts use them for cost, profit, and response models.

Why Gradients Matter

The gradient collects all first partial derivatives. For a function f(x,y), the gradient is fx and fy. For f(x,y,z), it also includes fz. A zero gradient means the local slope vanishes in every selected direction. That condition does not prove a maximum or minimum. It only creates a candidate point that needs testing.

How Hessian Testing Helps

The Hessian matrix stores second partial derivatives. In two variables, the determinant D = fxxfyy - fxy² guides classification. If D is positive and fxx is positive, the point is a local minimum. If D is positive and fxx is negative, the point is a local maximum. If D is negative, the point is a saddle point. When D is near zero, the test is inconclusive.

Using This Calculator

This tool estimates partial derivatives by central differences. It then uses Newton style updates to solve the gradient system. You can provide one seed, or let the grid search test many seeds across a range. Several unique points may be found. Tight tolerances improve accuracy, but may require more iterations. Smooth functions usually work best.

Reading The Result

Each result shows the point, function value, gradient size, iteration count, and classification. A small gradient norm is important. A high norm means the point may be only a rough approximation. The notes column explains the Hessian decision. Export options help you save the results for reports.

Best Inputs

Enter functions with standard operators. Use parentheses around products. Start with simple examples. Then expand ranges slowly when many stationary candidates may exist.

Helpful Limits

Numerical methods can miss points outside the search range. They can also struggle with discontinuities, sharp corners, and flat plateaus. Try several ranges and seeds when the surface is complex. Use symbolic checks for final academic or legal work. This calculator is a strong guide, not a proof engine.

FAQs

What is a critical point?

A critical point is a point where all first partial derivatives are zero, or where a derivative does not exist. It is a candidate for a local maximum, local minimum, or saddle point.

Does this calculator solve every function exactly?

No. It uses numerical derivative estimates and Newton style iteration. It works best for smooth functions. Very sharp, discontinuous, or highly oscillating functions may need symbolic work or several search ranges.

What functions are supported?

You can use common operators and functions like sin, cos, tan, sqrt, abs, exp, log, pow, min, and max. Use x, y, and z as variables.

Why is my result inconclusive?

An inconclusive result often means the Hessian determinant is near zero. The second derivative test cannot decide the type. Try more analysis, plotting, or a symbolic method.

What is grid search mode?

Grid search tests multiple starting seeds across your chosen range. It can find more than one stationary point. It may take longer when you use three variables or many grid points.

How should I choose derivative step?

A small step usually improves local derivative estimates. Too small can add rounding noise. Values between 0.001 and 0.00001 are often practical for smooth, scaled functions.

Can this classify three variable functions?

Yes. It checks Hessian definiteness using leading minors. Positive definite suggests a local minimum. Negative definite suggests a local maximum. A nondefinite Hessian indicates a saddle point.

Why should I export the result?

CSV and PDF exports make the calculation easier to store, compare, and share. They include coordinates, function values, gradient size, classification, and notes.


Related Calculators

Paver Sand Bedding Calculator (depth-based)Paver Edge Restraint Length & Cost CalculatorPaver Sealer Quantity & Cost CalculatorExcavation Hauling Loads Calculator (truck loads)Soil Disposal Fee CalculatorSite Leveling Cost CalculatorCompaction Passes Time & Cost CalculatorPlate Compactor Rental Cost CalculatorGravel Volume Calculator (yards/tons)Gravel Weight Calculator (by material type)

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.