Local Extrema Calculator

Local Extrema Calculator





Every parabola has one turning point, and finding it quickly is the job of the Local Extrema Calculator on this page. Enter the three coefficients of a quadratic function, a, b, and c, and the calculator returns the critical point x, the extremum value at that point, and the second derivative, the number that tells you whether the turning point is a local minimum or a local maximum.

A local extremum is a point where a function is higher or lower than all nearby points: a local maximum at the top of a hill, a local minimum at the bottom of a valley. For a quadratic function written as f(x) = ax² + bx + c, there is exactly one such point, the vertex, and it can be found exactly with simple algebra.

This guide explains where the vertex formula comes from, how the derivative and second derivative confirm the answer, and what the turning point means in projectile, profit, and area problems. Two fully worked examples use the same three inputs and outputs as the calculator, so you can follow every number from entry to interpretation.

What Local Extrema Are

An extremum is a function value that beats its neighbours. A local maximum is greater than every value just beside it, and a local minimum is smaller than every value just beside it. The word local matters: a point can rule its neighbourhood without being the highest or lowest point of the whole function.

Quadratics keep things friendly. A parabola either opens upward like a bowl or downward like a dome, so it has exactly one local extremum: a minimum if it opens upward, a maximum if it opens downward. The calculator’s second-derivative output is what settles which case you are in.

The Vertex Formula

The x-coordinate of the vertex is given by x = −b / (2a). This is not a formula to memorize blindly: the two roots of a quadratic sit symmetrically around the vertex, and averaging them produces exactly this expression, since the sum of the roots is −b/a.

Once x is known, the extremum value is just the function evaluated there: substitute the vertex x back into ax² + bx + c. The calculator performs both steps and reports the pair, because a turning point is only fully described when you know where it happens and what value the function takes there.

Derivatives and the Second Derivative Test

In calculus language, extrema hide where the derivative is zero. The derivative of ax² + bx + c is 2ax + b, and setting it to zero gives x = −b / (2a), the same vertex formula from a second direction. Two roads, one turning point.

The second derivative of a quadratic is the constant 2a, and its sign classifies the point. A positive second derivative means the curve is bending upward, so the critical point is a local minimum. A negative one means it bends downward, giving a local maximum. That is why 2a appears as the third output: it converts a location into a conclusion.

How to Use the Local Extrema Calculator

Using the Local Extrema Calculator takes less than a minute, and each field has a clear job. Follow these steps in order and read all three results together rather than in isolation.

  1. Identify the coefficients of your quadratic in the form f(x) = ax² + bx + c, keeping every sign attached to its number.
  2. Enter a, the coefficient of x². It must not be zero, or the function is a line with no extremum.
  3. Enter b, the coefficient of x, and c, the constant term. Enter 0 for either if that term is missing.
  4. Press Calculate and note the critical point x, where the turning point occurs.
  5. Read the extremum value f(x), the function’s height at the turning point.
  6. Check the second derivative: positive means a local minimum, negative means a local maximum. Use Reset to test another function.

Worked Example 1: An Upward Parabola With a Minimum

Take the function f(x) = 2x² − 8x + 5, so a = 2, b = −8, and c = 5.

Step one applies the vertex formula: x = −(−8) divided by (2 times 2) equals 8 divided by 4.

The critical point is x = 2.0000, exactly as the calculator reports.

Step two evaluates the function there: 2 times 4, minus 8 times 2, plus 5 equals 8 minus 16 plus 5.

The extremum value is f(2) = −3.0000.

Step three checks the second derivative: 2a equals 4.0000, which is positive.

A positive second derivative means the parabola opens upward, so (2, −3) is a local minimum, the lowest point of this bowl-shaped curve.

Worked Example 2: A Downward Parabola With a Maximum

Now take f(x) = −x² + 6x − 5, so a = −1, b = 6, and c = −5.

Step one: x = −6 divided by (2 times −1) equals −6 divided by −2.

The critical point is x = 3.0000.

Step two evaluates the function: −9 plus 18 minus 5.

