Sub topic 16
Extreme Values of Quadratic and Related Expressions
This chapter assumes you can factorise quadratics, solve inequalities of the form ax² + bx + c ≥ 0 using the discriminant, and apply AM-GM from the previous chapter.
The Vertex Formula
A quadratic f(x) = ax² + bx + c has exactly one turning point, called the vertex. To find it, complete the square:
f(x) = a(x + b/2a)² + (4ac − b²)/4a
The squared term is never negative, so:
- If a > 0, f has a minimum of (4ac − b²)/4a at x = −b/2a. It has no maximum.
- If a < 0, f has a maximum of (4ac − b²)/4a at x = −b/2a. It has no minimum.
Example: f(x) = 2x² − 8x + 3. The vertex is at x = 8/4 = 2, and f(2) = 8 − 16 + 3 = −5. So the minimum value is −5.
Restricted Domains
CAT often limits x to an interval. When that happens, the extremes can only occur at the vertex or at the endpoints of the interval. If the vertex lies outside the interval, the function is monotonic there, which means it only rises or only falls across the interval. Both extremes then sit at the endpoints.
def f(x):
return 2 * x**2 - 8 * x + 3
# Vertex x = 2 lies outside [3, 5], so check endpoints only
print(f(3), f(5)) # -3 13 -> min -3, max 13 on [3, 5]
xs = [3 + i / 1000 for i in range(2001)]
print(min(f(x) for x in xs), max(f(x) for x in xs)) # -3.0 13.0Related Expressions
Reciprocals. If q(x) = x² − 4x + 7 has a minimum of 3, then 1/q(x) has a maximum of 1/3. This works because q is always positive. If q can be zero or negative, the reciprocal has no maximum.
Ratios of quadratics. To find the range of y = (x² + x + 1)/(x² − x + 1), multiply out and rearrange the equation as a quadratic in x:
(y − 1)x² − (y + 1)x + (y − 1) = 0
For x to be real, the discriminant must satisfy (y + 1)² − 4(y − 1)² ≥ 0. This factorises to (3 − y)(3y − 1) ≥ 0, so 1/3 ≤ y ≤ 3. The minimum is 1/3 and the maximum is 3. This approach is called the discriminant method.
Substitution. An expression such as x⁴ − 6x² + 4 becomes the quadratic t² − 6t + 4 when you set t = x² ≥ 0. Its vertex t = 3 is allowed, so the minimum is 9 − 18 + 4 = −5.
Common Errors
| Error | Fix |
|---|---|
| Quoting a "maximum" when a > 0 | An upward-opening parabola has no maximum on all reals |
| Ignoring interval endpoints | Always evaluate f at both ends |
| Giving the x-value instead of the extreme value | The answer is f(−b/2a), not −b/2a |
| Inverting a quadratic that changes sign | 1/q has a clean extreme only when q keeps one sign |
Exercise
Find the maximum value of 1/(x² − 6x + 14) over all real x.
Show answer
x² − 6x + 14 = (x − 3)² + 5, which has a minimum of 5 and is always positive. The maximum of the reciprocal is therefore 1/5, reached at x = 3.
Exercise
For x in [0, 4], find the maximum and minimum of g(x) = −x² + 2x + 8.
Show answer
The vertex x = 1 lies inside the interval, and g(1) = 9. At the endpoints, g(0) = 8 and g(4) = 0. The maximum is 9 and the minimum is 0.