Sub topic 9
Finding the x-intercepts by square roots
This chapter assumes you can substitute values into an expression, solve simple linear equations, and take square roots, including the negative root. You should also know how a, h, and k appear in vertex form, y = a(x - h)^2 + k. It also helps to know that the vertex is (h, k) and the axis of symmetry is x = h.
What an x-intercept is
An x-intercept is a point where the graph crosses or touches the x-axis. Every point on the x-axis has y = 0. So finding x-intercepts means solving the equation you get by setting y to 0:
0 = a(x - h)^2 + k
Vertex form is built for this. The variable x appears exactly once, inside the squared bracket. You can isolate that bracket and undo the square with a square root. You don't need factoring or the quadratic formula.
The method in four steps
- Replace y with 0.
- Move k to the other side, then divide by a. This isolates the square: (x - h)^2 = -k/a.
- Take the square root of both sides. Keep both signs: x - h = ±√(-k/a).
- Add h to both sides: x = h ± √(-k/a).
The result is a formula you can read off directly:
x = h ± √(-k/a)
The two intercepts sit at equal distances, √(-k/a), to the left and right of h. This matches the axis of symmetry x = h, which lies exactly halfway between them.
Worked example 1: two intercepts
Find the x-intercepts of y = 2(x - 1)^2 - 8.
- Set y = 0: 0 = 2(x - 1)^2 - 8
- Add 8: 8 = 2(x - 1)^2
- Divide by 2: 4 = (x - 1)^2
- Take roots: x - 1 = 2 or x - 1 = -2
- Add 1: x = 3 or x = -1
The intercepts are (-1, 0) and (3, 0). The vertex is (1, -8), and 1 is halfway between -1 and 3.
Worked example 2: negative a and a positive k
Find the x-intercepts of y = -2(x + 1)^2 + 18.
Rewrite (x + 1) as (x - (-1)), so h = -1.
- Set y = 0: 0 = -2(x + 1)^2 + 18
- Subtract 18: -18 = -2(x + 1)^2
- Divide by -2: 9 = (x + 1)^2
- Take roots: x + 1 = 3 or x + 1 = -3
- Subtract 1: x = 2 or x = -4
The parabola opens downward and its vertex (-1, 18) is above the axis, so it must come down and cross the axis twice. The answer agrees with that.
When the answer is not a whole number
Often -k/a is not a perfect square. Then leave the root exact, and approximate it only when you need a point to plot.
Find the x-intercepts of y = (x - 1)^2 - 5.
- (x - 1)^2 = 5
- x - 1 = ±√5
- x = 1 ± √5
The exact intercepts are x = 1 + √5 and x = 1 - √5. As decimals, they are about 3.236 and -1.236.
Zero, one, or two intercepts
The square (x - h)^2 can never be negative. That fact decides how many intercepts exist. Look at the value of -k/a, which is the number under the square root.
| Value of -k/a | Square root | Number of x-intercepts | Intercepts |
|---|---|---|---|
| Positive | Two real roots | 2 | x = h ± √(-k/a) |
| Zero | Only 0 | 1 | x = h (the vertex touches the axis) |
| Negative | No real root | 0 | None |
You can often tell the case before computing anything. The ratio -k/a is negative exactly when a and k have the same sign. Two situations follow:
- If a > 0 (opens up) and k > 0, the vertex is above the axis and the graph goes up from there. It never reaches y = 0.
- If a < 0 (opens down) and k < 0, the vertex is below the axis and the graph goes down from there. It never reaches y = 0.
If a and k have opposite signs, there are two intercepts. If k = 0, the vertex is itself on the x-axis, and there is one intercept.
Worked example 3: no intercepts
Find the x-intercepts of y = (x - 2)^2 + 3.
Setting y = 0 gives (x - 2)^2 = -3. No real number squared equals -3, so there are no x-intercepts. This matches the shortcut: a = 1 and k = 3 have the same sign. The vertex (2, 3) is above the axis and the parabola opens up.
Worked example 4: one intercept
Find the x-intercepts of y = -(x - 4)^2.
Here k = 0. Setting y = 0 gives (x - 4)^2 = 0, so x = 4. The graph touches the axis at its vertex (4, 0) and turns back without crossing.
Checking with code
The function below applies the formula and the three cases from the table. It returns the intercepts as a list.
import math
def x_intercepts(a, h, k):
"""x-intercepts of y = a(x - h)^2 + k, with a != 0."""
ratio = -k / a
if ratio < 0:
return []
if ratio == 0:
return [h]
r = math.sqrt(ratio)
return [h - r, h + r]
examples = [
(2, 1, -8), # y = 2(x - 1)^2 - 8
(-2, -1, 18), # y = -2(x + 1)^2 + 18
(1, 1, -5), # y = (x - 1)^2 - 5
(1, 2, 3), # y = (x - 2)^2 + 3
(-1, 4, 0), # y = -(x - 4)^2
]
for a, h, k in examples:
print((a, h, k), [round(x, 3) for x in x_intercepts(a, h, k)])
# (2, 1, -8) [-1.0, 3.0]
# (-2, -1, 18) [-4.0, 2.0]
# (1, 1, -5) [-1.236, 3.236]
# (1, 2, 3) []
# (-1, 4, 0) [4]The h - r, h + r order always lists the smaller intercept first, because r is positive.
Common errors
- Wrong sign of h. In y = (x + 3)^2 - 4, h is -3, not 3. After you take roots you have x + 3 = ±2, so x = -3 ± 2, which gives -1 and -5. Subtract the 3, don't add it.
- Forgetting to divide by a. From 2(x - 1)^2 = 8 you must reach (x - 1)^2 = 4 before taking roots. Taking the root of both sides while the 2 is still there gives wrong answers.
- Taking the square root of each term separately. The root applies to the whole side. You can't turn (x - 1)^2 = 4 into x^2 - 1 = 2.
- Sign slips with k. The quantity under the root is -k/a. If k is -8 and a is 2, the ratio is positive 4. If you forget the minus sign, you will see a negative number and wrongly report no intercepts.
- Confusing the vertex with the intercepts. The vertex is (h, k). The intercepts have y = 0 and are found separately, except when k = 0.
Using the intercepts when graphing
The intercepts give you two more reliable points, in addition to the vertex. Plot the vertex, draw the axis of symmetry as a dashed line, and mark the intercepts. Their positions let you check your work in two ways. First, h must be the exact midpoint of the two intercepts. Second, the vertex must lie on the same side of the axis that the opening direction allows. If a > 0, the vertex must be at or below the x-axis for intercepts to exist.
Later chapters combine the intercepts with the y-intercept and reflected points to draw a full sketch. For now, practice getting the intercepts quickly and correctly.
Exercises
Exercise
Find the x-intercepts of y = 3(x - 2)^2 - 12.
Show answer
Set y = 0: 3(x - 2)^2 = 12, so (x - 2)^2 = 4. Then x - 2 = 2 or x - 2 = -2, which gives x = 4 or x = 0. The intercepts are (0, 0) and (4, 0).
Exercise
Find the x-intercepts of y = (1/2)(x + 3)^2 - 2. Here h = -3.
Show answer
Set y = 0: (1/2)(x + 3)^2 = 2, so (x + 3)^2 = 4. Then x + 3 = ±2, so x = -3 + 2 = -1 or x = -3 - 2 = -5. The intercepts are (-5, 0) and (-1, 0).
Exercise
Without solving, say how many x-intercepts each parabola has: (a) y = -(x - 1)^2 - 4, (b) y = 2(x + 5)^2 - 1, (c) y = 4(x - 3)^2.
Show answer
(a) None. a = -1 and k = -4 have the same sign, so -k/a = -4 is negative. (b) Two. a = 2 and k = -1 have opposite signs, so -k/a = 1/2 is positive. (c) One. k = 0, so the vertex (3, 0) is on the x-axis.
Exercise
Find the exact x-intercepts of y = (x - 4)^2 - 7, then give decimal approximations to two places.
Show answer
(x - 4)^2 = 7, so x = 4 ± √7. The exact intercepts are 4 + √7 and 4 - √7. Since √7 is about 2.65, they are about 6.65 and 1.35.
Exercise
A parabola in vertex form has its vertex at (2, -3) and its x-intercepts at x = 0 and x = 4 are not given. Instead you know a = 1. Find its x-intercepts.
Show answer
The equation is y = (x - 2)^2 - 3. Setting y = 0 gives (x - 2)^2 = 3, so x = 2 ± √3. The intercepts are about 3.73 and 0.27.