Last Updated on June 8, 2026 by Rajeev Bagra
One of the most elegant ideas in algebra is completing the square. It is not only a technique for solving quadratic equations, but also the process from which the famous quadratic formula is derived.
In this post, we’ll explore:
- What a perfect square is
- Why completing the square works
- The step-by-step process of completing the square
- How the quadratic formula is derived
- Real-world significance of the technique
What Is a Perfect Square Expression?
A perfect square expression is obtained when a binomial is multiplied by itself.
For example:
latex^2=x^2+6x+9[/latex]
Expanding the expression:
latex(x+3)=x^2+3x+3x+9[/latex]
Similarly,
latex^2=x^2-10x+25[/latex]
Notice that perfect square expressions always follow the pattern:
latex^2=x^2+2ax+a^2[/latex]
The goal of completing the square is to transform an expression into this form.
Why Complete the Square?
Suppose we have:
This expression cannot be factored directly into a perfect square.
However, if we add 9:
we obtain:
latex^2[/latex]
The expression is now much easier to work with.
The key question becomes:
How did we know to add 9?
The answer lies in a simple rule.
The Rule for Completing the Square
Given:
Step 1: Take the coefficient of x
Step 2: Divide it by 2
Step 3: Square the result
Step 4: Add that value
This transforms the expression into a perfect square.
Example 1
Start with:
Half of 8:
Square it:
Add 16:
Factor:
latex^2[/latex]
Verification:
latex(x+4)=x^2+8x+16[/latex]
Example 2
Start with:
Half of -12:
Square it:
latex^2=36[/latex]
Add 36:
Factor:
latex^2[/latex]
Why Does the Rule Work?
Consider the general square:
latex^2[/latex]
Expanding:
latex^2=x^2+2kx+k^2[/latex]
Compare this with:
The coefficients of x must match:
Therefore:
Substituting back:
Therefore the missing term is always:
which is exactly:
This proves the rule mathematically.
Deriving the Quadratic Formula
Consider the general quadratic equation:
where:
Step 1: Divide by a
We want the coefficient of to become 1.
Move the constant term:
Step 2: Complete the Square
The coefficient of x is:
Half of it:
Square it:
Add this quantity to both sides:
Step 3: Factor the Left Side
The left side is now a perfect square:
Therefore:
Step 4: Simplify the Right Side
Convert:
to a denominator of :
Thus:
Step 5: Take Square Roots
Applying square roots to both sides:
Simplifying:
Step 6: Solve for x
Subtract:
from both sides:
Combine into a single fraction:
This is the famous quadratic formula.
The Discriminant
The expression:
is called the discriminant.
It determines the nature of the roots.
If
there are two distinct real roots.
If
there is one repeated root.
If
there are two complex roots.
Example
Solve:
Using:
Substitute into the quadratic formula:
Simplify:
First root:
Second root:
Connection to Recurrence Relations
When solving recurrences such as the Gambler’s Ruin recurrence:
we assume:
which leads to the characteristic equation:
Notice that this is also a quadratic equation.
The quadratic formula can then be used to find the roots:
and
These roots allow us to construct the general solution of the recurrence.
Key Takeaways
- Completing the square converts a quadratic expression into a perfect square.
- The missing term is always obtained by taking half the coefficient of x and squaring it.
- Completing the square is the foundation of the quadratic formula.
- The quadratic formula is not memorized magic—it is derived systematically.
- The same quadratic-solving techniques appear in algebra, calculus, statistics, physics, finance, and recurrence relations such as Gambler’s Ruin.
Understanding completing the square gives you a deeper appreciation of why the quadratic formula works and why quadratic equations appear throughout mathematics.
Discover more from Progaiz.com
Subscribe to get the latest posts sent to your email.


Leave a Reply