Sub topic 9
Finding the x-Intercepts by Square Roots
Assume you can substitute values into an equation, solve simple equations, take square roots, and plot points on a coordinate plane. An x-intercept is a point where a graph crosses or touches the x-axis. At every x-intercept, the y-coordinate is 0.
For a parabola in vertex form,
\[ y=a(x-h)^2+k, \]
find the x-intercepts by setting \(y=0\):
\[ 0=a(x-h)^2+k. \]
Isolating the squared expression
Start by subtracting \(k\) from both sides:
\[ -k=a(x-h)^2. \]
Then divide by \(a\), where \(a\ne0\):
\[ -\frac{k}{a}=(x-h)^2. \]
Take both square roots:
\[ x-h=\pm\sqrt{-\frac{k}{a}}. \]
Finally, add \(h\):
\[ \boxed{x=h\pm\sqrt{-\frac{k}{a}}}. \]
The symbol \(\pm\) means that you must check both the positive and negative square roots.
import math
def x_intercepts(a, h, k):
"""Return the x-values where y = a(x - h)^2 + k equals zero."""
if a == 0:
raise ValueError("a must not be zero")
ratio = -k / a
if ratio < 0:
return []
if ratio == 0:
return [h]
distance = math.sqrt(ratio)
return [h - distance, h + distance]
print(x_intercepts(2, 1, -8))
# [-1.0, 3.0]Worked example
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 both square roots:
\[ x-1=\pm2. \]
Solve the two equations:
\[ x-1=2 \quad\Rightarrow\quad x=3, \]
\[ x-1=-2 \quad\Rightarrow\quad x=-1. \]
Therefore, the x-intercepts are
\[ \boxed{(-1,0)\text{ and }(3,0)}. \]
The vertex is \((1,-8)\), so these intercepts are equally far from the axis of symmetry \(x=1\).
How many x-intercepts?
The quantity
\[ -\frac{k}{a} \]
determines how many real x-intercepts exist.
| Value of \(-k/a\) | Result | Number of x-intercepts |
|---|---|---|
| Positive | Two different square roots | 2 |
| Zero | Only \(x=h\) | 1 |
| Negative | No real square root | 0 |
If \(-k/a<0\), the parabola does not reach the x-axis. If \(-k/a=0\), its vertex lies on the x-axis, so the graph touches the axis at one point.
A downward-opening example
Find the x-intercepts of
\[ y=-(x+2)^2+9. \]
Here \(a=-1\), \(h=-2\), and \(k=9\). Set \(y=0\):
\[ 0=-(x+2)^2+9. \]
Then
\[ (x+2)^2=9, \]
so
\[ x+2=\pm3. \]
Thus,
\[ x=1 \quad\text{or}\quad x=-5. \]
The intercepts are \((1,0)\) and \((-5,0)\). Notice that \(x+2\) means \(x-(-2)\), so the center of the two values is \(h=-2\).
Exercise
Find the x-intercepts of y = 3(x - 4)^2 - 12.
Show answer
Set y = 0: 12 = 3(x - 4)^2, so (x - 4)^2 = 4. Therefore x = 4 ± 2, giving the intercepts (2, 0) and (6, 0).