The extremum value is f(3) = 4.0000.

Step three: the second derivative 2a equals −2.0000, which is negative.

The negative sign means the parabola opens downward, so (3, 4) is a local maximum — the peak a projectile or profit curve would reach at x = 3.

Completing the Square: The Third Road to the Vertex

Algebra students meet the vertex through completing the square, rewriting ax² + bx + c as a(x − h)² + k. In that form the turning point is visible at a glance: it sits at (h, k), because the squared term can shrink to zero but never below it.

All three methods — averaging roots, the derivative, and completing the square — are the same fact wearing different clothes. The calculator uses the direct formula for speed, but recognizing the vertex form in a textbook problem lets you read answers off without any calculation at all.

Extrema in Real Problems

Turning points answer practical questions. A projectile’s height is a downward quadratic in time, so its vertex is the peak height and the moment it occurs. A revenue or profit model is often a downward quadratic in price, so its vertex is the best price and the maximum profit available.

Area problems run the other way: fencing a fixed perimeter against a wall gives an upward-or-downward quadratic whose vertex is the largest possible enclosure. In each case the workflow matches the calculator exactly: build the quadratic, find the critical point, evaluate, and classify with the sign of a.

Local Versus Absolute Extrema

A local extremum only has to beat its neighbours, while an absolute (or global) extremum beats every point on the domain under consideration. For a parabola on the whole number line the single vertex happens to be both local and absolute, which is one reason quadratics are such gentle training ground.

On a restricted interval the story changes: the highest point might be an endpoint rather than the vertex. Calculus courses make a habit of checking endpoints separately for exactly this reason, and the habit is worth copying whenever a real problem limits x to a sensible range.

Tips for Working With Local Extrema

  1. Keep signs attached to every coefficient; entering b as 8 instead of −8 is the single most common vertex error.
  2. Check that a is not zero before calculating, because a zero a-value makes the function linear and the vertex formula meaningless.
  3. Read the sign of a first for a quick prediction: positive a means a minimum is coming, negative a means a maximum.
  4. Report the point as a pair (x, f(x)) rather than a lone number, since an extremum is a place on a graph, not just a height.
  5. Verify by neighbours when unsure: evaluate the function slightly left and right of the critical point and confirm both sides behave as the classification promises.
  6. Mind the domain in applied problems; a vertex outside the allowed interval means the true optimum sits at an endpoint instead.
  7. Use the second derivative output to state your conclusion properly: minimum or maximum, not just the turning point value.
  8. Enter 0 for missing terms such as a function with no constant, rather than leaving a field blank and triggering a validation message.

Frequently Asked Questions

1. What does the Local Extrema Calculator find?

For a quadratic f(x) = ax² + bx + c it finds the critical point x where the turning point occurs.

It also gives the function’s value at that point and the second derivative, which classifies the point as a minimum or a maximum.

2. What is a local extremum?

It is a point where the function is larger or smaller than all nearby points.

Larger gives a local maximum and smaller gives a local minimum. The plural of extremum is extrema.

3. Why must the coefficient a be non-zero?

If a is zero the x² term vanishes and the function is a straight line.

A line has no turning point, so there is no local extremum to find and the vertex formula would divide by zero.

4. How is the critical point calculated?

With the vertex formula x = −b / (2a).

This is also where the derivative 2ax + b equals zero, so algebra and calculus agree exactly.

5. What does the second derivative output tell me?

Its sign classifies the turning point.

A positive value such as 4 means the curve bends upward and the point is a local minimum; a negative value means a local maximum.

6. Can a quadratic have two local extrema?

No. A parabola has exactly one turning point.

Functions with more extrema need higher-degree terms, such as a cubic, which this calculator is not designed for.

7. What if b or c is zero?

Enter 0 in that field and calculate as normal.

A zero b puts the vertex on the y-axis at x = 0, and a zero c simply means the curve passes through the origin.

8. Is the vertex always the absolute extremum?

On the whole number line, yes: the vertex is both the local and the absolute extremum of a parabola.

