Relative Maxima Calculator

Relative Maxima Calculator







Parabolas are the simplest curves with a turning point, and they show up everywhere: the arc of a thrown ball, the profit curve of a business, the focus of a satellite dish. Every parabola has exactly one vertex — its single highest or lowest point — and whether that vertex is a peak or a valley depends on a single number: the sign of the leading coefficient. The Relative Maxima Calculator finds that peak for any quadratic you give it.

A relative maximum of a quadratic is the vertex of a downward-opening parabola. Because a parabola has only one turning point, its relative maximum (when it exists) is also its absolute maximum — the highest the function ever gets. That makes quadratics unusually well-behaved: find the vertex and you have found the optimum, with no endpoints to check and no second turning point to worry about.

This page's calculator takes the three coefficients of f(x) = ax² + bx + c, computes the vertex with the formula x = −b / 2a, and tells you plainly whether a relative maximum exists. If the parabola opens upward, it says so and reports the relative minimum instead, so you are never left guessing.

The calculator also shines as a bridge between the factored, standard, and vertex forms of a quadratic. Given standard form it finds the vertex; from the vertex you can immediately write vertex form f(x) = a(x − h)² + k, which displays the maximum or minimum with zero further work. Students who practice converting between forms find that every representation answers a different question — standard form for the y-intercept, factored form for the roots, vertex form for the extremum — and the calculator anchors the conversions.

What Is a Relative Maximum of a Parabola?

For a quadratic function, a relative maximum exists only when the parabola opens downward, which happens exactly when the leading coefficient a is negative. In that case the vertex is the highest point on the entire graph: the function climbs toward it from the left and falls away from it to the right. Because there are no other turning points, this local peak is automatically the global peak.

When a is positive, the parabola opens upward like a bowl, and the vertex is a relative minimum instead — the lowest point on the graph. The calculator handles both cases: it always finds the vertex, then classifies it honestly so you know whether you are looking at a maximum, a minimum, or (if a = 0) a straight line with neither.

Completing the square is the classical route to the vertex and worth seeing once: f(x) = ax² + bx + c becomes a(x + b/2a)² + (c − b²/4a). The squared term is always non-negative, so when a > 0 the smallest value occurs when the square is zero — at x = −b/2a — and when a < 0 the largest value occurs there. The vertex formula is simply this argument compressed into one line.

The Vertex Formula

The x-coordinate of the vertex comes from the formula x = −b / 2a, one of the most useful shortcuts in algebra. It can be derived by completing the square or by setting the derivative 2ax + b equal to zero — both routes lead to the same place. Once you have the x-coordinate, substituting it back into the function gives the y-coordinate, the extreme value itself.

The formula also reveals the axis of symmetry: the vertical line x = −b / 2a about which the parabola mirrors itself. Every quadratic is symmetric around this line, which is why the vertex sits exactly halfway between any two x-values that share the same function value — including the two roots, when they exist.

The discriminant b² − 4ac governs the roots, not the vertex, but the two stories connect: the vertex's y-value equals −(discriminant)/4a. A downward parabola (a < 0) with a positive discriminant crosses the x-axis twice with its peak above the axis; with a zero discriminant the peak touches the axis; with a negative discriminant the whole graph floats below it. One number links the extremum to the roots.

Maximum vs Minimum: Reading the Sign of a

The sign of a is the whole classification in one glance. A negative a means the x² term drags the ends of the graph downward, forcing a hilltop in the middle; a positive a drags the ends upward, forcing a valley. This is worth internalizing because it lets you predict the answer before computing anything.

There is a calculus view too: the second derivative of a quadratic is the constant 2a, so the second derivative test reduces to checking the sign of a. Negative means concave down everywhere, hence a maximum; positive means concave up everywhere, hence a minimum. The calculator applies exactly this logic.

Applications recycle the same pattern: projectile motion h(t) = −16t² + v₀t + h₀ (feet, seconds) peaks at t = v₀/32; revenue R(p) = p(a − bp) peaks at p = a/2b; the least-squares error of a one-parameter fit is quadratic in the parameter, so the best fit is a vertex computation. Recognizing 'quadratic, therefore vertex' turns dozens of word problems into one familiar move.

