Sub topic 13
Application: Vertex Form of a Quadratic
The quadratic is the first function most students meet where every transformation from this tutorial acts at once. This chapter shows that vertex form is the general form g(x) = a·f(b(x − h)) + k with f(x) = x². You will use it to read a parabola's features, convert from standard form, and write an equation from a graph.
This chapter assumes you can do the following:
- Evaluate and graph y = x².
- Apply shifts, vertical stretches, and reflections.
- State a domain and range.
- Expand a squared binomial such as (x − 3)².
Vertex form is a transformed parent function
The parent function is f(x) = x². Its graph is a parabola with its vertex (the turning point) at the origin. Apply a vertical stretch or reflection by a, a horizontal shift by h, and a vertical shift by k. The result is:
y = a(x − h)² + k
Each parameter does the job it did in earlier chapters:
| Parameter | Transformation | Effect on the parabola | Column | Column |
|---|---|---|---|---|
| h | Horizontal shift | Vertex moves to x = h. The sign is opposite to what it looks like: (x − 3) moves right 3. | ||
| k | Vertical shift | Vertex moves to y = k. | ||
| a > 0 | No reflection | Opens upward. | ||
| a < 0 | Reflection across the x-axis | Opens downward. | ||
| \ | a\ | > 1 | Vertical stretch | Narrower parabola. |
| 0 < \ | a\ | < 1 | Vertical compression | Wider parabola. |
The vertex is (h, k). The axis of symmetry is the vertical line x = h, because the squared term gives equal outputs for equal distances left and right of h.
Where did the horizontal stretch go?
The general form has a horizontal factor b: a·f(b(x − h)) + k. Vertex form has no b. For a parabola, the horizontal factor can be absorbed into a:
a(b(x − h))² + k = ab²(x − h)² + k
Compressing x² horizontally by a factor of 2 gives (2x)² = 4x². This is the same graph as a vertical stretch by 4. So any horizontal scaling of a parabola is also a vertical scaling, and one parameter a describes both.
This is special to x². For f(x) = |x| or f(x) = x³ you can also trade b for a, but the equivalent factor differs: |bx| = |b|·|x|, while (bx)³ = b³x³. For √x the relationship is √(bx) = √b·√x. Do not assume it works the same way for every parent function.
Reading features directly from vertex form
Take y = −2(x − 3)² + 1.
- Parent: x².
- a = −2: reflected across the x-axis and stretched vertically by a factor of 2.
- h = 3: shifted right 3.
- k = 1: shifted up 1.
- Vertex: (3, 1). Axis of symmetry: x = 3. Opens downward.
- Domain: all real numbers.
- Range: y ≤ 1. The vertex is the highest point, so outputs never exceed k.
In general, the domain is always all real numbers. The range is y ≥ k when a > 0 and y ≤ k when a < 0.
You can confirm the transformation with the function builder from earlier chapters:
def transform(f, a=1, b=1, h=0, k=0):
"""Return g(x) = a * f(b * (x - h)) + k."""
return lambda x: a * f(b * (x - h)) + k
f = lambda x: x ** 2
g = transform(f, a=-2, b=1, h=3, k=1)
print(g(3)) # 1 (vertex at (3, 1))
print(g(4)) # -1
print(g(2)) # -1The outputs g(2) and g(4) are equal, which confirms the symmetry about x = 3. You can also check the absorbed-b claim:
f = lambda x: x ** 2
compressed = lambda x: f(2 * x) # horizontal compression by 2
stretched = lambda x: 4 * f(x) # vertical stretch by 4
print(all(compressed(x) == stretched(x) for x in range(-5, 6))) # TrueTracking key points
A parabola is easy to sketch from five points of the parent: (−2, 4), (−1, 1), (0, 0), (1, 1), (2, 4). In vertex form, b is folded into a, so the mapping rule reduces to:
(x, y) → (x + h, a·y + k)
The horizontal change is a pure shift, and the vertical change is a stretch followed by a shift. For y = −2(x − 3)² + 1:
points = [(-2, 4), (-1, 1), (0, 0), (1, 1), (2, 4)] # on y = x^2
a, b, h, k = -2, 1, 3, 1
mapped = [(x / b + h, a * y + k) for x, y in points]
print(mapped) # [(1.0, -7), (2.0, -1), (3.0, 1), (4.0, -1), (5.0, -7)]
g = lambda x: a * (b * (x - h)) ** 2 + k
print(all(g(px) == py for px, py in mapped)) # TrueNotice the pattern around the vertex. One step from the vertex, the parabola is |a| away vertically. Two steps away, it is 4|a| away. This "1, 4" pattern lets you sketch any parabola from its vertex and a.
Converting from standard form
Standard form is y = ax² + bx + c. Here b is the linear coefficient, not the horizontal factor from the general transformation. Converting to vertex form means completing the square.
Example: y = 2x² − 12x + 13.
- Factor a out of the x-terms: y = 2(x² − 6x) + 13.
- Add and subtract the square of half the linear coefficient inside the parentheses: half of −6 is −3, and (−3)² = 9. This gives y = 2(x² − 6x + 9 − 9) + 13.
- Move the −9 outside, remembering it is multiplied by 2: y = 2(x − 3)² − 18 + 13.
- Combine constants: y = 2(x − 3)² − 5.
The vertex is (3, −5).
The shortcut is a formula. The vertex's x-coordinate is h = −b/(2a), and k is found by evaluating the function at h:
def to_vertex_form(a, b, c):
"""Convert y = ax^2 + bx + c to (a, h, k) for y = a(x - h)^2 + k."""
h = -b / (2 * a)
k = a * h ** 2 + b * h + c
return a, h, k
a, h, k = to_vertex_form(2, -12, 13)
print((a, h, k)) # (2, 3.0, -5.0)
standard = lambda x: 2 * x ** 2 - 12 * x + 13
vertex = lambda x: a * (x - h) ** 2 + k
print(all(standard(x) == vertex(x) for x in range(-5, 10))) # TrueThe final check evaluates both forms at many inputs. Agreement at one point proves little. Agreement at many points is strong evidence that the conversion is right. Two quadratics that agree at three distinct inputs are identical, so checking more than three points is a proof for this case.
Writing an equation from a graph
When you can read the vertex off a graph, use y = a(x − h)² + k and find a from one other point.
Example: a parabola has vertex (2, −3) and passes through (4, 5).
- Substitute the vertex: y = a(x − 2)² − 3.
- Substitute the point (4, 5): 5 = a(4 − 2)² − 3.
- Simplify: 5 = 4a − 3, so 4a = 8 and a = 2.
- Result: y = 2(x − 2)² − 3.
Check the "1, 4" pattern. One step right of the vertex, at x = 3, the output should be −3 + 2 = −1. Indeed 2(1)² − 3 = −1.
If instead you know the x-intercepts and not the vertex, the vertex is halfway between them, so h is their average. Then k comes from evaluating at h, using a found from another point.
Common errors
- Wrong sign on h. In y = (x + 4)² − 1 the vertex is (−4, −1), not (4, −1). Rewrite x + 4 as x − (−4) to see h.
- Confusing a with width. A larger |a| gives a narrower parabola. A coefficient of 0.25 makes it wider.
- Reflecting the wrong way. The sign of a decides whether the parabola opens up or down. A negative h or k never flips the graph.
- Mixing up the two b's. In standard form, b is the coefficient of x. In the general transformation, b is the horizontal factor. They are unrelated.
- Giving the range as all reals. Only the domain is all reals. The range stops at k.
Exercises
Exercise
Identify the vertex, the direction of opening, and the range of y = −½(x + 2)² + 5. Then describe the transformations applied to y = x².
Show answer
Rewrite as y = −½(x − (−2))² + 5. The vertex is (−2, 5). Since a = −½ is negative, the parabola opens downward. The range is y ≤ 5. The transformations are: reflect across the x-axis, compress vertically by a factor of ½, shift left 2, and shift up 5.
Exercise
Convert y = x² + 8x + 11 to vertex form, and state the vertex.
Show answer
Half of 8 is 4, and 4² = 16. So y = (x² + 8x + 16) − 16 + 11 = (x + 4)² − 5. The vertex is (−4, −5). Check with the formula: h = −8/2 = −4, and k = 16 − 32 + 11 = −5.
Exercise
A parabola has vertex (−1, 4) and passes through (1, −4). Write its equation in vertex form.
Show answer
Start with y = a(x + 1)² + 4. Substitute (1, −4): −4 = a(2)² + 4, so 4a = −8 and a = −2. The equation is y = −2(x + 1)² + 4.
Exercise
Show that the graph of y = (3x)² is the same as a vertical stretch of y = x², and state the stretch factor.
Show answer
(3x)² = 9x², so the graph is a vertical stretch of y = x² by a factor of 9. Equivalently, it is a horizontal compression by a factor of 3. For a parabola, the two descriptions give the same graph.