Completing the square: from coefficients to the vertex
A vertex hidden inside ax² + bx + c becomes obvious once the expression is written as a(x − h)² + k. Completing the square converts standard form to vertex form. I use it when a graph, minimum, maximum or symmetry line matters more than simply getting a pair of roots.
The method preserves the original function. If you divide the entire function by a, you change its vertical values; if you divide an equation equal to zero by a, you preserve its roots. Keeping those two operations distinct avoids the common mistake of drawing a correctly located vertex with the wrong height.
Start with a leading coefficient of one
Take y = x² − 6x + 5. Half the x coefficient is −3, and its square is 9. Add and subtract that same number: y = x² − 6x + 9 − 9 + 5. The first three terms make (x − 3)², so y = (x − 3)² − 4. The vertex is (3, −4), the axis is x = 3 and the curve opens upward.
The subtraction is essential. Writing x² − 6x + 5 = (x − 3)² + 5 would introduce nine extra units. I check by expanding: (x − 3)² − 4 = x² − 6x + 9 − 4 = x² − 6x + 5. An expansion check works with fractions and negative leading coefficients too, so it is more dependable than memorizing a sign pattern.
Factor a from the quadratic and linear terms
For y = 2x² − 12x + 14, first write y = 2(x² − 6x) + 14. Inside the brackets, add and subtract 9: y = 2[(x − 3)² − 9] + 14 = 2(x − 3)² − 4. The vertex is again (3, −4), but the coefficient 2 makes the vertical rise twice as large for the same horizontal distance from the axis.
The adjustment outside the square is −18, not −9, because the entire bracket is multiplied by 2. This is the step where I slow down with beginners. A number added inside a scaled bracket must be balanced inside that bracket before simplifying the outside constant. For x = 0, both forms give 14; for x = 3, both give −4.
| Standard form | Vertex form | Vertex |
|---|---|---|
| x² − 6x + 5 | (x − 3)² − 4 | (3, −4) |
| 2x² − 12x + 14 | 2(x − 3)² − 4 | (3, −4) |
| −2x² + 8x + 1 | −2(x − 2)² + 9 | (2, 9) |
| x² + 2x + 5 | (x + 1)² + 4 | (−1, 4) |
Find the vertex for any nonzero a
Factor a: y = a[x² + (b/a)x] + c. Half the bracket’s x coefficient is b/(2a). Adding and subtracting its square gives y = a[x + b/(2a)]² + c − b²/(4a). Comparing this with a(x − h)² + k yields h = −b/(2a) and k = c − b²/(4a).
The same height can be written k = (4ac − b²)/(4a) = −D/(4a). This links the vertex to the discriminant directly. For an upward-opening parabola, D > 0 puts the vertex below zero, D = 0 puts it on zero and D < 0 puts it above zero. Reverse the vertical conclusion when a is negative: the vertex is then a maximum, not a minimum.
A negative a changes the opening, not the method
Consider y = −2x² + 8x + 1. Factor −2 from the first two terms: y = −2(x² − 4x) + 1. Half of −4 is −2, so write y = −2[(x − 2)² − 4] + 1 = −2(x − 2)² + 9. The maximum is 9 at x = 2. One horizontal unit away, at x = 1 or x = 3, the value is 7.
Do not describe the vertex as the “lowest point” without first reading the sign of a. Likewise, the coefficient of the squared expression is not a slope: a parabola does not have a single constant slope. It controls opening direction and vertical scaling relative to horizontal distance from h. The independent tick scales in a graph can exaggerate or flatten its appearance.
Set vertex form equal to zero to recover the roots
From 2(x − 3)² − 4 = 0, move 4 and divide by 2: (x − 3)² = 2. Take both square-root signs, x − 3 = ±√2, so x = 3 ± √2. Their midpoint is 3, matching the symmetry axis. Their sum is 6 and product is 9 − 2 = 7, matching −b/a and c/a for 2x² − 12x + 14.
For (x + 1)² + 4 = 0, the squared expression would equal −4. There are no real roots, but complex algebra gives x + 1 = ±2i and x = −1 ± 2i. The real vertex is still (−1, 4); completing the square tells you both where the real curve sits and why it cannot cross y = 0.
When should I use standard, vertex or factored form?
Standard form exposes coefficients and the y-intercept c. Vertex form exposes the symmetry line and extreme value. Factored form exposes real zeros when a real factorization is available. None is universally “the best”: choose the form that makes the requested quantity easy to read, then keep a second form as a check.
The calculator lists the completed-square expression in its steps and the exact vertex in its property panel. Its equation parser expects an expanded sum, so expand a vertex-form input before pasting it. For the underlying function conventions, see OpenStax’s quadratic functions. For deciding whether the roots are real or complex, read the discriminant guide. For selecting a physically meaningful root after the algebra, continue with quadratic word problems.
Quick answers
Why do I add and subtract the same number?
That creates a perfect-square trinomial while preserving the original expression. With a factored leading coefficient, both adjustments belong inside its bracket.
Is the vertex always a minimum?
It is a minimum when a is positive and a maximum when a is negative.
Can I paste vertex form directly?
The equation parser accepts expanded sums. Expand a(x − h)² + k into ax² + bx + c before entering it.