How to Use the Relative Maxima Calculator

Enter the three coefficients of your quadratic in the form f(x) = ax² + bx + c, then let the calculator locate the vertex and classify it.

Enter the coefficient a of the x² term. Use a negative number if you expect a maximum; the calculator will verify this for you.

Enter the coefficient b of the x term.

Enter the constant term c.

Click Calculate to get the vertex coordinates, the classification, and the extreme value.

If a = 0, the calculator will note that the function is linear and has no relative maximum — enter a non-zero a to continue.

Worked Example 1: f(x) = −2x² + 8x + 3

Take the quadratic f(x) = −2x² + 8x + 3, so a = −2, b = 8, and c = 3. Since a is negative, we expect a relative maximum.

Find the vertex x-coordinate: x = −b / 2a = −8 / (2 × −2) = −8 / −4 = 2.

Find the y-coordinate by substitution: f(2) = −2(4) + 8(2) + 3 = −8 + 16 + 3 = 11.

Classify: a = −2 < 0, so the parabola opens downward and the vertex is a relative maximum.

Conclusion: the relative maximum value is 11, occurring at x = 2. Because a parabola has a single turning point, this is also the absolute maximum.

Worked Example 2: f(x) = 3x² − 12x + 7

Now consider f(x) = 3x² − 12x + 7, with a = 3, b = −12, and c = 7. Here a is positive, so there will be no relative maximum.

Vertex x-coordinate: x = −(−12) / (2 × 3) = 12 / 6 = 2.

Vertex y-coordinate: f(2) = 3(4) − 12(2) + 7 = 12 − 24 + 7 = −5.

Classify: a = 3 > 0, so the parabola opens upward and the vertex is a relative minimum, not a maximum.

Conclusion: this quadratic has no relative maximum. Its relative (and absolute) minimum value is −5 at x = 2, exactly as the calculator reports.

Reading the Sign of a

The fastest check in the subject: before doing any arithmetic, look at a. Negative means a hilltop is coming; positive means a valley. If your computed classification ever disagrees with the sign of a, you have made an arithmetic slip — go back and check the vertex formula.

Zero is the special case: a = 0 collapses the quadratic into a line bx + c, which has no turning point at all. The calculator flags this explicitly rather than dividing by zero.

Why the Vertex Is Enough

Higher-degree polynomials can hide extra turning points, but a quadratic cannot. Its derivative 2ax + b is a straight line with exactly one root, so there is exactly one critical point and exactly one extremum. That is why vertex-finding is a complete optimization method for quadratics: no endpoint checks, no extra candidates.

This simplicity is what makes quadratics the workhorse of applied optimization. Projectile motion, revenue models with linear demand, and least-squares fitting all reduce to quadratics precisely because the single-vertex structure guarantees a clean answer.

Completing the Square, Step by Step

Take f(x) = 2x² − 12x + 7 and force it into vertex form. First factor the leading coefficient out of the x-terms: 2(x² − 6x) + 7. The x² coefficient inside the parentheses is now 1, which is what the method needs.

Take half of the x-coefficient (−6 → −3), square it (9), and add and subtract it inside the parentheses: 2(x² − 6x + 9 − 9) + 7. Adding zero changes nothing but creates a perfect square.

Collapse the trinomial: x² − 6x + 9 = (x − 3)², giving 2((x − 3)² − 9) + 7. Distribute the 2 back: 2(x − 3)² − 18 + 7 = 2(x − 3)² − 11.

Read the vertex directly: (h, k) = (3, −11). Since a = 2 > 0, this is a relative minimum with value −11 at x = 3 — no formula memorization needed, just algebra. The calculator's vertex output and this hand computation should match exactly.

This is also why the vertex formula works for every quadratic: completing the square symbolically on ax² + bx + c produces a(x + b/2a)² + (c − b²/4a), and the vertex (h, k) = (−b/2a, c − b²/4a) drops out. The formula is not magic; it is this derivation, finished once and for all.

