Fiveable

🔟Elementary Algebra Unit 10 Review

QR code for Elementary Algebra practice questions

10.2 Solve Quadratic Equations by Completing the Square

10.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
🔟Elementary Algebra
Unit & Topic Study Guides

Completing the square is a technique for solving quadratic equations that works every time, even when factoring doesn't. It transforms an expression like x2+bxx^2 + bx into a perfect square trinomial, which you can then factor neatly and solve with square roots.

This method is worth learning well because it's the foundation for deriving the quadratic formula, and it also helps you find the vertex of a parabola directly from the equation.

Completing the Square

Binomial to Perfect Square Trinomial

The core idea is to take a binomial like x2+bxx^2 + bx and figure out what constant to add so it becomes a perfect square trinomial you can factor.

Here's the rule: take half the coefficient of xx, then square it. That gives you the number to add.

  • Half the coefficient of xx is b2\frac{b}{2}
  • Square it to get (b2)2\left(\frac{b}{2}\right)^2
  • The result: 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.

Example: For x210xx^2 - 10x, half of 10-10 is 5-5, and (5)2=25(-5)^2 = 25. So x210x+25=(x5)2x^2 - 10x + 25 = (x - 5)^2.

Notice that the sign inside the parentheses matches the sign of b2\frac{b}{2}.

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

Completing the Square with Coefficient 1

When the coefficient of x2x^2 is already 1, you can solve x2+bx+c=0x^2 + bx + c = 0 with these steps:

  1. Move the constant to the other side. Subtract cc from both sides to get 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 into (x+b2)2\left(x + \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. Solve for xx by subtracting b2\frac{b}{2} from both sides.

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

  1. Move the constant: 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. Factor: (x+3)2=4(x + 3)^2 = 4
  4. Square root: x+3=±2x + 3 = \pm 2
  5. Solve: x=3+2=1x = -3 + 2 = -1 or x=32=5x = -3 - 2 = -5

A common mistake is adding (b2)2\left(\frac{b}{2}\right)^2 to the left side but forgetting to add it to the right side too. Whatever you do to one side, you must do to the other.

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

Completing the Square for Any Coefficient

When the leading coefficient aa isn't 1, you need one extra step at the start: divide everything by aa.

  1. Divide every term by aa so the equation becomes x2+bax+ca=0x^2 + \frac{b}{a}x + \frac{c}{a} = 0.
  2. Move the constant to the other side: x2+bax=cax^2 + \frac{b}{a}x = -\frac{c}{a}
  3. Complete the square. Half of ba\frac{b}{a} is b2a\frac{b}{2a}. Square it to get (b2a)2\left(\frac{b}{2a}\right)^2. Add this to both sides.
  4. Factor the left side into (x+b2a)2\left(x + \frac{b}{2a}\right)^2.
  5. Take the square root of both sides (with ±\pm).
  6. Solve for xx.

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

  1. Divide by 2: x2+6x+5=0x^2 + 6x + 5 = 0
  2. Move the constant: x2+6x=5x^2 + 6x = -5
  3. Half of 6 is 3, and 32=93^2 = 9. Add 9 to both sides: (x+3)2=4(x + 3)^2 = 4
  4. Square root: x+3=±2x + 3 = \pm 2
  5. Solve: x=1x = -1 or x=5x = -5

The key thing to remember: you must make the leading coefficient 1 before you complete the square. If you skip this step, the method won't work.

Quadratic Equation Properties

Completing the square connects directly to the graph of a quadratic equation, which is a parabola.

  • The vertex is the highest or lowest point on the parabola. When you write the equation in the form (x+b2)2=k(x + \frac{b}{2})^2 = k, the vertex is easy to read off.
  • The axis of symmetry is a vertical line that passes through the vertex. The parabola is a mirror image on either side of this line.
  • The discriminant b24acb^2 - 4ac tells you how many real solutions the equation has:
    • Positive: two distinct real roots (the parabola crosses the x-axis twice)
    • Zero: one repeated real root (the parabola just touches the x-axis at its vertex)
    • Negative: no real roots (the parabola never crosses the x-axis)