Tutorial: Complete the Square

“Completing the Square” is an algebra skill that you will need to use when you’re playing with quadratics, circles, and (other) conic sections. Once you get the hang of it it’s no big deal, but it can be a bit mystifying until then. Let’s clear it up, and then for a bonus, I’ll show you were the quadratic formula comes from.

First, things we know about squares:

  • Geometrically:
    • Both sides are the same length
    • The area is equal to side length times side length
  • Algebraically:
    • A perfect square is a number equal to an integer multiplied by itself.
    • If an expression is squared, it looks like: (...)^2.

Next, make sure you’re familiar with the box method of multiplying polynomials; it will come in handy shortly!

Completing the Square is Solving a Puzzle

Let’s say we have the expression x^2+6x and we’re asked to complete the square. Really, you’re being asked to write an equivalent expression that has (x+?)^2 in it.

Start by setting up a square with the box method. We know that the area of the square will represent the product of the side lengths, and the side lengths must be the same (because it’s a square). Using what we know about the box method, we can put the x^2 term in the top left corner. The terms with x need to be in the top right and bottom left corners, and they need to add to 6x. Because we’re dealing with a square, we want it to be balanced, so we’ll put 3x in each of those corners. The total area we’ve filled in is equal to our original expression, x^2+6x. However, the square is not “complete” because there isn’t anything in the lower right corner. Working backwards from the box method, you can figure out that the side lengths must both be (x+3). Once you fill that in, you can see that you can complete the square by putting 9 into that lower right corner. Adding 9 “completes the square.”

This means that you’ve turned x^2+6x into x^2+6x+9. The square is complete, but you’ve changed the value of the expression by adding 9. To fix it, also subtract 9: x^2+6x=x^2+6x+9-9. Our sleuthing with the box method told us that x^2+6x+9 is equivalent to (x+3)^2, so you can substitute that in.

In the end, x^2+6x = x^2+6x+9-9 = (x+3)^2-9. You’ve completed the square and made sure that the value of the original expression is intact.

Can you complete the square for the expression x^2+8x?

What about x^2-2x? And x^2+5x?

Here’s a video walking you through completing the square for x^2+6x, x^2+8x, x^2-2x, and x^2+5x.


What does the Quadratic Formula have to do with completing the square?

Begin with a generic quadratic equation: 0 = ax^2+bx+c

Divide everything by a: 0 = x^2+\dfrac{b}{a}x+\dfrac{c}{a}

Complete the square: 0 = (x+\dfrac{b}{2a})^2+\dfrac{c}{a} -\dfrac{b^2}{4a^2}

Start solving for x: \dfrac{b^2}{4z^2}-\dfrac{c}{a} = (x-\dfrac{b}{2a})^2

Simplify left side: \dfrac{b^2-4ac}{4a^2} = (x-\dfrac{b}{2a})^2

Take square root of both sides: \pm\sqrt{\dfrac{b^2-4ac}{4a^2}} = x-\dfrac{b}{2a}

Simplify left denominator: \dfrac{\pm\sqrt{b^2-4ac}}{2a} = x-\dfrac{b}{2a}

Solve for x: \dfrac{b}{2a}+\dfrac{\pm\sqrt{b^2-4ac}}{2a} = x

Simplify: x = \dfrac{-b\pm\sqrt{b^2-4ac}}{2a}  Hey! I know that formula!

Comments 2

  • I love seeing different ways to do a Math problem. Your explanation has given me a whole new meaning to ‘completing the square’ – thank you.

    • I’m so glad you like it! When I learned completing the square it was simply an algebraic algorithm (divide b in half, square it, etc). The visual method helps the algebraic algorithm make so much more intuitive sense for me.

Leave a Reply

Your email address will not be published.