Tips

  1. Check the sign of a before you calculate — it predicts maximum versus minimum instantly.
  2. Write the quadratic in standard form ax² + bx + c first; reading coefficients from factored or vertex form is a classic error source.
  3. Remember x = −b / 2a, not b / 2a: the negative sign is the most dropped symbol in algebra.
  4. Substitute the vertex x-value back into the original function to get the extreme value; the x-coordinate alone is not the answer.
  5. If a = 0, stop: you have a line, and lines have no relative maxima.
  6. Use the axis of symmetry x = −b / 2a to find a second point for graphing once you have the vertex.
  7. For profit problems, the vertex gives the optimal price or quantity directly — no trial and error needed.
  8. Keep full precision until the final step; early rounding can shift the reported maximum noticeably.
  9. When the numbers are ugly, keep the vertex as a fraction (−b/2a) until the last step instead of decimalizing early.
  10. If a problem asks for the maximum value, it wants k (the y-coordinate), not h — read the question's units to see which coordinate is the answer.

1. When does a quadratic have a relative maximum?

Exactly when its leading coefficient a is negative, so the parabola opens downward. Then the vertex is the highest point on the graph — a relative maximum that is also the absolute maximum.

2. How do you find the vertex of a parabola?

Use x = −b / 2a for the x-coordinate, then substitute back into f(x) = ax² + bx + c for the y-coordinate. Equivalently, complete the square to reach vertex form.

3. What is the axis of symmetry?

The vertical line x = −b / 2a through the vertex, about which the parabola mirrors itself. Any two x-values equidistant from it give equal function values.

4. Can a quadratic have both a max and a min?

No. A quadratic has exactly one turning point because its derivative is linear with a single root. It has either a maximum or a minimum, never both.

5. What if a = 0?

The function becomes linear (bx + c), which has no turning points and therefore no relative maximum or minimum. The calculator detects this case and says so.

6. Is the vertex always the absolute extremum?

Yes for quadratics. With only one turning point on the whole real line, the relative extremum is automatically the absolute one — no endpoint analysis needed.

7. How does the second derivative test apply here?

The second derivative of ax² + bx + c is the constant 2a. Negative means concave down everywhere (maximum); positive means concave up everywhere (minimum).

8. What is vertex form?

The form f(x) = a(x − h)² + k, where (h, k) is the vertex. It displays the extremum directly: k is the max or min value, attained at x = h.

9. How do maxima appear in projectile problems?

Height as a function of time is a downward-opening quadratic (gravity supplies the negative a). Its vertex gives the peak height and the time it occurs — the classic relative maximum application.

10. Can the maximum occur at a negative x?

Absolutely. The vertex formula places the extremum wherever −b / 2a lands, positive or negative. Always compute it rather than assuming.

11. Why do profit functions have maxima?

With linear demand, revenue is price times quantity — a quadratic in price with negative leading coefficient. Its vertex is the revenue-maximizing price.

12. Does scaling change the maximum's location?

Multiplying the function by a positive constant scales the max value but leaves its x-location fixed. Multiplying by a negative constant flips a maximum into a minimum.

13. How accurate is the vertex formula?

It is exact, not an approximation. Any rounding in the answer comes only from decimal representation of fractions like 1/3.

14. Can you find maxima without calculus?

Yes — completing the square is the classical non-calculus route to the vertex. Calculus just makes it one line: set 2ax + b = 0.

15. What should I check after computing?

Verify the sign of a matches your classification, substitute the vertex back into the function to confirm the value, and sanity-check the magnitude against the problem context.

CONCLUSION

The Relative Maxima Calculator reduces quadratic optimization to its essence: read the sign of a, apply x = −b / 2a, and read off the peak. In the worked examples, a single substitution turned −2x² + 8x + 3 into a maximum value of 11 at x = 2 — no graphing, no guessing.

Keep the underlying picture in mind: one parabola, one vertex, one extremum, with the sign of a deciding peak versus valley. With that mental model plus the calculator for the arithmetic, quadratic maxima become the easiest optimization problems you will ever meet.