Find Maxima and Minima of a Function

Locate local maxima and minima of any function. Finds critical points, classifies each with the second derivative test, and reports the extreme values.

ADVERTISEMENT

Desktop

ADVERTISEMENT

Desktop

ADVERTISEMENT

Desktop

Loading...

Please wait... loading-icon

On this page:

Finding the highest highs and lowest lows

A farmer wants the dimensions of the cheapest fence that encloses a fixed area, which means minimizing a cost function. A product team wants the price that maximizes revenue, which means finding the top of a curve. These are optimization problems, and they all start the same way: locate the extreme points, the local maxima and minima where a function turns around. This calculator finds those turning points and tells you which is which.

The formula, in plain terms

Formula: critical points occur where f'(x) = 0 or f'(x) is undefined; the second derivative f''(x) classifies them

Extreme points can only hide where the slope is zero (flat spots) or where the slope breaks down (corners, cusps). Those candidates are called critical points. The second derivative then acts as a referee: if f'' is positive at a critical point, the curve cups upward and you have a local minimum; if f'' is negative, the curve frowns downward and you have a local maximum.

How to use the calculator

  1. Enter the function you want to optimize.
  2. Note the critical points reported, each a candidate for an extreme point.
  3. Read the classification: local maximum, local minimum, or neither.
  4. Evaluate the function at each extreme point to get the actual max or min values.

Worked example: f(x) = x^3 - 3x

Differentiate: f'(x) = 3x^2 - 3, which factors as 3(x^2 - 1). Setting it to zero gives x = 1 and x = -1, the two critical points. The second derivative is f''(x) = 6x:

  • At x = 1: f''(1) = 6, which is positive, so this is a local minimum. Its value is f(1) = 1 - 3 = -2.
  • At x = -1: f''(-1) = -6, which is negative, so this is a local maximum. Its value is f(-1) = -1 + 3 = 2.

A quick sketch confirms it: the curve rises to (minus 1, 2), falls through the origin region, and bottoms out at (1, minus 2) before climbing again. The algebra and the picture agree.

Where extreme points turn up

Businesses maximize profit and minimize cost, engineers minimize material and weight, and data scientists tune parameters until an error function bottoms out. The derivatives involved often need the quotient rule calculator or the product rule calculator when the function is built from fractions or products, and the curved line slope calculator confirms the slope really is zero at each candidate.

Mistakes to avoid

  • Assuming every critical point is an extreme point. For f(x) = x^3, x = 0 is critical but the curve just flattens and keeps climbing; it is an inflection point, not a max or min.
  • Forgetting the endpoints. On a closed interval, the absolute maximum or minimum often sits at an endpoint, which the derivative never flags. Always check the boundaries.
  • Trusting the second derivative test when f'' = 0. The test is silent there; use the first derivative sign change around the point instead.

What to keep in mind

Local extremes are not global extremes: a function can have a small local peak while its true maximum lives far away or at an endpoint. For the biggest or smallest value over a whole domain, compare every local extreme against the endpoints and the behavior as x goes to infinity before declaring a winner.

Frequently Asked Questions FAQ

What does the Extreme Points Calculator calculate?
The Extreme Points Calculator helps you work through the calculation using the values you enter and presents the result in a simple format.
What formula does it use?
The calculator uses the standard method relevant to this calculation. The formula shown on this page is: Critical points occur where f'(x)=0 or f'(x) is undefined; classification can use the second derivative.
What values should I enter?
Enter the requested numbers or expressions exactly as shown by the calculator. Check signs, units, and decimal values before calculating.
Can I use this calculator for learning?
Yes. It can be useful for checking examples, homework, practice, and understanding how a formula is applied to real values.
Why might my answer be different?
A different result can come from rounding, input values, units, or using a different formula or calculation method. Compare the steps as well as the final answer.
How can I check the result?
Review the inputs, apply the displayed formula manually to a simple example, and compare the result with the calculator output. This is especially useful when studying.

Have Feedback or a Suggestion?

Kindy let us know your reveiws about this page

;