Relative Maximum Calculator
Some quantities have a natural ceiling: the peak of a thrown ball, the greatest profit a pricing model allows, the maximum range of a signal. When these situations are modeled with a quadratic function, the ceiling is the vertex of a downward-opening parabola — its relative maximum.
The Relative Maximum Calculator on this page finds that peak for any quadratic f(x) = ax² + bx + c. Enter the coefficients and it returns the vertex, the maximum value, the axis of symmetry, and an honest classification telling you whether the vertex is truly a maximum or actually a minimum.
The mathematics of the maximum is barely half the skill — the other half is modeling, translating a real situation into the quadratic whose vertex you need. This article covers both: the vertex computation and the modeling judgment around it.
The Vertex as a Relative Maximum
The vertex of a parabola is its single turning point, located at x = −b/(2a). When the leading coefficient a is negative, the parabola opens downward and every other point on the graph sits below the vertex — making it a relative maximum (and in fact an absolute one).
This is why projectile motion is the classic example: height as a function of time is a downward-opening parabola, and its vertex gives the maximum height and the moment it occurs. The same mathematics finds the price that maximizes revenue when demand falls linearly with price.
The calculator computes the vertex coordinates (h, k) directly, where k = f(h) is the maximum value itself — usually the number the real-world question is asking for.
When the Vertex Is a Minimum Instead
If the leading coefficient a is positive, the parabola opens upward and the vertex is the lowest point — a relative minimum, not a maximum. The calculator detects this and says so plainly rather than mislabeling the result.
This honesty matters because the vertex formula itself does not care about direction: x = −b/(2a) finds the turning point regardless. Only the sign of a decides whether that point is a peak or a valley, so always check it.
In applied work the distinction is the whole problem. Minimizing cost and maximizing profit are opposite goals that use identical algebra; entering the coefficients correctly and reading the classification carefully keeps them straight.
Three Forms of a Quadratic
Every quadratic can be written three ways, and each form spotlights different information. Standard form ax² + bx + c shows the y-intercept c immediately — the starting value of the story the function tells.
Vertex form a(x − h)² + k displays the vertex (h, k) directly, making it the natural choice for maximum and minimum questions. Converting via completing the square is a skill worth owning.
Factored form a(x − r₁)(x − r₂) reveals the roots r₁ and r₂, and the vertex always sits halfway between them at x = (r₁ + r₂)/2 — a handy shortcut whenever a quadratic factors neatly.
The calculator accepts standard form, so convert first: expand factored forms, and complete the square only when you want a by-hand check. Choose the form that answers your question with the least algebra.
How to Use the Relative Maximum Calculator
Supply the three coefficients of your quadratic and the calculator locates the vertex and classifies it.
Step 1: Write your function in the form f(x) = ax² + bx + c and note the values of a, b and c.
Step 2: Enter a, b and c into the three input boxes, watching the signs carefully.
Step 3: Click Calculate. The vertex x-coordinate x = −b/(2a) is found first.
Step 4: Read the maximum value, which is f evaluated at the vertex.
Step 5: Read the type: relative maximum when a < 0, or a warning that the vertex is a minimum when a > 0.
Step 6: Note the axis of symmetry, the vertical line x = h through the vertex.
Worked Example 1: f(x) = −2x² + 8x + 1
Find the maximum of f(x) = −2x² + 8x + 1. Enter a = −2, b = 8, c = 1.
Step 1: Vertex x-coordinate: x = −b/(2a) = −8/(2 × −2) = −8/−4 = 2.
Step 2: Maximum value: f(2) = −2(2)² + 8(2) + 1 = −8 + 16 + 1 = 9.
Step 3: Since a = −2 < 0, the parabola opens downward: the vertex (2, 9) is a relative maximum.
Step 4: The axis of symmetry is the vertical line x = 2.
Step 5: Verify with neighbors: f(1) = 7 and f(3) = 7 are both below 9, confirming the peak.
The calculator reports: vertex x = 2, maximum value 9, relative maximum, axis x = 2.
Worked Example 2: f(x) = −x² + 6x − 5
Find the maximum of f(x) = −x² + 6x − 5. Enter a = −1, b = 6, c = −5.
Step 1: Vertex x-coordinate: x = −6/(2 × −1) = −6/−2 = 3.
Step 2: Maximum value: f(3) = −(3)² + 6(3) − 5 = −9 + 18 − 5 = 4.
Step 3: a = −1 < 0, so the vertex (3, 4) is a relative maximum.
Step 4: Axis of symmetry: x = 3.
Step 5: Factor check: f(x) = −(x² − 6x + 5) = −(x − 1)(x − 5), with roots at 1 and 5 — the vertex at x = 3 sits exactly midway, as it must.
The calculator reports: vertex x = 3, maximum value 4, relative maximum, axis x = 3.
Completing the Square
Completing the square rewrites any quadratic in vertex form a(x − h)² + k, which displays the vertex (h, k) directly. For −2x² + 8x + 1, factoring out −2 gives −2(x² − 4x) + 1 = −2(x − 2)² + 9, revealing the maximum value 9 at x = 2.
This form also makes the max-or-min question visual: the squared term (x − h)² is never negative, so when a is negative the whole expression can never exceed k. The maximum is proved, not just computed.
Students who master completing the square rarely misclassify vertices, because the sign of a sits right in front of them throughout the algebra.
Applications: Projectiles and Profit
A ball thrown upward follows h(t) = −16t² + v₀t + h₀ (feet, seconds). The vertex gives both the peak height and the time it occurs — the two quantities every projectile question asks for. Air resistance is ignored in this model, which is its main limitation.
In economics, if selling x units at price p(x) = m − nx gives revenue R(x) = x(m − nx) = mx − nx², the revenue-maximizing quantity is the vertex x = m/(2n). Businesses use exactly this computation when demand is approximately linear.
Both applications share a warning: the quadratic is a model, valid near the data it was fitted to. Extrapolating far beyond that range — negative quantities, extreme prices — produces nonsense maxima the model was never meant to describe.
Maxima on Restricted Domains
Real problems restrict x: production quantities cannot be negative, a sale lasts ten days, a fence has a fixed length. When the domain is an interval, the maximum may sit at an endpoint rather than at the vertex.
Example: maximize f(x) = −x² + 6x − 5 on [4, 10]. The vertex at x = 3 lies outside the interval, and the derivative is negative throughout [4, 10], so the function only decreases there — the maximum is f(4) = 3 at the left endpoint.
The safe procedure on [a, b] is: evaluate f at the vertex if it lies inside, evaluate f at both endpoints, and take the largest value. This closed-interval method never misses, whether the vertex cooperates or not.
Ignoring the domain is the classic applied error: a revenue model might peak at a negative quantity, which is mathematically correct and practically meaningless. Always filter the mathematics through the feasible range.
Fitting a Quadratic to Real Data
Real measurements rarely fall exactly on a parabola. Least-squares regression finds the best-fit quadratic through noisy data, and the vertex of that fitted curve estimates the real-world optimum.
Example: record revenue at several price points, fit a downward-opening parabola, and read its vertex as the estimated revenue-maximizing price. The modeling step is statistics; the optimum step is pure vertex mathematics.
A fitted vertex is only as trustworthy as the fit itself: inspect the residuals for systematic patterns, and never extrapolate the parabola beyond the range of the observed data.
Once the fit is accepted, the calculator takes over — enter the fitted a, b and c and it reports the estimated maximum value and its location with full precision.
When the Maximum Is Zero: Break-Even Analysis
Profit, defined as revenue minus cost, is often modeled as a quadratic. Its maximum is the best-case profit, and its ROOTS are the break-even points where profit is exactly zero — the same function answers both questions.
Example: P(x) = −2x² + 100x − 800. The vertex sits at x = 25 with P(25) = 450, the maximum profit. Solving P(x) = 0 gives x² − 50x + 400 = 0, so x = (50 ± 30)/2: break-even at 10 and 40 units.
Between the roots profit is positive and the vertex sits above the axis; outside that range the business loses money. The discriminant preview applies here too: D > 0 guarantees two break-even points exist.
If the maximum itself is negative, the business never breaks even at any quantity — the vertex delivers that bad news before a single dollar is spent, which is precisely why the analysis is worth doing.
Tips
- Confirm that a is negative before calling the vertex a maximum; a positive a means a minimum.
- Use the vertex formula x = −b/(2a) to double-check the calculator's x-coordinate by hand.
- Evaluate f at the vertex yourself to verify the reported maximum value.
- Check neighboring points one unit left and right — both must be lower for a genuine maximum.
- Read the axis of symmetry and use it: function values mirror across this line.
- Complete the square once per problem type to see the vertex form behind the numbers.
- For word problems, define what x represents before writing the quadratic.
- Reject a = 0 immediately: a line has no maximum, and the calculator will tell you the same.
1. How do you find the maximum of a quadratic?
Compute the vertex x-coordinate with x = −b/(2a), evaluate the function there to get the maximum value, and confirm a < 0 so the parabola opens downward and the vertex is truly a peak.
2. What is the vertex formula?
The vertex of f(x) = ax² + bx + c is at x = −b/(2a), with y-coordinate f(−b/(2a)). It comes from setting the derivative 2ax + b to zero.
3. How do you know if the vertex is a max or a min?
Look at the sign of the leading coefficient a. Negative a opens the parabola downward, making the vertex a maximum; positive a opens it upward, making it a minimum.
4. What is the axis of symmetry?
The vertical line x = −b/(2a) passing through the vertex. The parabola mirrors itself across this line, so f(h + d) = f(h − d) for any distance d.
5. Can a quadratic have no maximum?
Yes — when a > 0 the parabola opens upward and grows without bound, so there is no maximum value, only a minimum. The calculator reports this case explicitly.
6. What is vertex form of a quadratic?
The form f(x) = a(x − h)² + k, where (h, k) is the vertex. It shows the extreme value k directly and makes the max/min classification obvious from the sign of a.
7. How is the maximum used in projectile problems?
Height versus time is modeled as a downward parabola; its vertex gives the maximum height reached and the time at which it occurs — the standard two-part projectile question.
8. What does the y-intercept tell you?
The constant c is f(0), the starting value of the quadratic. Together with the vertex it anchors the graph: one point at the extreme, one at the start.
9. Can the maximum occur at an endpoint instead?
On a restricted domain, yes. If the allowed x-values exclude the vertex, the maximum over that interval occurs at whichever endpoint is higher. The calculator finds the unrestricted vertex.
10. Why complete the square?
It converts standard form to vertex form, revealing the vertex without any calculus or memorized formulas, and it proves the max/min classification through the sign of the squared term.
11. Does the calculator work for factored form?
Enter the expanded coefficients. For example, −(x − 1)(x − 5) expands to −x² + 6x − 5, so enter a = −1, b = 6, c = −5.
12. What is the maximum value vs the maximizing x?
The maximizing x (here x = 2) says where the peak occurs; the maximum value (here 9) says how high it is. Applications usually need both numbers.
13. How accurate is the calculator?
It uses exact arithmetic on the coefficients you enter, so the vertex is as precise as your inputs. Rounding only appears in the displayed decimals.
14. Can a line have a relative maximum?
No. A non-horizontal line keeps rising or falling forever, and a horizontal line is flat everywhere. Extrema need a turning point, which lines lack.
15. What should I do if a = 0?
Recognize the function as linear and stop: lines have no relative maxima or minima. If you expected a quadratic, recheck the original problem for an algebra mistake.
CONCLUSION
The Relative Maximum Calculator pinpoints the peak of any quadratic: the vertex location, the maximum value, the axis of symmetry, and a clear verdict on whether the vertex is genuinely a maximum. One computation answers the where and the how high together.
Whenever a real situation — a trajectory, a revenue curve, a cost model — bends downward in a parabolic shape, its best point is this vertex. Find it, verify the sign of a, and you have the optimum.
Build the modeling reflex alongside the computation: name what x means, write the quadratic, check the domain, then find the vertex. Done in that order, the calculator’s answer lands in a story you understand — and the maximum you report is one you can defend.