On a restricted interval, an endpoint can beat the vertex, so interval problems deserve an endpoint check as well.

9. How do I verify the calculator’s answer?

Evaluate the function a little to the left and right of the critical point.

For a minimum both neighbours should be higher; for a maximum both should be lower.

10. What is an example of a local maximum in real life?

The peak height of a thrown ball follows a downward quadratic in time.

Its vertex, found by exactly this method, gives both the moment of the peak and the height reached.

11. Does the calculator handle negative coefficients?

Yes. Negative values for a, b, or c are fully supported, including a negative a for downward parabolas.

Just be careful to include the minus sign when you type each coefficient.

12. Why are results shown to four decimal places?

Many vertex coordinates are fractions, such as x = 1.5 or 0.3333.

Four decimals keep those values accurate enough for coursework and applied modelling without cluttering the display.

13. What is the difference between a critical point and an extremum?

The critical point is the x-value where the derivative is zero.

The extremum is the function value there. Together they form the turning point (x, f(x)) on the graph.

14. Can this help with profit or revenue problems?

Yes, whenever profit or revenue is modelled as a quadratic of price or quantity.

The critical point gives the optimal price or quantity, and the extremum value gives the maximum profit or revenue.

15. Is completing the square the same method?

It reaches the same vertex by rewriting the function in the form a(x − h)² + k.

The calculator’s formula is faster, but the square form is useful when a problem asks for the vertex form itself.

Symmetry is the parabola’s gift to checking work. Points equally far left and right of the vertex always share the same function value, so one quick pair of evaluations can confirm a suspected vertex or expose a sign slip in the coefficients you entered.

Historically, extremum questions predate calculus by centuries: farmers maximising a fenced area and gunners maximising range were solving vertex problems long before derivatives existed. The formula on this page is the distilled answer to those very practical puzzles.

Symmetry is the parabola’s gift to checking work. Points equally far left and right of the vertex always share the same function value, so one quick pair of evaluations can confirm a suspected vertex or expose a sign slip in the coefficients you entered.

Historically, extremum questions predate calculus by centuries: farmers maximising a fenced area and gunners maximising range were solving vertex problems long before derivatives existed. The formula on this page is the distilled answer to those very practical puzzles.

Symmetry is the parabola’s gift to checking work. Points equally far left and right of the vertex always share the same function value, so one quick pair of evaluations can confirm a suspected vertex or expose a sign slip in the coefficients you entered.

Historically, extremum questions predate calculus by centuries: farmers maximising a fenced area and gunners maximising range were solving vertex problems long before derivatives existed. The formula on this page is the distilled answer to those very practical puzzles.

Symmetry is the parabola’s gift to checking work. Points equally far left and right of the vertex always share the same function value, so one quick pair of evaluations can confirm a suspected vertex or expose a sign slip in the coefficients you entered.

Historically, extremum questions predate calculus by centuries: farmers maximising a fenced area and gunners maximising range were solving vertex problems long before derivatives existed. The formula on this page is the distilled answer to those very practical puzzles.

Symmetry is the parabola’s gift to checking work. Points equally far left and right of the vertex always share the same function value, so one quick pair of evaluations can confirm a suspected vertex or expose a sign slip in the coefficients you entered.

Historically, extremum questions predate calculus by centuries: farmers maximising a fenced area and gunners maximising range were solving vertex problems long before derivatives existed. The formula on this page is the distilled answer to those very practical puzzles.

Symmetry is the parabola’s gift to checking work. Points equally far left and right of the vertex always share the same function value, so one quick pair of evaluations can confirm a suspected vertex or expose a sign slip in the coefficients you entered.

CONCLUSION

The Local Extrema Calculator condenses the whole turning-point method into three entries and three answers: where the curve turns, what value it reaches, and whether that point is a minimum or a maximum. The worked examples show the same numbers emerging from the vertex formula by hand.

Use it to check homework, to model peaks and optima in applied problems, and to build intuition for how the sign of a shapes a graph. Once the pattern clicks, you will spot turning points before you finish typing the coefficients.