Sub topic 12
Graphing a parabola step by step
This chapter combines the earlier pieces into one procedure. You will go from an equation in vertex form to a sketch. It assumes you can evaluate expressions, plot points, solve simple linear equations, take positive and negative square roots, and expand a binomial such as (x - 3)^2. It also assumes you know what a, h, and k mean in y = a(x - h)^2 + k.
The goal and the plan
A parabola is fully determined by a few facts. For y = a(x - h)^2 + k, the vertex and the sign of a give the overall shape. The intercepts anchor the curve to the axes. The axis of symmetry lets you double the number of points for free. A good sketch needs about five to seven accurate points, not twenty.
The procedure has seven steps:
- Read a, h, and k from the equation.
- Decide the opening direction from the sign of a.
- Plot the vertex (h, k) and draw the axis x = h as a dashed line.
- Find the y-intercept by setting x = 0.
- Find the x-intercepts by setting y = 0 and taking square roots.
- Reflect each known point across the axis.
- Add one or two more points if the curve is unclear, then draw a smooth curve through everything.
Worked example 1: two x-intercepts
Graph y = 2(x - 1)^2 - 8.
Step 1. Here a = 2, h = 1, k = -8. Compare with y = a(x - h)^2 + k: the factor is (x - 1), so h = 1, not -1.
Step 2. Since a = 2 is positive, the parabola opens upward. Since |a| = 2 is greater than 1, it is narrower than y = x^2.
Step 3. The vertex is (1, -8). The axis of symmetry is x = 1. Because the parabola opens up, the vertex is the lowest point.
Step 4. Set x = 0:
y = 2(0 - 1)^2 - 8 = 2(1) - 8 = -6
The y-intercept is (0, -6).
Step 5. Set y = 0 and isolate the squared factor:
- 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). Note that they sit 2 units on either side of the axis x = 1.
Step 6. The y-intercept (0, -6) is 1 unit left of the axis. Its mirror image is 1 unit right of the axis, at (2, -6). The x-intercepts are already a mirror pair.
Step 7. The points so far are (-1, 0), (0, -6), (1, -8), (2, -6), and (3, 0). Because the parabola is narrow, add one more pair. At x = 4, y = 2(3)^2 - 8 = 10, so (4, 10) is on the curve. Its mirror is (-2, 10). Draw a smooth U-shaped curve through all seven points.
Checking your work with code
You can automate steps 2 through 6. The function below returns the opening direction, the vertex, the intercepts, and mirrored point pairs for chosen distances from the axis.
import math
def graph_plan(a, h, k, offsets=(1, 2, 3)):
"""Key points for y = a(x - h)^2 + k, with a != 0."""
def f(x):
return a * (x - h) ** 2 + k
ratio = -k / a
if ratio > 0:
r = math.sqrt(ratio)
x_ints = [h - r, h + r]
elif ratio == 0:
x_ints = [h]
else:
x_ints = []
pairs = [((h - d, f(h - d)), (h + d, f(h + d))) for d in offsets]
return {
"opens": "up" if a > 0 else "down",
"vertex": (h, k),
"y_intercept": (0, f(0)),
"mirror": (2 * h, f(0)),
"x_intercepts": x_ints,
"pairs": pairs,
}
plan = graph_plan(2, 1, -8)
print("opens:", plan["opens"])
print("vertex:", plan["vertex"])
print("y-intercept:", plan["y_intercept"], "mirror:", plan["mirror"])
print("x-intercepts:", plan["x_intercepts"])
for left, right in plan["pairs"]:
print(left, right)Running it prints:
opens: up
vertex: (1, -8)
y-intercept: (0, -6) mirror: (2, -6)
x-intercepts: [-1.0, 3.0]
(0, -6) (2, -6)
(-1, 0) (3, 0)
(-2, 10) (4, 10)The mirror of the y-intercept is always at x = 2h, because the point 0 is h units left or right of h, and its reflection is the same distance on the other side.
Worked example 2: no x-intercepts
Graph y = -(x + 2)^2 - 1.
Rewrite (x + 2) as (x - (-2)) to read the values: a = -1, h = -2, k = -1.
- Direction: a is negative, so the parabola opens downward. |a| = 1, so it has the same width as y = x^2.
- Vertex and axis: the vertex is (-2, -1) and the axis is x = -2. It is a maximum, so every other point lies below y = -1.
- y-intercept: y = -(0 + 2)^2 - 1 = -4 - 1 = -5, so (0, -5).
- x-intercepts: set 0 = -(x + 2)^2 - 1. Then (x + 2)^2 = -1. A real number squared is never negative, so there is no real solution and no x-intercepts.
- Reflection: the point (0, -5) is 2 units right of the axis x = -2, so its mirror is (-4, -5).
- Extra points: at x = -1, y = -(1)^2 - 1 = -2, so (-1, -2) and its mirror (-3, -2). At x = 1, y = -(3)^2 - 1 = -10, so (1, -10) and its mirror (-5, -10).
You can predict the missing intercepts before computing anything. The vertex is the highest point at y = -1, which is below the x-axis, and the curve opens downward, so it never rises to y = 0.
Worked example 3: exactly one x-intercept
Graph y = (1/2)(x - 3)^2.
Here a = 1/2, h = 3, k = 0.
- Direction: it opens up, and it is wider than y = x^2 because 0 < |a| < 1.
- Vertex and axis: the vertex is (3, 0) and the axis is x = 3.
- x-intercepts: set 0 = (1/2)(x - 3)^2, so x = 3. The vertex lies on the x-axis, so this is the only x-intercept.
- y-intercept: y = (1/2)(9) = 4.5, so (0, 4.5). Its mirror is (6, 4.5).
- Extra points: at x = 5, y = (1/2)(4) = 2, so (5, 2) and its mirror (1, 2).
Here the vertex and the x-intercept are the same point, so you need the reflected pairs to draw the curve well.
Choosing the right shortcut
The number of x-intercepts follows from the sign of a and the sign of k. The table summarizes this.
| Opens | k value | x-intercepts | Example |
|---|---|---|---|
| Up (a > 0) | k < 0 | Two | y = 2(x - 1)^2 - 8 |
| Up (a > 0) | k = 0 | One, at the vertex | y = (1/2)(x - 3)^2 |
| Up (a > 0) | k > 0 | None | y = (x + 1)^2 + 4 |
| Down (a < 0) | k > 0 | Two | y = -(x - 2)^2 + 9 |
| Down (a < 0) | k = 0 | One, at the vertex | y = -3x^2 |
| Down (a < 0) | k < 0 | None | y = -(x + 2)^2 - 1 |
Use this table as a check, not as a replacement for solving. Do the algebra in step 5, then confirm the result matches the row.
Choosing extra points
The y-intercept and x-intercepts do not always give a well-spaced set of points. Sometimes the intercepts are close together or the y-intercept is far from the vertex. Use these rules:
- If you have fewer than five points, add pairs at distances 1, 2, and 3 from the axis.
- Pick x values that are easy to compute with, such as whole numbers next to h.
- Stop when the points show the curve's width and direction. More points do not make the sketch more correct.
- For a narrow parabola (large |a|), the y values climb quickly, so use small distances like 1 and 2 from the axis. For a wide parabola (small |a|), use larger distances so the points are not crowded together.
Common errors
Other errors to watch for:
- Reading k with the wrong sign. In y = (x - 4)^2 - 5, k is -5, so the vertex is (4, -5).
- Forgetting the negative root. Solving (x - 1)^2 = 4 gives x - 1 = 2 and x - 1 = -2. Dropping one root loses an intercept.
- Taking a square root before isolating the squared factor. In 0 = 2(x - 1)^2 - 8, first move the 8 and divide by 2. Only then take the square root.
- Reflecting across the y-axis instead of the axis of symmetry. The mirror of x = p is x = 2h - p, not -p, unless h = 0.
- Drawing a pointed or flat-bottomed curve. The vertex is a smooth turning point. The curve is rounded there, and the two sides keep spreading apart.
- Sketching intercepts that do not exist. If (x - h)^2 equals a negative number, stop. There are no x-intercepts to plot.
Practice
Exercise
Graph y = -2(x - 3)^2 + 8 by listing the opening direction, vertex, axis, y-intercept, x-intercepts, and the mirror of the y-intercept.
Show answer
Here a = -2, h = 3, k = 8. The parabola opens down, and it is narrower than y = x^2. The vertex is (3, 8) and the axis is x = 3. The y-intercept is y = -2(0 - 3)^2 + 8 = -18 + 8 = -10, so (0, -10), and its mirror across x = 3 is (6, -10). For x-intercepts, set 0 = -2(x - 3)^2 + 8, so (x - 3)^2 = 4 and x - 3 = ±2, giving x = 1 and x = 5. The x-intercepts are (1, 0) and (5, 0).
Exercise
Without solving, say how many x-intercepts y = 3(x + 1)^2 + 2 has, and explain why. Then give its y-intercept and the mirror of that point.
Show answer
It has no x-intercepts. Here a = 3 is positive, so the parabola opens up, and the vertex (-1, 2) is the lowest point and lies above the x-axis. Setting y = 0 would require (x + 1)^2 = -2/3, which has no real solution. The y-intercept is y = 3(1)^2 + 2 = 5, so (0, 5). The axis is x = -1, so the mirror is at x = 2(-1) - 0 = -2, giving (-2, 5).
Exercise
A student graphs y = (x - 2)^2 - 9 and plots x-intercepts at (-3, 0) and (3, 0). Find and fix the error.
Show answer
The student solved (x - 2)^2 = 9 as x = ±3 and forgot to add h = 2. The correct step is x - 2 = ±3, so x = 2 + 3 = 5 or x = 2 - 3 = -1. The x-intercepts are (-1, 0) and (5, 0). They are symmetric about the axis x = 2, which the student's points were not.