What is Completing the Square?
Completing the square is an algebraic method for rewriting a quadratic equation from standard form into vertex form. Given a quadratic in the form ax squared plus bx plus c, the technique produces an equivalent expression a times the quantity x minus h squared plus k, where the point (h, k) is the vertex of the parabola.
This method is more than a classroom exercise. It is the foundation from which the quadratic formula is derived, and it appears throughout calculus, physics, and engineering whenever a problem involves optimizing a quadratic relationship.
How to Complete the Square
The process follows a clear sequence of steps. Starting with the general quadratic:
[ax^{2} + bx + c = 0]
The vertex form is:
[a(x - h)^{2} + k = 0]
Where:
[h = \frac{-b}{2a}]
[k = c - \frac{b^{2}}{4a}]
The two solutions (roots) of the equation are found using the discriminant:
[\Delta = b^{2} - 4ac]
When the discriminant is positive, there are two distinct real roots. When it is zero, there is one repeated root. When it is negative, the roots are complex conjugates.
Step-by-Step Process
Here is the manual method for completing the square, demonstrated with the equation x squared plus 6x plus 5 equals zero:
Step 1: Ensure the leading coefficient is 1. If a is not 1, divide the entire equation by a. In this case, a equals 1, so no division is needed.
Step 2: Move the constant to the other side.
[x^{2} + 6x = -5]
Step 3: Take half of b and square it. Half of 6 is 3, and 3 squared is 9.
Step 4: Add that value to both sides.
[x^{2} + 6x + 9 = -5 + 9]
Step 5: Factor the left side as a perfect square.
[(x + 3)^{2} = 4]
Step 6: Solve for x.
[x + 3 = \pm 2]
[x = -1 \text{ or } x = -5]
Calculation Example
Let us verify this with the formula. For x squared plus 6x plus 5 equals zero, the coefficients are a equals 1, b equals 6, c equals 5.
[h = \frac{-6}{2 \times 1} = -3]
[k = 5 - \frac{6^{2}}{4 \times 1} = 5 - 9 = -4]
The vertex form is:
[1(x - (-3))^{2} + (-4) = (x + 3)^{2} - 4]
The vertex is at (-3, -4). The discriminant is:
[\Delta = 36 - 20 = 16]
Since the discriminant is positive, we have two real roots:
[x = \frac{-6 + 4}{2} = -1 \quad \text{and} \quad x = \frac{-6 - 4}{2} = -5]
| Variable | Value |
|---|---|
| a | 1 |
| b | 6 |
| c | 5 |
| Vertex (h, k) | (-3, -4) |
| Discriminant | 16 |
| Root 1 | -1 |
| Root 2 | -5 |
Handling Complex Roots
Consider 2x squared plus 4x plus 10 equals zero. Here a equals 2, b equals 4, c equals 10.
[h = \frac{-4}{4} = -1]
[k = 10 - \frac{16}{8} = 10 - 2 = 8]
The vertex form is 2 times the quantity x plus 1 squared plus 8. The discriminant is:
[\Delta = 16 - 80 = -64]
The negative discriminant means the roots are complex:
[x = \frac{-4 \pm \sqrt{-64}}{4} = -1 \pm 2i]
The parabola opens upward and never crosses the x-axis.
Connection to the Quadratic Formula
The quadratic formula is derived by applying the completing-the-square method to the general equation ax squared plus bx plus c equals zero. Every step of the derivation mirrors the manual process above, just applied to letters instead of numbers. The result:
[x = \frac{-b \pm \sqrt{b^{2} - 4ac}}{2a}]
This means completing the square and the quadratic formula always produce identical roots. The advantage of completing the square is that it also yields the vertex form, which is essential for graphing and optimization.
Applications
- Graphing parabolas. The vertex form tells you the peak or valley of the curve and whether it opens up or down, making it trivial to sketch.
- Optimization. In physics and economics, maximizing or minimizing a quadratic function requires finding the vertex, which is exactly what completing the square provides.
- Deriving the circle equation. The general equation of a circle is converted to standard form by completing the square in both x and y.
- Signal processing. Quadratic expressions appear in filter design, and vertex form simplifies analysis of frequency response curves.
Completing the square is one of those foundational techniques that keeps showing up, no matter how far you go in mathematics or engineering.
Geometric Interpretation
The name "completing the square" is not a metaphor. It describes an actual geometric operation. Start with a square of side x (area x squared) and a rectangle of dimensions x by b (area bx). The goal is to rearrange these shapes into a single, larger perfect square.
Split the rectangle into two equal strips, each x by b/2. Attach one strip to the right side of the original square and one to the bottom. This creates an L-shaped figure. The missing piece in the bottom-right corner is a small square with side b/2 and area (b/2) squared. Adding that small square "completes" the larger square, which now has side x + b/2 and total area (x + b/2) squared.
This is exactly the algebra: x squared plus bx plus (b/2) squared equals (x + b/2) squared. The constant you add to both sides of the equation, (b/2) squared, is the area of the missing corner piece. Understanding this visual model makes the algebraic steps feel intuitive rather than arbitrary.
Working With a Leading Coefficient Other Than 1
When the coefficient a is not equal to 1, an extra factoring step is required before completing the square. Consider 3x squared plus 12x plus 7 equals 0.
Step 1: Factor the leading coefficient from the first two terms:
$$3(x^{2} + 4x) + 7 = 0$$
Step 2: Inside the parentheses, take half of 4 (which is 2) and square it (which is 4). Add and subtract this value inside:
$$3(x^{2} + 4x + 4 - 4) + 7 = 0$$
Step 3: Separate the perfect square trinomial from the leftover:
$$3(x + 2)^{2} - 12 + 7 = 0$$
$$3(x + 2)^{2} - 5 = 0$$
The vertex is at (-2, -5/3) when expressed in the form a(x - h) squared + k with a = 3, h = -2, and k = -5. The key detail many students miss is that the subtracted value inside the parentheses gets multiplied by the leading coefficient when brought outside. In this case, -4 inside the parentheses becomes -12 after multiplication by 3.
Common Algebraic Errors
Several mistakes recur whenever students complete the square by hand:
- Forgetting to divide by a first. If the leading coefficient is not 1 and you skip the factoring step, every subsequent calculation will be wrong. Always factor out a before working on the x squared and x terms.
- Sign errors with h. The vertex form uses (x - h) squared, so when b is positive, h is negative. Writing (x + 3) squared when h = -3 is correct, but confusing this with h = 3 leads to plotting the vertex on the wrong side of the y-axis.
- Adding to one side only. Whatever value you add to complete the square must also be added to the other side of the equation to maintain equality. This is the single most common error in the entire procedure.
- Mishandling the discriminant sign. A negative discriminant means the roots are complex, not that something went wrong. Students sometimes flip a sign to "fix" the negative, which destroys the solution.