Sub topic 7
Maximum or minimum value and the range
This chapter assumes you can read the vertex (h, k) from y = a(x - h)^2 + k and that you know the sign of a decides which way the parabola opens. You should also be comfortable evaluating an expression at a given x and writing simple inequalities such as y ≥ -3.
By the end you will be able to:
- Decide whether a parabola has a maximum or a minimum.
- Read that value and where it occurs.
- Write the range, including the case where the domain is restricted.
Why the vertex is the extreme point
In vertex form, y = a(x - h)^2 + k, the squared part (x - h)^2 is never negative. It equals 0 when x = h and is positive everywhere else. So the output is k plus a multiple of a nonnegative number.
- If a > 0, you add a nonnegative amount to k. The smallest possible output is k, reached at x = h. The parabola opens upward and k is the minimum value.
- If a < 0, you subtract a nonnegative amount from k. The largest possible output is k, reached at x = h. The parabola opens downward and k is the maximum value.
No algebra beyond this is needed. The vertex is the lowest or highest point because every other x adds or subtracts something from k.
Value versus location
The extreme value and the place where it happens are different facts. The vertex (h, k) holds both.
- The value of the maximum or minimum is k, a y-coordinate.
- The location is x = h, which is the axis of symmetry.
A common slip is to report h when the question asks for the maximum value. Ask yourself whether the answer is a height (y, so k) or a position (x, so h).
| Equation | Opens | Extreme | Value | Occurs at |
|---|---|---|---|---|
| y = 3(x - 2)^2 + 1 | up | minimum | 1 | x = 2 |
| y = -2(x + 1)^2 + 5 | down | maximum | 5 | x = -1 |
| y = 0.5(x - 4)^2 - 3 | up | minimum | -3 | x = 4 |
| y = -(x)^2 - 7 | down | maximum | -7 | x = 0 |
In the second row, x + 1 is x - (-1), so h = -1. Read the sign of h by rewriting the factor in the form (x - h).
Domain and range
The domain is the set of allowed x-values. The range is the set of y-values the function actually produces.
For a quadratic with no restriction on x, the domain is all real numbers. The range is a half-line that starts at k:
- a > 0: range is y ≥ k, written [k, ∞) in interval notation.
- a < 0: range is y ≤ k, written (-∞, k].
The endpoint k is included because the parabola reaches it at the vertex. That is why the inequality is "at least" or "at most" and not a strict one.
Notice that the range never depends on h. Shifting the parabola left or right changes where the extreme happens but not which heights are reachable.
Worked example: unrestricted domain
Find the extreme value and range of y = -2(x + 1)^2 + 5.
- Rewrite x + 1 as x - (-1), so h = -1 and k = 5.
- a = -2 is negative, so the parabola opens down.
- The maximum value is 5, at x = -1.
- The range is y ≤ 5.
Check with a point: at x = 0, y = -2(1)^2 + 5 = 3, which is below 5, as expected.
Worked example: a second equation
Find the extreme value and range of y = 0.5(x - 4)^2 - 3.
- Here h = 4 and k = -3, and a = 0.5 is positive.
- The parabola opens up with a minimum value of -3, at x = 4.
- The range is y ≥ -3.
The size of a (0.5 here) makes the parabola wider but does not change the range. Only the sign of a and the value of k matter.
Checking the answer in code
The function below classifies a vertex-form quadratic and reports the extreme value, where it occurs, and the range.
def extreme_and_range(a, h, k):
"""Extreme value and range of y = a(x - h)^2 + k, with a != 0."""
if a == 0:
raise ValueError("a must not be 0")
if a > 0:
return {"kind": "minimum", "value": k, "at_x": h, "range": f"y >= {k}"}
return {"kind": "maximum", "value": k, "at_x": h, "range": f"y <= {k}"}
print(extreme_and_range(-2, -1, 5))
# {'kind': 'maximum', 'value': 5, 'at_x': -1, 'range': 'y <= 5'}
print(extreme_and_range(0.5, 4, -3))
# {'kind': 'minimum', 'value': -3, 'at_x': 4, 'range': 'y >= -3'}The a == 0 check matters. With a = 0 the equation is a horizontal line, not a parabola, and it has no vertex.
When the domain is restricted
Real problems often limit x. A ball is only in the air for t ≥ 0 until it lands. A fence has a length between 0 and some limit. When the domain is restricted, the range depends on which part of the parabola you keep.
Check three candidates for the extreme values:
- The y-value at the left endpoint of the domain.
- The y-value at the right endpoint.
- The vertex value k, but only if h lies inside the domain.
The smallest of these is the minimum and the largest is the maximum. The range runs from smallest to largest.
def range_on_interval(a, h, k, lo, hi):
"""Smallest and largest y of y = a(x - h)^2 + k for lo <= x <= hi."""
f = lambda x: a * (x - h) ** 2 + k
values = [f(lo), f(hi)]
if lo <= h <= hi:
values.append(k)
return min(values), max(values)
print(range_on_interval(1, 1, -4, 2, 5)) # (-3, 12)
print(range_on_interval(1, 1, -4, -1, 3)) # (-4, 0)Both calls use y = (x - 1)^2 - 4, whose vertex is (1, -4).
- On [2, 5], the vertex at x = 1 lies left of the interval. The graph only rises there, so the minimum is at x = 2 (value -3) and the maximum is at x = 5 (value 12). The range is [-3, 12].
- On [-1, 3], the vertex is inside. The endpoints both give 0, and the vertex gives -4. The range is [-4, 0].
Application: the height of a thrown object
A ball's height in meters after t seconds is h(t) = -5(t - 2)^2 + 22, for t ≥ 0 until it hits the ground.
- Here a = -5 is negative, so the graph opens down and has a maximum.
- The maximum height is 22 m, at t = 2 s.
- The ball starts at t = 0 with height -5(0 - 2)^2 + 22 = 2 m.
- It lands when h(t) = 0. Solving -5(t - 2)^2 + 22 = 0 gives (t - 2)^2 = 4.4, so t = 2 + √4.4, which is about 4.10 s. The negative root, t ≈ -0.10, is before the throw and is rejected.
- On the domain 0 ≤ t ≤ 4.10, the heights run from 0 up to 22. The range is 0 ≤ h ≤ 22.
Notice that the range of the physical situation (0 to 22) is smaller than the range of the bare formula (h ≤ 22). The context supplies the lower bound. This is the same domain-restriction idea as before, with the landing time as the right endpoint.
Common errors
- Reporting h as the extreme value. The value is k. The number h says where it occurs.
- Getting the sign of h wrong. In y = 2(x + 3)^2 - 1, the vertex is at x = -3, not 3. The extreme value is still -1.
- Using the wrong inequality. A minimum gives "y ≥ k" and a maximum gives "y ≤ k". Say "opens up, so the vertex is the lowest point" to keep them straight.
- Letting the size of a change the answer. A larger |a| makes the parabola narrower, but the extreme value and the range stay the same.
- Ignoring a domain restriction. If the problem limits x, test the endpoints as well as the vertex.
Connections to the rest of the procedure
The extreme value gives you the vertex's y-coordinate directly, so it is the first point you plot when graphing. It also predicts the x-intercept count covered later. If the parabola opens up and k > 0, the minimum is above the x-axis, so there are no x-intercepts. The same is true if it opens down and k < 0. If k = 0, the vertex touches the axis at one point. Checking the sign of a against the sign of k therefore tells you the intercept count before you solve anything.
Exercise
For y = -3(x - 5)^2 + 8, state whether there is a maximum or minimum, its value, the x-value where it occurs, and the range for all real x.
Show answer
a = -3 is negative, so the parabola opens down and has a maximum. The vertex is (5, 8), so the maximum value is 8 at x = 5. The range is y ≤ 8.
Exercise
A parabola has the equation y = 4(x + 2)^2 - 6. Without graphing, say whether it has x-intercepts, and justify your answer using the extreme value.
Show answer
Here h = -2 and k = -6, and a = 4 is positive, so the parabola opens up with a minimum of -6. The lowest point is below the x-axis and the graph rises on both sides, so it crosses the x-axis twice. There are two x-intercepts.
Exercise
Find the range of y = (x - 1)^2 - 4 when the domain is restricted to 3 ≤ x ≤ 6.
Show answer
The vertex is at x = 1, which is outside [3, 6]. On this interval the graph only rises. At x = 3, y = 4 - 4 = 0. At x = 6, y = 25 - 4 = 21. The range is 0 ≤ y ≤ 21.