Sub topic 3
Vertex form: y = a(x - h)^2 + k
This chapter assumes you can substitute values for x into an expression, expand a binomial such as (x - 3)^2, and take square roots. It also assumes you have met the idea that a parabola is the graph of a quadratic function and that the sign of a decides which way it opens. Here you learn what vertex form is, what each of its three numbers does, and how to avoid the usual mistakes when reading or writing it.
What vertex form is
A quadratic function can be written in several equivalent ways. Vertex form is
y = a(x - h)^2 + k
where a, h, and k are constants and a is not zero. The same function in standard form is y = ax^2 + bx + c. Both describe the same parabola. They differ in what they let you see without extra work.
| Form | Template | What you can read directly |
|---|---|---|
| Standard | y = ax^2 + bx + c | The y-intercept (it is c) and the opening direction |
| Vertex | y = a(x - h)^2 + k | The vertex, the axis of symmetry, and the opening direction |
Vertex form is useful for graphing because the first point you usually need, the turning point of the parabola, is already in the equation. This chapter focuses on the structure of the form. The next chapters cover how to read the vertex and axis, and how to move between forms.
Why the form works
The key fact is that a squared number is never negative. For any x, the term (x - h)^2 is greater than or equal to 0, and it equals 0 only when x = h.
At x = h the equation becomes y = a(0)^2 + k = k. Every other x makes (x - h)^2 positive, so y moves away from k in one direction. That direction is up if a is positive and down if a is negative. The point (h, k) is therefore the lowest or highest point of the graph, and this is why it is called the vertex.
The computation, step by step
Evaluating vertex form applies four operations to x in a fixed order. Following that order is the best protection against arithmetic mistakes.
Here is the same sequence as a worked example. Take y = -3(x + 2)^2 + 5 and find y when x = 0.
- Subtract h. The form uses x - h, so x + 2 means h = -2. Then x - h = 0 - (-2) = 2.
- Square: 2^2 = 4.
- Multiply by a = -3: -3 · 4 = -12.
- Add k = 5: -12 + 5 = -7.
So the graph passes through (0, -7). Now try the special input x = h = -2. Then x - h = 0, the square is 0, and y = k = 5. The vertex is (-2, 5).
What each constant does
Each constant acts at a different step, so each changes the graph in a different way.
| Constant | Step where it acts | Effect on the graph | Example in y = -3(x + 2)^2 + 5 |
|---|---|---|---|
| a | Multiplies the squared term | Sign sets opening direction. Size sets how steep or wide the curve is | a = -3: opens down, narrower than y = x^2 |
| h | Subtracted from x before squaring | Moves the graph horizontally so the vertex is at x = h | h = -2: vertex is 2 units left of the y-axis |
| k | Added after everything else | Moves the graph vertically so the vertex is at y = k | k = 5: vertex is 5 units above the x-axis |
Two special cases are worth knowing:
- If h = 0, the equation is y = ax^2 + k. The vertex lies on the y-axis.
- If k = 0, the equation is y = a(x - h)^2. The vertex lies on the x-axis.
If a = 1, h = 0, and k = 0, you get the basic parabola y = x^2, with its vertex at the origin. Every parabola in vertex form is a stretched, reflected, and shifted copy of that one. A later chapter treats these transformations in detail.
Identifying a, h, and k
To pull the constants out of an equation, compare it with the template term by term.
Take y = 0.5(x - 4)^2 - 1.
- a = 0.5, the number multiplying the squared bracket.
- h = 4, because the bracket reads x - 4, which matches x - h.
- k = -1, because "- 1" at the end matches "+ k" with k = -1.
Now take y = (x + 6)^2 + 3. There is no visible number in front, so a = 1. The bracket x + 6 can be written as x - (-6), so h = -6. And k = 3.
The rule for h is to flip the sign you see inside the bracket. The rule for k is to keep the sign you see outside, attached to the number.
Checking that vertex form matches standard form
Expanding vertex form shows it is the same family of functions as standard form. Starting from y = a(x - h)^2 + k:
y = a(x^2 - 2hx + h^2) + k = ax^2 - 2ah·x + (ah^2 + k)
Comparing with y = ax^2 + bx + c gives two relationships:
- b = -2ah
- c = ah^2 + k
The leading coefficient a is the same in both forms. Notice that c is also the y-intercept, which you get by setting x = 0. That fact is used again when you find intercepts.
The following code checks these formulas on two examples. The first is y = 2(x - 1)^2 - 8, which expands to y = 2x^2 - 4x - 6. The second is y = (x + 3)^2 - 1, where h = -3.
def vertex_to_standard(a, h, k):
"""Return (a, b, c) for y = a(x - h)^2 + k expanded to ax^2 + bx + c."""
return a, -2 * a * h, a * h**2 + k
def vertex_form_value(a, h, k, x):
"""Evaluate y = a(x - h)^2 + k."""
return a * (x - h) ** 2 + k
def standard_value(a, b, c, x):
"""Evaluate y = ax^2 + bx + c."""
return a * x**2 + b * x + c
for a, h, k in [(2, 1, -8), (1, -3, -1)]:
A, B, C = vertex_to_standard(a, h, k)
print((a, h, k), "->", (A, B, C))
for x in [-2, 0, 1, 3]:
assert vertex_form_value(a, h, k, x) == standard_value(A, B, C, x)
# (2, 1, -8) -> (2, -4, -6)
# (1, -3, -1) -> (1, 6, 8)The assertions pass for every tested x, so the two forms give the same y-values. Testing a few inputs this way is a quick method for checking an expansion you did by hand.
Common errors and edge cases
Expanding the square incorrectly
(x - 3)^2 is not x^2 - 9. It is (x - 3)(x - 3) = x^2 - 6x + 9. Dropping the middle term gives a graph with the wrong vertex. If you only need to evaluate, you do not have to expand at all. Subtract, then square.
Applying a at the wrong step
In -3(x + 2)^2, the square applies only to the bracket. Then you multiply by -3. Writing it as (-3(x + 2))^2 would give 9(x + 2)^2, which opens upward. For the same reason, -(x - 1)^2 means a = -1 and opens downward. A negative sign in front of the bracket belongs to a, not to the square.
Writing the bracket in the other order
Because squaring removes the sign, (3 - x)^2 equals (x - 3)^2. So y = 2(3 - x)^2 is in vertex form with a = 2, h = 3, k = 0. You can recognize h by finding the x-value that makes the bracket zero.
A coefficient on x inside the bracket
The template requires x to have coefficient 1 inside the bracket. In y = (2x - 6)^2 + 1, factor out the 2 first: 2x - 6 = 2(x - 3). Squaring gives 4(x - 3)^2, so the function is y = 4(x - 3)^2 + 1, with a = 4, h = 3, k = 1. Reading h = 6 or a = 1 here would be wrong.
Equations not yet in vertex form
An expression such as y = x^2 - 6x + 5 is in standard form. Do not read h and k from it. A later chapter shows how to convert it by completing the square.
Summary of the working model
- Compare the equation with y = a(x - h)^2 + k, factoring if needed so the bracket has the form (x - h).
- Take a as the multiplier of the bracket, h as the opposite of the number added to x inside it, and k as the number added outside.
- Remember that (h, k) is the turning point, because (x - h)^2 is 0 only at x = h.
- When evaluating, work in the order: subtract h, square, multiply by a, add k.
Exercise
For y = -0.5(x + 4)^2 + 7, state a, h, and k. Then find y when x = -2, and say whether the parabola opens up or down.
Show answer
Compare with y = a(x - h)^2 + k. Here a = -0.5, and x + 4 = x - (-4), so h = -4. The constant outside is +7, so k = 7. For x = -2: x - h = -2 - (-4) = 2, then 2^2 = 4, then -0.5 · 4 = -2, then -2 + 7 = 5. So y = 5. Since a is negative, the parabola opens downward.
Exercise
Rewrite y = (2x - 6)^2 + 1 in the form y = a(x - h)^2 + k, and state the values of a, h, and k. Then use vertextostandard-style formulas, b = -2ah and c = ah^2 + k, to find the standard form.
Show answer
Factor 2 from the bracket: 2x - 6 = 2(x - 3). Squaring gives 4(x - 3)^2, so y = 4(x - 3)^2 + 1 with a = 4, h = 3, k = 1. Then b = -2 · 4 · 3 = -24 and c = 4 · 3^2 + 1 = 37. The standard form is y = 4x^2 - 24x + 37. Check with x = 0 in the original: (−6)^2 + 1 = 37, which matches c.
Exercise
A student reads y = (x - 5)^2 - 2 and says the vertex is (-5, -2). What mistake did the student make, and what is the correct vertex?
Show answer
The student flipped the sign of h incorrectly. In the template, the bracket is x - h, so x - 5 gives h = 5, not -5. The sign of k is read as written, so k = -2. The correct vertex is (5, -2). Substituting x = 5 gives y = 0 - 2 = -2, which confirms it.