The vertex form of a quadratic equation, y = a(x − h)² + k, shows the most important point of the parabola at a glance: its vertex (h, k), where it turns. The coefficient a controls how wide the parabola is and whether it opens upward or downward. This calculator takes a, h and k and gives the standard form coefficients, the y-intercept, the x-intercepts when they exist, the axis of symmetry and the direction of opening.
How the calculation works
Expand the square: a(x − h)² + k = ax² − 2ah·x + (ah² + k). That gives:
- b = −2ah
- c = ah² + k, which is also the y-intercept
- Axis of symmetry: the vertical line x = h
- Roots: set y = 0, so (x − h)² = −k ÷ a, and x = h ± √(−k ÷ a), which exists only when −k ÷ a is at least zero
Example
Take y = 2(x − 3)² − 8, so a = 2, h = 3 and k = −8. Then b = −2 × 2 × 3 = −12 and c = 2 × 9 − 8 = 10, so the standard form is y = 2x² − 12x + 10. The vertex is (3, −8), and the parabola opens upward. The roots are 3 ± √(8 ÷ 2) = 3 ± 2, which gives 1 and 5. The y-intercept is 10.
What a, h and k mean
- a > 0 opens upward, and the vertex is the minimum value of the function. a < 0 opens downward, and the vertex is the maximum.
- A larger absolute value of a makes the parabola narrower, and a smaller one makes it wider.
- h shifts the parabola to the right when positive and to the left when negative.
- k shifts it up when positive and down when negative.
When there are no real roots
If the parabola opens upward (a > 0) and the vertex is above the x-axis (k > 0), it never touches the axis, and the same holds when it opens downward with the vertex below. In that case the roots are complex numbers, which this calculator does not display.
Common mistakes
Watch the sign of h: in y = a(x + 2)² + 1, the vertex is at x = −2, not 2. A zero for a is not allowed because the equation would no longer be quadratic. Finally, do not forget to square h in the constant term when you expand.