Relative Extrema Calculator
A relative extremum is a high point or low point of a function’s graph — a place where the function stops rising and starts falling, or vice versa. For the quadratic functions studied in algebra and precalculus, there is exactly one such point: the vertex of the parabola, and it is either a relative maximum or a relative minimum.
The Relative Extrema Calculator on this page analyzes any quadratic function f(x) = ax² + bx + c. Enter the three coefficients and it returns the critical point, the function value there, whether it is a relative maximum or minimum, and the second derivative that justifies the classification. It is ideal for checking homework and for building intuition before calculus.
The same vertex mathematics also drives optimization — the art of finding the best possible value of a quantity. Whether the goal is maximum profit or minimum cost, a quadratic model reduces the whole problem to locating one vertex, which is exactly what the calculator below does.
What Are Relative Extrema?
In precise terms, a function has a relative maximum at x = c if f(c) is greater than or equal to all nearby values, and a relative minimum if f(c) is less than or equal to all nearby values. The word relative matters: the point only needs to beat its neighbors, not the entire graph.
For a parabola there is only one candidate, the vertex. An upward-opening parabola (a > 0) has its lowest point at the vertex, which is both a relative and an absolute minimum. A downward-opening parabola (a < 0) has its highest point there, a relative and absolute maximum.
Calculus finds these points by setting the derivative to zero. For f(x) = ax² + bx + c the derivative is f'(x) = 2ax + b, and solving f'(x) = 0 gives the famous vertex formula x = −b/(2a). The calculator applies exactly this mathematics.
The Vertex Connection
Every technique for finding a quadratic’s extremum leads back to the vertex. Completing the square rewrites ax² + bx + c in vertex form a(x − h)² + k, where (h, k) is the vertex. The axis of symmetry x = h passes through it vertically.
The sign of the leading coefficient a decides everything about shape. When a is positive the parabola opens upward like a cup and the vertex is the minimum; when a is negative it opens downward like a frown and the vertex is the maximum. There are no other possibilities for a genuine quadratic.
The second derivative f”(x) = 2a is constant for a quadratic, so its sign never changes. A positive second derivative means the graph is concave up (minimum), and a negative one means concave down (maximum). The calculator shows this value as independent confirmation of the classification.
Absolute Extrema on Closed Intervals
The Extreme Value Theorem guarantees that a continuous function on a closed interval [a, b] attains both an absolute maximum and an absolute minimum somewhere on that interval. For quadratics the candidates are few: the vertex plus the two endpoints.
The procedure is mechanical: compute the vertex, evaluate the function at the vertex and at both endpoints, then take the largest and smallest of the three values. Those are the absolute extrema — no calculus beyond the vertex formula is required.
Example: f(x) = x² − 4x + 3 on [0, 5]. The vertex (2, −1) lies inside the interval, f(0) = 3 and f(5) = 8. The absolute minimum is −1 at x = 2 and the absolute maximum is 8 at x = 5 — an endpoint wins.
Endpoints matter precisely because the vertex can fall outside the interval. On [3, 5] the same function is strictly increasing, so the minimum is f(3) = 0 and the maximum is f(5) = 8, with the vertex playing no role at all.
How to Use the Relative Extrema Calculator
Enter the three coefficients of your quadratic and let the calculator apply the vertex formula and the second derivative test.
Step 1: Identify the coefficients a, b and c in f(x) = ax² + bx + c. For f(x) = x² − 4x + 3, they are a = 1, b = −4, c = 3.
Step 2: Type a into the first box, b into the second and c into the third.
Step 3: Click Calculate. The critical point x = −b/(2a) is computed first.
Step 4: Read the function value at that point, which is the extreme value of the function.
Step 5: Read the type: relative minimum when a is positive, relative maximum when a is negative.
Step 6: Check the second derivative value shown — its sign must agree with the classification.
Worked Example 1: f(x) = x² − 4x + 3
Consider the quadratic f(x) = x² − 4x + 3. Enter a = 1, b = −4 and c = 3 into the calculator.
Step 1: Compute the critical point with x = −b/(2a) = −(−4)/(2 × 1) = 4/2 = 2.
Step 2: Evaluate the function there: f(2) = (2)² − 4(2) + 3 = 4 − 8 + 3 = −1.
Step 3: Note that a = 1 is positive, so the parabola opens upward and the vertex is a minimum.
Step 4: Confirm with the second derivative: f”(x) = 2a = 2, which is positive, matching a minimum.
Step 5: You can also factor to check: f(x) = (x − 1)(x − 3), with x-intercepts at 1 and 3, and the vertex sits halfway between them at x = 2.
The calculator reports: critical point x = 2, f(2) = −1, relative minimum, second derivative 2.
Worked Example 2: f(x) = −2x² + 8x + 1
Now try a downward-opening parabola, f(x) = −2x² + 8x + 1. Enter a = −2, b = 8 and c = 1.
Step 1: Critical point: x = −b/(2a) = −8/(2 × −2) = −8/−4 = 2.
Step 2: Function value: f(2) = −2(4) + 8(2) + 1 = −8 + 16 + 1 = 9.
Step 3: Since a = −2 is negative, the parabola opens downward and the vertex is a maximum.
Step 4: Second derivative check: f”(x) = 2a = −4, negative, confirming a maximum.
Step 5: Sanity check with nearby values: f(1) = 7 and f(3) = 7, both less than f(2) = 9, exactly as a maximum requires.
The calculator reports: critical point x = 2, f(2) = 9, relative maximum, second derivative −4.
First Derivative Test vs Second Derivative Test
The first derivative test examines the sign of f’ on each side of the critical point: if the derivative changes from negative to positive, the point is a minimum; from positive to negative, a maximum. It always works but requires testing intervals.
The second derivative test is faster when it applies: evaluate f” at the critical point and read its sign. Positive means minimum, negative means maximum. For quadratics the second derivative is the constant 2a, so the test can never be inconclusive.
When f” equals zero the second derivative test says nothing and you must fall back to the first derivative test. That cannot happen for a genuine quadratic with a ≠ 0, which is one reason quadratics are the friendliest functions for learning extrema.
Scope and Limitations
This calculator handles quadratic functions only. For cubics, quartics or trickier functions with multiple critical points, use the dedicated relative maxima and minima calculators, which solve the derivative equation properly.
It also assumes the input is genuinely quadratic: if a = 0 the expression collapses to a line, which has no extrema, and the calculator will tell you so instead of dividing by zero.
Finally, the mathematics here is exact for the idealized function you type in. In applied work — fitting a parabola to noisy data, for instance — the extremum of the fitted curve is only as trustworthy as the fit itself.
Optimization Word Problems
The classic optimization story: 100 meters of fencing to build a rectangular pen against a straight barn wall. With x as the depth, the width is 100 − 2x and the area is A(x) = x(100 − 2x) = −2x² + 100x.
The vertex sits at x = −100/(2 × −2) = 25, giving A(25) = 1250 square meters — the largest pen the fencing allows. The negative leading coefficient confirms this is a maximum, not a minimum.
Every such problem follows three steps: translate the story into a quadratic function, find its vertex with the calculator, and translate the answer back into the story’s units. The middle step is now the easiest one.
Watch for hidden constraints: fencing comes in whole meters, areas cannot be negative, and some problems restrict x to an interval. Apply the closed-interval endpoint check from the previous section whenever the domain is limited.
The Discriminant Tells You Where the Vertex Sits
The discriminant D = b² − 4ac counts x-intercepts, and it also fixes the vertex height: substituting x = −b/(2a) gives k = −D/(4a). One number previews both the roots and the extremum.
When D > 0 and a > 0, the formula gives k < 0: the minimum sits below the x-axis, exactly as it must for a parabola that crosses the axis twice. The algebra and the geometry agree.
When D = 0 the vertex touches the axis (k = 0), giving one repeated root. When D < 0 the vertex floats entirely above the axis (a > 0) or below it (a < 0), and there are no real roots at all.
Use this as a cross-check on the calculator: compute D by hand, predict whether the extreme value should be positive or negative, and confirm the reported f(x) matches your prediction.
Tips
- Write the function in standard form ax² + bx + c and double-check each sign before typing the coefficients.
- Remember the vertex formula x = −b/(2a) and use it to verify the calculator’s critical point by hand.
- Let the sign of a predict the answer first: positive a means minimum, negative a means maximum.
- Always confirm the classification with the second derivative value shown in the results.
- Test nearby x-values (one unit left and right) to see the function rise or fall away from the extremum.
- Never enter a = 0 and expect an extremum — a line has no maximum or minimum.
- Sketch the parabola using the vertex and the y-intercept (0, c) to visualize the result.
- For word problems, translate the story into a quadratic first; the calculator handles the algebra after that.
1. What is a relative extremum?
A relative extremum is a point where a function attains a locally highest (maximum) or locally lowest (minimum) value. Nearby points on both sides have values that are lower (for a maximum) or higher (for a minimum).
2. How do you find the relative extrema of a quadratic?
Use the vertex formula x = −b/(2a) to find the critical point, evaluate the function there, and classify it by the sign of a: positive a gives a relative minimum, negative a gives a relative maximum.
3. What is the difference between relative and absolute extrema?
A relative extremum only beats nearby values, while an absolute extremum beats every value in the domain. A parabola’s vertex is both relative and absolute, but wavy functions can have relative extrema that are not absolute.
4. Can a quadratic have both a maximum and a minimum?
No. A parabola has exactly one vertex, so it has exactly one extremum. Functions with both a relative maximum and a relative minimum need at least a cubic shape with two turning points.
5. What does the second derivative tell you about extrema?
If the second derivative is positive at a critical point, the graph is concave up there and the point is a relative minimum. If it is negative, the graph is concave down and the point is a relative maximum.
6. Why is x = −b/(2a) the critical point?
Setting the derivative f'(x) = 2ax + b equal to zero and solving gives 2ax = −b, hence x = −b/(2a). At this x-value the tangent line is horizontal, which is where extrema occur.
7. What happens if a = 0?
The function becomes the line f(x) = bx + c, which has a constant nonzero slope (or is flat) and therefore no maximum or minimum. The calculator rejects a = 0 with an explanatory message.
8. Is the vertex always a relative extremum?
Yes, for any quadratic with a ≠ 0 the vertex is a relative extremum. It is a minimum when the parabola opens upward and a maximum when it opens downward.
9. How can I check the answer without calculus?
Evaluate the function at the vertex and at points slightly to the left and right. For a minimum, both neighbors should give larger values; for a maximum, both should give smaller values.
10. What is a critical point?
A critical point is an x-value where the derivative is zero or undefined. For smooth polynomials like quadratics it is simply where f'(x) = 0, the horizontal-tangent point.
11. Does the y-value at the extremum have a special name?
Yes, it is called the extreme value: the maximum value for a relative maximum, the minimum value for a relative minimum. The calculator labels it as the function value f(x).
12. Can the second derivative test fail?
It is inconclusive when the second derivative equals zero at the critical point. This never happens for a genuine quadratic since f”(x) = 2a is a nonzero constant.
13. How do extrema appear in real applications?
They mark optimal points: maximum profit, minimum cost, the peak of a projectile’s path, or the most efficient operating point. Modeling the situation with a quadratic turns the question into finding its vertex.
14. What is concavity and why does it matter?
Concavity describes whether a graph curves upward like a cup or downward like a frown near a point. Upward concavity (positive second derivative) forces a minimum; downward concavity forces a maximum.
15. Do I need calculus to use this calculator?
No. You only need to recognize the coefficients a, b and c in standard form. The calculator performs the derivative steps internally and explains the result in plain terms.
CONCLUSION
The Relative Extrema Calculator finds the single turning point of any quadratic in one step: the critical point from x = −b/(2a), the extreme value, the max-or-min classification, and the second derivative that proves it. For parabolas this is the complete story.
When you move on to cubics and higher-degree polynomials, the same ideas — critical points plus a derivative test — still apply, but there can be several extrema to track. Master the quadratic case first, and the harder functions will feel like a natural extension.
Whenever a problem asks for the best, biggest, smallest or most efficient value and the model is quadratic, you now own the complete method: the vertex for the interior optimum, the endpoints for the boundary, and the second derivative as your proof. That trio handles every quadratic optimization you will meet.