TExcelTAD
Home › School Algebra, Identities & Quadratic Equations › Solving Quadratics by Completing the Square

Solving Quadratics by Completing the Square

While factoring quadratic trinomials is fast when numbers are simple integers, many equations cannot be factored neatly into whole numbers (for instance, x2+6x−2=0x^2 + 6x - 2 = 0).

Completing the square is the universal paper method that works for any quadratic equation. Moreover, it provides direct geometric insight into why quadratics behave the way they do and serves as the exact algebraic engine that derives the famous quadratic formula.


1. Concepts & Paper Visuals

The Geometric Meaning of "Completing the Square"

Imagine an algebraic expression x2+bxx^2 + bx represented as a geometric area:

  1. A large square of side length xx, having area x2x^2.
  2. Two identical rectangles, each of width b2\frac{b}{2} and length xx, giving combined area 2×(b2⋅x)=bx2 \times \left(\frac{b}{2} \cdot x\right) = bx.

Place one rectangle on the right side of the large square and one rectangle on top:

               x           b/2
        ┌──────────────┬────────┐
        │              │  MISSING
        │              │  CORNER
    b/2 │  x · (b/2)   │ (b/2)²
        │              │  [+]
        ├──────────────┼────────┤
        │              │        │
        │              │        │
      x │     x²       │ x·(b/2)│
        │              │        │
        │              │        │
        └──────────────┴────────┘
               x           b/2

Notice the open missing corner in the top right! Its dimensions are b2\frac{b}{2} by b2\frac{b}{2}, so its area is:

(b2)2\left(\frac{b}{2}\right)^2

When you add this missing corner square, the entire combined shape becomes a perfect, complete square of side length (x+b2)\left(x + \frac{b}{2}\right):

x2+bx+(b2)2=(x+b2)2x^2 + bx + \left(\frac{b}{2}\right)^2 = \left(x + \frac{b}{2}\right)^2

The Algebraic Perfect Square Binomials

Recall the two fundamental squaring identities from algebra:

(x+d)2=x2+2dx+d2(x−d)2=x2−2dx+d2\begin{aligned} (x + d)^2 &= x^2 + 2dx + d^2 \\ (x - d)^2 &= x^2 - 2dx + d^2 \end{aligned}

Whenever you have x2+bxx^2 + bx, the coefficient of xx is 2d=b2d = b, which means:

d=b2  ⟹  d2=(b2)2d = \frac{b}{2} \implies d^2 = \left(\frac{b}{2}\right)^2

2. The Step-by-Step Paper Algorithm

To solve any quadratic equation ax2+bx+c=0ax^2 + bx + c = 0 on paper:

Step 1: Normalize (Make a = 1)
        Divide every term in the equation by a:
        x² + (b/a)x + (c/a) = 0

Step 2: Isolate Variable Terms
        Subtract the constant term (c/a) to the right-hand side:
        x² + (b/a)x = -c/a

Step 3: Calculate the Magic Number
        Take half the coefficient of x, and square it:
        k = [ (1/2) · (b/a) ]²

Step 4: Add to BOTH Sides (Preserve Balance)
        x² + (b/a)x + k = -c/a + k

Step 5: Collapse LHS into a Perfect Square
        [ x + b/(2a) ]² = -c/a + k

Step 6: Extract Square Roots & Solve for x
        x + b/(2a) = ± √(RHS)

3. Step-by-Step Notebook Examples

Example 1: Monic Quadratic (a=1a = 1) with Even Linear Term

Problem: Solve x2+6x−7=0x^2 + 6x - 7 = 0 by completing the square on paper.

  • Step 1: Isolate the constant term Add 77 to both sides of the equation:
    x2+6x=7x^2 + 6x = 7
  • Step 2: Calculate the completing term
    • Coefficient of xx is b=6b = 6.
    • Half of 66 is 62=3\frac{6}{2} = 3.
    • Square it: 32=93^2 = 9.
  • Step 3: Add 99 to BOTH sides
    x2+6x+9=7+9x^2 + 6x + 9 = 7 + 9
  • Step 4: Factor the LHS and simplify the RHS The LHS is now the square of (x+3)(x + 3):
    (x+3)2=16(x + 3)^2 = 16
  • Step 5: Take the square root of both sides Remember the plus-or-minus sign (±\pm):
    (x+3)2=±16  ⟹  x+3=±4\sqrt{(x + 3)^2} = \pm \sqrt{16} \implies x + 3 = \pm 4
  • Step 6: Solve for xx
    x1=−3+4=1x2=−3−4=−7\begin{aligned} x_1 &= -3 + 4 = 1 \\ x_2 &= -3 - 4 = -7 \end{aligned}
  • Final Answer:
    x∈{−7,1}x \in \{-7, 1\}

Example 2: Monic Quadratic Yielding Irrational Roots

