What Is Completing the Square?
Completing the square is an algebraic technique that rewrites a quadratic expression ax² + bx + c into vertex form a(x − h)² + k. The name comes from the geometric idea of literally forming a perfect square from a rectangular area.
a(x − h)² + k instantly tells you the vertex of the parabola — the point (h, k) — and whether it opens upward or downward.Why does this matter? This makes graphing far easier and is essential when solving quadratic equations that do not factor neatly.
Completing the square is also the method used to derive the quadratic formula itself, so understanding it deepens your grasp of where that formula comes from. In calculus and optimization problems, vertex form reveals the maximum or minimum value of a function at a glance.
Whether you are solving equations, graphing parabolas, or deriving formulas, completing the square is a foundational skill every algebra student needs.
Step-by-Step Method
Follow these steps to complete the square for any expression ax² + bx + c.
- Factor out the leading coefficient
If the leading coefficient
ais not 1, factor it out from the first two terms. - Halve and square the x coefficient
Take the coefficient of the
xterm (after factoring), divide it by 2, and square the result. This gives you the number needed to form a perfect square trinomial. - Add and subtract that number
Add and subtract that number inside the expression so the value does not change.
- Rewrite as a binomial squared
Rewrite the perfect-square trinomial as a binomial squared:
(x + d)²wheredis half the coefficient from Step 2. - Simplify constants
Simplify the remaining constant terms.
x² + bx becomes (x + b/2)² − (b/2)². Memorizing this template lets you complete the square quickly on exams.Solver AI can walk you through each step for any specific quadratic — just snap a photo of the problem.
Worked Example — Simple Case
Let's complete the square for x² + 6x + 2 = 0.
Step 1: The leading coefficient is already 1, so no factoring needed.
Step 2: Take the coefficient of x, which is 6. Half of 6 is 3, and 3² = 9.
Step 3: Add and subtract 9: x² + 6x + 9 − 9 + 2 = 0.
Step 4: Rewrite the perfect-square trinomial: (x + 3)² − 9 + 2 = 0.
Step 5: Simplify: (x + 3)² − 7 = 0.
Now solve: (x + 3)² = 7, so x + 3 = ±√7, giving x = −3 ± √7.
x = −3 ± √7The vertex of the parabola y = x² + 6x + 2 is at (−3, −7). Notice how vertex form immediately reveals the minimum value of the quadratic is −7, occurring at x = −3. This approach yields exact answers with radicals, which is often preferred over decimal approximations.