Sub topic 10
Zero, One, or Two x-Intercepts
Assume you can read vertex form, evaluate expressions, and take square roots. An x-intercept is a point where a graph crosses or touches the x-axis. Its y-coordinate is always 0.
For a parabola in vertex form,
\[ y=a(x-h)^2+k,\qquad a\ne 0 \]
find the x-intercepts by setting \(y=0\):
\[ 0=a(x-h)^2+k \]
\[ (x-h)^2=-\frac{k}{a} \]
The number of x-intercepts depends on the value of \(-k/a\).
The three possible counts
A real square root exists only when its radicand is zero or positive.
| Value of \(-k/a\) | Number of x-intercepts | What happens |
|---|---|---|
| Positive | Two | The parabola crosses the x-axis twice |
| Zero | One | The parabola touches the x-axis at its vertex |
| Negative | Zero | The parabola stays away from the x-axis |
If \(-k/a>0\), solve using both square roots:
\[ x-h=\pm\sqrt{-\frac{k}{a}} \]
\[ x=h\pm\sqrt{-\frac{k}{a}} \]
The two intercepts are \((x1,0)\) and \((x2,0)\).
If \(-k/a=0\), then \(x=h\). The single x-intercept is \((h,0)\). This is sometimes called a repeated intercept because both solutions have the same x-value.
If \(-k/a<0\), there are no real x-intercepts. The equation would require the square of a real number to be negative.
Use the vertex to predict the count
The vertex is \((h,k)\). The sign of \(a\) tells you whether the parabola opens upward or downward.
- If \(a>0\), the vertex is the minimum point.
- \(k<0\): two x-intercepts.
- \(k=0\): one x-intercept.
- \(k>0\): no x-intercepts.
- If \(a<0\), the vertex is the maximum point.
- \(k>0\): two x-intercepts.
- \(k=0\): one x-intercept.
- \(k<0\): no x-intercepts.
For example, consider \(y=2(x-1)^2-8\). Here, \(a=2\) and \(k=-8\), so the parabola opens upward and its vertex is below the x-axis. It must have two x-intercepts:
\[ x=1\pm\sqrt{-\frac{-8}{2}} =1\pm\sqrt{4} =1\pm2 \]
The intercepts are \((-1,0)\) and \((3,0)\).
import math
def x_intercepts(a, h, k):
"""Return the real x-intercepts of y = a(x - h)^2 + k."""
ratio = -k / a
if ratio > 0:
root = math.sqrt(ratio)
return [h - root, h + root]
if ratio == 0:
return [h]
return []
print(x_intercepts(2, 1, -8))
# [-1.0, 3.0]Exercise
How many x-intercepts does y = -3(x + 2)^2 + 12 have, and what are they?
Show answer
Set y = 0: (x + 2)^2 = 4, so x + 2 = ±2. Therefore x = 0 or x = -4. The two x-intercepts are (0, 0) and (-4, 0).