How Do You Complete the Square, and Why Does It Work?

Completing the square is an algebraic method used to solve quadratic equations by reshaping them into a perfect square binomial, which looks like (x+c)2=d(x + c)^2 = d. While factoring only works for 'nice' numbers, completing the square is a universal tool that works for any quadratic equation, every single time.

Think of it like taking an oddly shaped rectangular rug and sewing on a specific missing corner piece to make it a perfect square. Once your equation is written as a perfect square, solving it becomes as simple as taking the square root of both sides.

The Geometry Behind the Algebra

The name 'completing the square' actually comes from geometry. Imagine you have a square tile with an area of x2x^2. Now, add two rectangular tiles to the sides, each with a width of b/2b/2 and a length of xx. The total area you have is x2+bxx^2 + bx.

If you arrange these rectangles along two adjacent sides of your x2x^2 square, you almost have a larger square, but there is an empty space in the corner. The area of that missing corner piece is exactly (b/2)×(b/2)(b/2) \times (b/2), or (b/2)2(b/2)^2.

By adding that missing (b/2)2(b/2)^2 to your shape, you create a perfect square with a total side length of (x+b/2)(x + b/2). In algebra, this means x2+bx+(b/2)2x^2 + bx + (b/2)^2 can be perfectly factored into (x+b/2)2(x + b/2)^2.

The Step-by-Step Method

To complete the square algebraically, we force our equation to look exactly like the geometric model above.

First, make sure your equation is in the form x2+bx=cx^2 + bx = c. If there is a number attached to the x2x^2 (an aa value), divide the entire equation by that number first. You want a plain x2x^2.

Next, take the coefficient of the xx term (your bb), cut it in half, and square it. This gives you (b/2)2(b/2)^2. Add this magic number to both sides of the equation. Adding it to the left completes the square, and adding it to the right keeps the equation balanced.

Finally, rewrite the left side as the perfect square (x+b/2)2(x + b/2)^2. Now you can take the square root of both sides and solve for xx.

Where Students Slip Up

The most common mistake is forgetting the golden rule of algebra: what you do to one side, you must do to the other. Students often add (b/2)2(b/2)^2 to the left side to complete their square, but forget to add it to the constant on the right side. This completely changes the equation.

Another frequent trap is forgetting the ±\pm (plus or minus) sign when taking the square root. For example, if you have (x+3)2=16(x + 3)^2 = 16, taking the square root gives x+3=±4x + 3 = \pm 4. If you only write 44, you will miss out on the second valid solution for the quadratic equation.

Worked through

Solve 2x2+12x14=02x^2 + 12x - 14 = 0 by completing the square.

Step 1: Move the constant to the right side. 2x2+12x=142x^2 + 12x = 14

Step 2: Divide the entire equation by 2 so the x2x^2 term has a coefficient of 1. x2+6x=7x^2 + 6x = 7

Step 3: Find the magic number to complete the square. Take half of 6, and square it. (6/2)2=32=9(6/2)^2 = 3^2 = 9

Step 4: Add 9 to both sides of the equation. x2+6x+9=7+9x^2 + 6x + 9 = 7 + 9 x2+6x+9=16x^2 + 6x + 9 = 16

Step 5: Factor the left side as a perfect square. (x+3)2=16(x + 3)^2 = 16

Step 6: Take the square root of both sides. Don't forget the ±\pm! x+3=±4x + 3 = \pm 4

Step 7: Solve for xx. x=3±4x = -3 \pm 4

This gives two solutions: x=3+4=1x = -3 + 4 = 1 x=34=7x = -3 - 4 = -7

The solutions are x=1x = 1 and x=7x = -7.

Questions students ask

Ask about this topic

Where this comes from: OpenStax Algebra and Trigonometry: Quadratic Equations · Khan Academy: Solving quadratic equations by completing the square

See also