Problem: Solve x2−8x+10=0x^2 - 8x + 10 = 0 on paper.

  • Step 1: Isolate constant on RHS
    x2−8x=−10x^2 - 8x = -10
  • Step 2: Compute the square of half the linear coefficient
    • Linear coefficient is −8-8.
    • Half is −82=−4\frac{-8}{2} = -4.
    • Square is (−4)2=16(-4)^2 = 16.
  • Step 3: Add 1616 to both sides
    x2−8x+16=−10+16(x−4)2=6\begin{aligned} x^2 - 8x + 16 &= -10 + 16 \\ (x - 4)^2 &= 6 \end{aligned}
  • Step 4: Take square roots
    x−4=±6x - 4 = \pm \sqrt{6}
  • Step 5: Isolate xx
    x=4±6x = 4 \pm \sqrt{6}
  • Final Answer:
    x1=4−6,x2=4+6x_1 = 4 - \sqrt{6}, \quad x_2 = 4 + \sqrt{6}
    (Notice: This equation could never be factored using integers! Completing the square solved it smoothly.)

Example 3: Non-Monic Quadratic (a≠1a \neq 1) with Fractional Terms

Problem: Solve 2x2+5x−3=02x^2 + 5x - 3 = 0 on paper.

  • Step 1: Divide all terms by the leading coefficient a=2a = 2
    x2+52x−32=0x^2 + \frac{5}{2}x - \frac{3}{2} = 0
  • Step 2: Move the constant term to the RHS
    x2+52x=32x^2 + \frac{5}{2}x = \frac{3}{2}
  • Step 3: Calculate the completing square term
    • Coefficient of xx is 52\frac{5}{2}.
    • Take half: 12⋅52=54\frac{1}{2} \cdot \frac{5}{2} = \frac{5}{4}.
    • Square it: (54)2=2516\left(\frac{5}{4}\right)^2 = \frac{25}{16}.
  • Step 4: Add 2516\frac{25}{16} to both sides
    x2+52x+2516=32+2516x^2 + \frac{5}{2}x + \frac{25}{16} = \frac{3}{2} + \frac{25}{16}
  • Step 5: Simplify the RHS with common denominator 1616
    32+2516=3⋅82⋅8+2516=24+2516=4916\frac{3}{2} + \frac{25}{16} = \frac{3 \cdot 8}{2 \cdot 8} + \frac{25}{16} = \frac{24 + 25}{16} = \frac{49}{16}
  • Step 6: Write LHS as a perfect square
    (x+54)2=4916\left(x + \frac{5}{4}\right)^2 = \frac{49}{16}
  • Step 7: Take square roots and solve
    x+54=±4916=±74x + \frac{5}{4} = \pm \sqrt{\frac{49}{16}} = \pm \frac{7}{4}
    x1=−54+74=24=12x2=−54−74=−124=−3\begin{aligned} x_1 &= -\frac{5}{4} + \frac{7}{4} = \frac{2}{4} = \frac{1}{2} \\ x_2 &= -\frac{5}{4} - \frac{7}{4} = -\frac{12}{4} = -3 \end{aligned}
  • Final Answer:
    x1=12,x2=−3x_1 = \frac{1}{2}, \quad x_2 = -3

Example 4: Equation with No Real Solutions

Problem: Solve x2+4x+9=0x^2 + 4x + 9 = 0 on paper.

  • Step 1: Move 99 to RHS
    x2+4x=−9x^2 + 4x = -9
  • Step 2: Add (42)2=22=4\left(\frac{4}{2}\right)^2 = 2^2 = 4 to both sides
    x2+4x+4=−9+4(x+2)2=−5\begin{aligned} x^2 + 4x + 4 &= -9 + 4 \\ (x + 2)^2 &= -5 \end{aligned}
  • Step 3: Analyze the paper result The square of any real number (x+2)2(x + 2)^2 cannot be negative:
    (x+2)2≥0for all x∈R(x + 2)^2 \ge 0 \quad \text{for all } x \in \mathbb{R}
    Since −5<0-5 < 0, there is no real number whose square is −5-5.
  • Final Answer:
    S=∅(No real roots)S = \emptyset \quad \text{(No real roots)}

4. Common Mistakes & Paper Traps

Trap 1: Forgetting to Add to BOTH Sides

Students often write:

x2+6x+9=7[FATAL MISTAKE!]x^2 + 6x + 9 = 7 \quad \text{\textbf{[FATAL MISTAKE!]}}

Adding 99 to only one side destroys equality! An equation is a balanced balance scale. If you add 99 to the left, you must add 99 to the right:

(x+3)2=7+9=16(x + 3)^2 = 7 + 9 = 16

Trap 2: Omitting the Plus-or-Minus Sign (±\pm)

When taking the square root of (x−4)2=25(x - 4)^2 = 25, writing only x−4=5x - 4 = 5 discards the negative root:

x−4=−5  ⟹  x=−1x - 4 = -5 \implies x = -1

