Sub topic 11
Maximum and minimum values of a quadratic
This chapter assumes you can expand brackets, complete the square on a simple expression, and solve a quadratic by factorisation or by the formula. It also assumes you know what the discriminant tells you about the roots. CAT asks for the largest or smallest value of a quadratic in several disguises: a bare expression, a revenue or area problem, or a product of two numbers with a fixed sum. All of them reduce to one idea, the vertex.
The key fact: a parabola has one turning point
The graph of y = ax² + bx + c is a parabola. It has exactly one turning point, called the vertex.
- If a > 0, the parabola opens upward. The vertex is the lowest point, so the expression has a minimum and no maximum.
- If a < 0, the parabola opens downward. The vertex is the highest point, so the expression has a maximum and no minimum.
The sign of a decides which one exists. Over all real x, a quadratic never has both.
Finding the vertex by completing the square
Start with a > 0 and rewrite the expression:
ax² + bx + c = a(x + b/(2a))² + (c − b²/(4a))
A square is never negative, so the first term is smallest, namely 0, when x = −b/(2a). At that point the expression equals c − b²/(4a). This gives two results to memorise:
- The vertex is at x = −b/(2a).
- The extreme value is c − b²/(4a), which equals −D/(4a), where D = b² − 4ac is the discriminant.
The same algebra works for a < 0, where the square term now subtracts and the extreme value is a maximum.
| Sign of a | Shape | Extreme value | Where it occurs | Other side |
|---|---|---|---|---|
| a > 0 | opens up | minimum = −D/(4a) | x = −b/(2a) | unbounded above |
| a < 0 | opens down | maximum = −D/(4a) | x = −b/(2a) | unbounded below |
Worked examples
Example 1: a bare expression
Find the minimum of x² − 6x + 11.
Here a = 1 > 0, so a minimum exists. The vertex is at x = 6/2 = 3, and f(3) = 9 − 18 + 11 = 2. Completing the square gives the same answer: (x − 3)² + 2. The minimum is 2.
Example 2: a negative leading coefficient
Find the maximum of 12 + 4x − x².
Rewrite it as −x² + 4x + 12, so a = −1 and b = 4. The vertex is at x = −4/(2 × −1) = 2, and f(2) = 12 + 8 − 4 = 16. The discriminant check agrees: D = 16 + 48 = 64, and −D/(4a) = −64/(−4) = 16.
Example 3: a revenue problem
A shop sells 200 − 5p units per day at price p. Find the price that maximises revenue, and the maximum revenue.
Revenue is R = p(200 − 5p) = 200p − 5p². Here a = −5 < 0, so a maximum exists. The vertex is at p = 200/10 = 20, and R = 20 × 100 = 2000.
The units sold at p = 20 are 100, which is positive, so the answer is sensible. Always check that the vertex falls in the range the problem allows.
Example 4: using the roots
If a quadratic is already factorised, you can skip the formula. The vertex lies exactly halfway between the two roots, because the parabola is symmetric.
Find the minimum of (x − 2)(x − 8). The roots are 2 and 8, so the vertex is at x = 5, and f(5) = 3 × (−3) = −9.
Fixed sum and fixed product
CAT often phrases this topic as a product of two numbers, not as a quadratic. The quadratic is hidden inside.
If x + y = S, then xy = x(S − x) = Sx − x². This has a < 0, so the product has a maximum at x = S/2. The product is largest when the two numbers are equal.
Suppose two numbers add to 20. The sum of their squares is x² + (20 − x)² = 2x² − 40x + 400. This has a > 0, so it has a minimum at x = 10, which is 200. The sum of squares is smallest when the numbers are equal.
Integer restriction
If x and y must be integers, the vertex may not be allowed. Take x + y = 15. The vertex is at x = 7.5, which is not an integer. The parabola is symmetric about the vertex, so the best integers are the two nearest it, 7 and 8. The maximum product is 7 × 8 = 56.
Restricted domains
All the results above assume x can be any real number. If x is limited to an interval, such as 0 ≤ x ≤ 10 or "x is a length", the vertex may fall outside the interval. Then the extreme value occurs at one of the endpoints.
The safe method is to evaluate the function at both endpoints and at the vertex if the vertex lies inside the interval. The largest and smallest of those values are the maximum and minimum on that interval.
def range_on_interval(a, b, c, lo, hi):
"""Return (minimum, maximum) of a*x^2 + b*x + c for lo <= x <= hi."""
if a == 0:
raise ValueError("not a quadratic")
f = lambda x: a * x * x + b * x + c
points = [lo, hi]
vertex = -b / (2 * a)
if lo <= vertex <= hi:
points.append(vertex)
values = [f(x) for x in points]
return min(values), max(values)
# x^2 - 6x + 11: vertex x = 3 is inside [0, 10]
print(range_on_interval(1, -6, 11, 0, 10)) # (2.0, 51)
# On [4, 10] the vertex is outside, so the minimum moves to the endpoint x = 4
print(range_on_interval(1, -6, 11, 4, 10)) # (3, 51)Connecting to the discriminant
The extreme value −D/(4a) links this chapter to the previous ones.
- If a > 0 and the minimum is positive, the graph never touches the x-axis. The expression is always positive and has no real roots.
- If a > 0 and the minimum is exactly 0, the expression has equal roots, and D = 0.
- If a < 0 and the maximum is negative, the expression is always negative.
This lets you solve questions that give the extreme value and ask for an unknown. For example, if the minimum of x² − 4x + k is 5, then the minimum is k − 4 = 5, so k = 9.
Reciprocals and other disguises
Sometimes the quadratic sits inside another expression. If f(x) is positive throughout its range, then 1/f(x) is largest where f(x) is smallest.
Take 1/(x² − 4x + 7). The denominator has a = 1 > 0 and vertex x = 2, with value 4 − 8 + 7 = 3. It is always at least 3, so it is never zero. The fraction therefore has a maximum of 1/3. Check that the denominator stays positive before you take the reciprocal.
Other disguises have the same method: put the quadratic in the form you recognise, then use the vertex.
- A projectile height such as h = 20t − 5t² has a maximum at t = 2, and h = 40 − 20 = 20.
- An area with a fixed perimeter is a product of two sides with a fixed sum, so it is largest when the sides are equal.
Common errors
- Reading the sign of a wrongly after rearranging. In 12 + 4x − x², the coefficient of x² is −1, not 12.
- Using x = b/(2a) and forgetting the minus sign.
- Reporting the vertex x-value when the question asks for the extreme value, or the reverse.
- Ignoring restrictions such as integers, positive lengths, or a stated interval.
- Taking the reciprocal of an expression that can be zero or change sign.
Exercises
Exercise
Find the minimum value of 2x² − 12x + 7, and the value of x where it occurs.
Show answer
Here a = 2 > 0, so a minimum exists. The vertex is at x = 12/4 = 3, and f(3) = 18 − 36 + 7 = −11. The minimum is −11 at x = 3.
Exercise
Two real numbers add up to 20. What is the smallest possible value of the sum of their squares?
Show answer
Let the numbers be x and 20 − x. The sum of squares is 2x² − 40x + 400. Since a = 2 > 0, the minimum is at x = 10, giving 100 + 100 = 200.
Exercise
A ball's height in metres after t seconds is h = 20t − 5t². Find the greatest height, and check it with the discriminant formula.
Show answer
Here a = −5 and b = 20. The vertex is at t = −20/(−10) = 2, and h = 40 − 20 = 20 m. Check: D = 400 − 0 = 400, and −D/(4a) = −400/(−20) = 20.