Fiveable

📘Intermediate Algebra Unit 9 Review

QR code for Intermediate Algebra practice questions

9.2 Solve Quadratic Equations by Completing the Square

9.2 Solve Quadratic Equations by Completing the Square

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
📘Intermediate Algebra
Unit & Topic Study Guides

Completing the Square

Completing the square transforms a quadratic equation into a form you can solve by taking a square root. It works on any quadratic equation, even ones that don't factor neatly. The technique also converts quadratics into vertex form, which you'll need for graphing parabolas.

Binomial to Perfect Square Trinomial

The core idea behind completing the square is turning a binomial like x2+bxx^2 + bx into a perfect square trinomial, which is an expression that factors as a single binomial squared.

Here's how: take half the coefficient of xx, then square it. Add that value to the expression.

  • Start with x2+bxx^2 + bx
  • Compute (b2)2\left(\frac{b}{2}\right)^2
  • Add it: x2+bx+(b2)2=(x+b2)2x^2 + bx + \left(\frac{b}{2}\right)^2 = \left(x + \frac{b}{2}\right)^2

Example: For x2+6xx^2 + 6x, half of 6 is 3, and 32=93^2 = 9. So x2+6x+9=(x+3)2x^2 + 6x + 9 = (x + 3)^2.

This works because (x+3)2=x2+6x+9(x + 3)^2 = x^2 + 6x + 9 when you expand it. You're just reverse-engineering that pattern.

Binomial to perfect square trinomial, OpenAlgebra.com: Free Algebra Study Guide & Video Tutorials: Completing the Square

Completing the Square with Leading Coefficient 1

When the equation has the form x2+bx+c=0x^2 + bx + c = 0 (leading coefficient already 1), follow these steps:

  1. Move the constant to the right side. Subtract cc from both sides: x2+bx=cx^2 + bx = -c

  2. Complete the square. Calculate (b2)2\left(\frac{b}{2}\right)^2 and add it to both sides: x2+bx+(b2)2=c+(b2)2x^2 + bx + \left(\frac{b}{2}\right)^2 = -c + \left(\frac{b}{2}\right)^2

  3. Factor the left side as a perfect square: (x+b2)2=c+(b2)2\left(x + \frac{b}{2}\right)^2 = -c + \left(\frac{b}{2}\right)^2

  4. Take the square root of both sides (don't forget the ±\pm): x+b2=±c+(b2)2x + \frac{b}{2} = \pm\sqrt{-c + \left(\frac{b}{2}\right)^2}

  5. Isolate xx by subtracting b2\frac{b}{2}: x=b2±c+(b2)2x = -\frac{b}{2} \pm \sqrt{-c + \left(\frac{b}{2}\right)^2}

Example: Solve x2+6x+5=0x^2 + 6x + 5 = 0

  1. x2+6x=5x^2 + 6x = -5
  2. Half of 6 is 3, and 32=93^2 = 9. Add 9 to both sides: x2+6x+9=5+9x^2 + 6x + 9 = -5 + 9
  3. (x+3)2=4(x + 3)^2 = 4
  4. x+3=±2x + 3 = \pm 2
  5. x=3+2=1x = -3 + 2 = -1 or x=32=5x = -3 - 2 = -5
Binomial to perfect square trinomial, OpenAlgebra.com: Free Algebra Study Guide & Video Tutorials: Completing the Square

Completing the Square for Any Leading Coefficient

When a1a \neq 1 in ax2+bx+c=0ax^2 + bx + c = 0, you need one extra step at the start: divide everything by aa.

  1. Divide both sides by aa to make the leading coefficient 1: x2+bax+ca=0x^2 + \frac{b}{a}x + \frac{c}{a} = 0

  2. Move the constant to the right side: x2+bax=cax^2 + \frac{b}{a}x = -\frac{c}{a}

  3. Complete the square. Calculate (b2a)2\left(\frac{b}{2a}\right)^2 and add it to both sides: x2+bax+(b2a)2=ca+(b2a)2x^2 + \frac{b}{a}x + \left(\frac{b}{2a}\right)^2 = -\frac{c}{a} + \left(\frac{b}{2a}\right)^2

  4. Factor the left side: (x+b2a)2=ca+(b2a)2\left(x + \frac{b}{2a}\right)^2 = -\frac{c}{a} + \left(\frac{b}{2a}\right)^2

  5. Take the square root of both sides: x+b2a=±ca+(b2a)2x + \frac{b}{2a} = \pm\sqrt{-\frac{c}{a} + \left(\frac{b}{2a}\right)^2}

  6. Isolate xx: x=b2a±ca+(b2a)2x = -\frac{b}{2a} \pm \sqrt{-\frac{c}{a} + \left(\frac{b}{2a}\right)^2}

Example: Solve 2x2+12x+7=02x^2 + 12x + 7 = 0

  1. Divide by 2: x2+6x+72=0x^2 + 6x + \frac{7}{2} = 0
  2. x2+6x=72x^2 + 6x = -\frac{7}{2}
  3. Half of 6 is 3, and 32=93^2 = 9. Add 9 to both sides: x2+6x+9=72+9=112x^2 + 6x + 9 = -\frac{7}{2} + 9 = \frac{11}{2}
  4. (x+3)2=112(x + 3)^2 = \frac{11}{2}
  5. x+3=±112=±222x + 3 = \pm\sqrt{\frac{11}{2}} = \pm\frac{\sqrt{22}}{2}
  6. x=3±222x = -3 \pm \frac{\sqrt{22}}{2}

A common mistake here: students divide only some terms by aa instead of every term. Make sure you divide the entire equation.

Other Methods for Solving Quadratic Equations

Completing the square always works, but it's not always the fastest route. Here's how it compares to the other methods:

  • Factoring: Quickest when the quadratic factors cleanly over integers (like x2+6x+5=(x+5)(x+1)x^2 + 6x + 5 = (x+5)(x+1)). Not every quadratic factors neatly, though.
  • Quadratic formula: Works on any quadratic, just like completing the square. The formula x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} is actually derived from completing the square on the general equation ax2+bx+c=0ax^2 + bx + c = 0.
  • Discriminant: The expression b24acb^2 - 4ac (the part under the square root in the quadratic formula) tells you what kind of solutions to expect before you solve:
    • b24ac>0b^2 - 4ac > 0: two distinct real solutions
    • b24ac=0b^2 - 4ac = 0: one repeated real solution
    • b24ac<0b^2 - 4ac < 0: two complex (non-real) solutions