Always write ±…\pm \sqrt{\dots} in the very line you introduce the square root.

Trap 3: Not Dividing by aa First

Attempting to complete the square on 3x2+6x=123x^2 + 6x = 12 by adding (62)2=9\left(\frac{6}{2}\right)^2 = 9 directly fails completely, because:

3x2+6x+9≠(3x+3)2[since (3x+3)2=9x2+18x+9]3x^2 + 6x + 9 \neq (3x + 3)^2 \quad \left[\text{since } (3x+3)^2 = 9x^2 + 18x + 9\right]

You must factor out or divide by 33 first:

x2+2x=4  ⟹  x2+2x+1=4+1=5  ⟹  (x+1)2=5x^2 + 2x = 4 \implies x^2 + 2x + 1 = 4 + 1 = 5 \implies (x + 1)^2 = 5

5. Pencil & Paper Practice

Solve these problems on paper, then compare your steps with the full solutions below.

  1. Practice 1: Solve x2−10x+21=0x^2 - 10x + 21 = 0 by completing the square.
  2. Practice 2: Solve x2+6x+1=0x^2 + 6x + 1 = 0. Leave the answer in radical form.
  3. Practice 3: Solve 3x2−12x+9=03x^2 - 12x + 9 = 0 by first dividing by 33.

Worked Solution to Practice 1

x2−10x=−21Half of −10 is −5;(−5)2=25x2−10x+25=−21+25(x−5)2=4x−5=±2x=5±2  ⟹  x1=7,x2=3\begin{aligned} x^2 - 10x &= -21 \\ \text{Half of } -10 \text{ is } -5; \quad (-5)^2 &= 25 \\ x^2 - 10x + 25 &= -21 + 25 \\ (x - 5)^2 &= 4 \\ x - 5 &= \pm 2 \\ x &= 5 \pm 2 \implies x_1 = 7, \quad x_2 = 3 \end{aligned}

Answer: S={3,7}S = \{3, 7\}.


Worked Solution to Practice 2

x2+6x=−1Half of 6 is 3;32=9x2+6x+9=−1+9(x+3)2=8x+3=±8=±22x=−3±22\begin{aligned} x^2 + 6x &= -1 \\ \text{Half of } 6 \text{ is } 3; \quad 3^2 &= 9 \\ x^2 + 6x + 9 &= -1 + 9 \\ (x + 3)^2 &= 8 \\ x + 3 &= \pm \sqrt{8} = \pm 2\sqrt{2} \\ x &= -3 \pm 2\sqrt{2} \end{aligned}

Answer: x=−3±22x = -3 \pm 2\sqrt{2}.


Worked Solution to Practice 3

3x2−12x+9=0x2−4x+3=0(÷3)x2−4x=−3x2−4x+4=−3+4(x−2)2=1x−2=±1  ⟹  x=2±1\begin{aligned} 3x^2 - 12x + 9 &= 0 \\ x^2 - 4x + 3 &= 0 \quad (\div 3) \\ x^2 - 4x &= -3 \\ x^2 - 4x + 4 &= -3 + 4 \\ (x - 2)^2 &= 1 \\ x - 2 &= \pm 1 \implies x = 2 \pm 1 \end{aligned}

Answer: x1=3,x2=1x_1 = 3, \quad x_2 = 1.


6. Summary

  • Completing the square turns any expression x2+bxx^2 + bx into a square binomial by adding (b2)2\left(\frac{b}{2}\right)^2.
  • Always ensure the coefficient of x2x^2 is 11 before finding b2\frac{b}{2}.
  • Whatever number you add to the left side to complete the square, you must simultaneously add to the right side.
  • If (x−d)2=M(x - d)^2 = M:
    • If M>0M > 0, there are two real solutions: x=d±Mx = d \pm \sqrt{M}.
    • If M=0M = 0, there is one repeated solution: x=dx = d.
    • If M<0M < 0, there are no real solutions.

Test yourself

What number must be added to x2−14xx^2 - 14x to complete the square on paper?

  1. −7-7
  2. 1414
  3. 4949
  4. −49-49

What is the correct next step when solving 2x2+12x=102x^2 + 12x = 10 by completing the square?

  1. Add (12/2)2=36(12/2)^2 = 36 to both sides.
  2. Divide every term by 22 to obtain x2+6x=5x^2 + 6x = 5.
  3. Subtract 1010 from both sides and set equal to zero.
  4. Take the square root of both sides immediately.

When completing the square for x2+6x+13=0x^2 + 6x + 13 = 0, you reach (x+3)2=−4(x + 3)^2 = -4. What does this tell you about the roots?

  1. The roots are x=3±2x = 3 \pm 2.
  2. There is a single root x=−3x = -3.
  3. There are no real roots because the square of a real number cannot be negative.
  4. The roots are x=−1x = -1 and x=−5x = -5.