Factorisation is quick, but many quadratics don't factor over rationals. Completing the square is a method that works for every quadratic equation. It turns the equation into the form (x+p)2=q, which you can solve by taking square roots.
The idea: Rewrite ax2+bx+c=0 so the x-terms become a perfect square (x+p)2, then isolate it and take the square root of both sides.
Think of it this way: we 'force' the left side into a perfect square by adding and subtracting the right constant.
[Board Important] This method is the foundation of the quadratic formula. Even where it's not on your exact syllabus, understanding it makes the formula far less mysterious.
The Key Algebraic Identity
Completing the square relies on:
x2+2px+p2=(x+p)2
So to complete the square for x2+bx, we need the constant (2b)2:
x2+bx=(x+2b)2−(2b)2
Quick demo
x2+6x=(x+3)2−9 (since half of 6 is 3, and 32=9).
Key Point: Take half the coefficient of x, square it, and add-and-subtract it. The first three terms then form a perfect square.
[Board Important] The magic number is always (2coefficient of x)2. Memorise this — it's the core of the method.
The Steps (with a=1)
Let's solve x2+4x−5=0.
Move the constant to the right: x2+4x=5.
Complete the square: half of 4 is 2, 22=4. Add 4 to both sides: x2+4x+4=5+4=9.
Write as a square:(x+2)2=9.
Take square roots:x+2=±3.
Solve:x=3−2=1 or x=−3−2=−5.
So the roots are x=1 and x=−5.
Key Point: Don't forget the ± when taking the square root — it gives both roots.
[Board Important] Always add the completing constant to both sides to keep the equation balanced.
When a=1
If the coefficient of x2 is not 1, divide the whole equation by a first, then complete the square.
Worked outline: 2x2−8x+6=0
Divide by 2: x2−4x+3=0.
Move constant: x2−4x=−3.
Half of −4 is −2, square is 4. Add 4: x2−4x+4=1⇒(x−2)2=1.
x−2=±1⇒x=3 or x=1.
Key Point: Divide by a before completing the square, so the x2 coefficient becomes 1.
[Board Important] Forgetting to divide by a first is the most common mistake here. Always reduce the x2 coefficient to 1 at the start.
Solved Examples
Example 1: Basic completing the square
Solve x2+6x+5=0.
Solution:
x2+6x=−5.
Half of 6 is 3, 32=9: x2+6x+9=−5+9=4.
(x+3)2=4⇒x+3=±2.
x=−1 or x=−5.
Final Answer:x=−1,−5.
Takeaway: Add (b/2)2 to both sides, then square-root.
Example 2: Roots with surds
Solve x2−4x−1=0.
Solution:
x2−4x=1.
Half of −4 is −2, square 4: x2−4x+4=5⇒(x−2)2=5.
x−2=±5⇒x=2±5.
Final Answer:x=2+5,2−5.
Takeaway: Completing the square handles surd roots that factorisation can't.
Example 3: With a=1
Solve 2x2−8x+6=0.
Solution:
Divide by 2: x2−4x+3=0⇒x2−4x=−3.
Add 4: (x−2)2=1.
x−2=±1⇒x=3,1.
Final Answer:x=1,3.
Takeaway: Divide by a first so the x2 coefficient is 1.
Example 4: Negative middle term
Solve x2−6x+7=0.
Solution:
x2−6x=−7.
Half of −6 is −3, square 9: (x−3)2=−7+9=2.
x−3=±2⇒x=3±2.
Final Answer:x=3+2,3−2.
Takeaway: Half of a negative coefficient is negative, but its square is positive.
Example 5: Fractional half
Solve x2+3x+1=0.
Solution:
x2+3x=−1.
Half of 3 is 23, square 49: (x+23)2=−1+49=45.
x+23=±25⇒x=2−3±5.
Final Answer:x=2−3±5.
Takeaway: Odd middle coefficients give fractional halves — keep them as fractions.
Example 6: No real roots revealed
Solve x2+2x+5=0 by completing the square.
Solution:
x2+2x=−5.
Add 1: (x+1)2=−4.
The right side is negative; no real number squares to a negative.
Final Answer: No real roots.
Takeaway: A negative value after completing the square means no real roots.
Example 7: With a=1 and surds
Solve 3x2−6x−2=0.
Solution:
Divide by 3: x2−2x−32=0⇒x2−2x=32.
Add 1: (x−1)2=32+1=35.
x−1=±35⇒x=1±315.
Final Answer:x=1±315.
Takeaway: Rationalise 5/3 to 315 for the final answer.
Example 8: Equal roots case
Solve x2−8x+16=0 by completing the square.
Solution:
x2−8x=−16.
Add 16: (x−4)2=0.
x−4=0⇒x=4 (repeated).
Final Answer:x=4 (equal roots).
Takeaway:(x−p)2=0 gives a single repeated root.
Example 9: Verify the method matches factorisation
Solve x2−5x+6=0 by completing the square and confirm with factorisation.
Solution:
x2−5x=−6. Half of −5 is −25, square 425: (x−25)2=−6+425=41.
x−25=±21⇒x=3 or x=2.
Factorisation: (x−2)(x−3)=0 gives the same. ✓
Final Answer:x=2,3.
Takeaway: Both methods give identical roots — a good self-check.
Example 10: Word problem via completing the square
The sum of a number and its reciprocal is 310. Find the number.
Solution:
Let the number be x: x+x1=310⇒3x2−10x+3=0.
Divide by 3: x2−310x+1=0⇒x2−310x=−1.
Half of −310 is −35, square 925: (x−35)2=−1+925=916.
x−35=±34⇒x=3 or x=31.
Final Answer: The number is 3 (or 31).
Takeaway: Reciprocal problems lead to a quadratic; completing the square solves it cleanly.
Ready to test your knowledge?
Take a quick interactive quiz on this topic —
free, works without login.