Sub topic 10
Zero, one, or two x-intercepts
This chapter assumes you can read the vertex (h, k) from y = a(x - h)^2 + k and that you can solve an equation of the form (x - h)^2 = c by taking square roots, including both the positive and negative root. You should also be able to plot points on a coordinate plane. Earlier chapters showed how to find x-intercepts. This chapter explains why a parabola has zero, one, or two of them, and how to know which case you have before you solve anything.
The setup: solving y = 0
An x-intercept is a point where the graph crosses or touches the x-axis. On the x-axis, y = 0. So to find the x-intercepts of y = a(x - h)^2 + k, set y to 0 and solve for x:
- 0 = a(x - h)^2 + k
- -k = a(x - h)^2
- -k/a = (x - h)^2
- x - h = ±√(-k/a)
- x = h ± √(-k/a)
The count of solutions depends entirely on the value under the square root, which is the ratio -k/a. Call it the ratio. A square root of a negative number is not a real number, so the sign of the ratio decides everything.
| Ratio -k/a | Square root | Number of x-intercepts | Solutions |
|---|---|---|---|
| Positive | A positive real number r | Two | x = h - r and x = h + r |
| Zero | 0 | One | x = h |
| Negative | Not a real number | Zero | None |
Notice that the two intercepts in the first case sit at equal distances r on either side of h. That matches the axis of symmetry x = h. The intercepts are mirror images of each other.
Predicting the count from the picture
You can often skip the algebra by comparing where the vertex sits with which way the parabola opens. The vertex is the lowest point when a > 0 and the highest point when a < 0.
- If the parabola opens up (a > 0) and the vertex is below the x-axis (k < 0), the graph must climb up through the axis on both sides. Two intercepts.
- If the parabola opens down (a < 0) and the vertex is above the x-axis (k > 0), the graph must fall down through the axis on both sides. Two intercepts.
- If the vertex is on the x-axis (k = 0), the vertex itself is the only point at y = 0. One intercept.
- If the parabola opens up and the vertex is above the axis (k > 0), the lowest point is already above the axis, so the graph never reaches it. Zero intercepts.
- If the parabola opens down and the vertex is below the axis (k < 0), the highest point is below the axis. Zero intercepts.
The test is whether a and k have opposite signs. When they do, -k/a is positive.
| Sign of a | Sign of k | -k/a | x-intercepts |
|---|---|---|---|
| Positive | Negative | Positive | Two |
| Negative | Positive | Positive | Two |
| Either | Zero | Zero | One |
| Positive | Positive | Negative | Zero |
| Negative | Negative | Negative | Zero |
Worked examples
Two intercepts: y = 2(x - 1)^2 - 8
Here a = 2, h = 1, k = -8. The signs of a and k are opposite, so expect two intercepts.
- 0 = 2(x - 1)^2 - 8
- 8 = 2(x - 1)^2
- 4 = (x - 1)^2
- x - 1 = ±2
- x = 1 + 2 = 3 or x = 1 - 2 = -1
The x-intercepts are (-1, 0) and (3, 0). Their midpoint is x = 1, which is the axis of symmetry.
One intercept: y = -3(x + 4)^2
Rewrite as y = -3(x - (-4))^2 + 0, so a = -3, h = -4, k = 0.
- 0 = -3(x + 4)^2
- 0 = (x + 4)^2
- x + 4 = 0
- x = -4
The graph touches the x-axis at its vertex (-4, 0) and turns back. The parabola opens down, so it stays on or below the axis everywhere else.
Zero intercepts: y = (x - 2)^2 + 3
Here a = 1, h = 2, k = 3. Both are positive.
- 0 = (x - 2)^2 + 3
- -3 = (x - 2)^2
A square is never negative, so there is no real x that works. The vertex (2, 3) is the lowest point, and it is above the axis. The parabola never reaches y = 0.
Checking with code
The function below classifies the count and returns the intercepts. It uses the same ratio test as the algebra above.
import math
def x_intercepts(a, h, k):
"""Return the real x-intercepts of y = a(x - h)^2 + k, with a != 0."""
ratio = -k / a
if ratio > 0:
r = math.sqrt(ratio)
return [h - r, h + r]
if ratio == 0:
return [h]
return []
print(x_intercepts(2, 1, -8)) # [-1.0, 3.0]
print(x_intercepts(-3, -4, 0)) # [-4]
print(x_intercepts(1, 2, 3)) # []Because the function only compares the ratio with 0, it works for any nonzero a. Note that -k/a with k = 0 gives 0.0 or -0.0, and both compare equal to 0, so the one-intercept branch still runs.
Common errors
- Using the wrong sign for h. In y = (x + 4)^2 the value of h is -4, not 4. The intercept formula x = h ± r then centers on -4.
- Forgetting the negative root. Taking only the positive square root gives one intercept where there are two.
- Dropping a. Subtracting k and taking the square root before dividing by a gives wrong distances. For y = 2(x - 1)^2 - 8, the step is (x - 1)^2 = 4, not (x - 1)^2 = 8.
- Looking only at the sign of k. The vertex height k alone does not decide the count. A vertex above the axis (k > 0) gives zero intercepts only when the parabola opens up. If it opens down, you get two.
- Treating a tangent touch as a miss. When k = 0, the graph meets the axis at the vertex. That is one intercept, not zero.
Why the count is never more than two
The equation (x - h)^2 = c has at most two solutions, x = h + √c and x = h - √c. A parabola is also a single smooth bowl: it passes through any horizontal level at most twice. Since the x-axis is the horizontal line y = 0, the graph meets it zero, one, or two times, never three or more.
How the count affects graphing
The count tells you how many points the x-axis gives you for your sketch.
- With two intercepts, plot them along with the vertex and the y-intercept. You then have at least four useful points, plus the reflection of the y-intercept across the axis.
- With one intercept, the vertex is that point. You need extra points, so pick x values on both sides of h and use symmetry.
- With zero intercepts, rely on the vertex, the y-intercept, and its reflection. Add one more pair of symmetric points if the sketch still looks uncertain.
A quick consistency check: if your computed intercepts are not equally spaced around x = h, you have made an arithmetic error.
Exercise
For each equation, state how many x-intercepts the graph has, and give them if they exist. (a) y = -(x - 3)^2 + 4. (b) y = 0.5(x + 2)^2 + 1. (c) y = 4(x - 5)^2.
Show answer
(a) a = -1 and k = 4 have opposite signs, so there are two. Solve 0 = -(x - 3)^2 + 4, so (x - 3)^2 = 4 and x - 3 = ±2. The intercepts are x = 1 and x = 5. (b) a = 0.5 and k = 1 are both positive, so -k/a = -2 is negative. There are zero x-intercepts. (c) k = 0, so there is one intercept at the vertex, x = 5, the point (5, 0).
Exercise
The parabola y = 3(x - h)^2 - 12 has x-intercepts at x = -1 and x = 5. Find h, and then check your answer by solving for the intercepts.
Show answer
The intercepts are symmetric about the axis x = h, so h is their midpoint: h = (-1 + 5)/2 = 2. Check: 0 = 3(x - 2)^2 - 12 gives (x - 2)^2 = 4, so x - 2 = ±2 and x = 0 or x = 4... recompute with the correct intercept distance: the intercepts are 3 units from h = 2, so we need (x - 2)^2 = 9, which means -k/a = 9. With a = 3 that requires k = -27, not -12. So no value of h makes this equation have those intercepts. With k = -12 and a = 3 the distance from h is √4 = 2, so the intercepts are always 4 apart, while -1 and 5 are 6 apart.
Exercise
For y = 2(x - 1)^2 + k, find the values of k that give (a) two x-intercepts, (b) exactly one, (c) none.
Show answer
Here a = 2 is positive, so the ratio is -k/2. (a) Two intercepts need -k/2 > 0, so k < 0. (b) One intercept needs -k/2 = 0, so k = 0. (c) No intercepts need -k/2 < 0, so k > 0.