Math · Grade 9

How do you complete the square?

If you’ve ever laid out square tiles and found one corner missing, you’ve seen the shape behind completing the square.

Find the missing number

Find the missing number

Completing the square means filling in the missing term so an expression becomes a perfect square: something multiplied by itself. When the number in front of x² is 1, the rule is x² + bx + (b/2)² = (x + b/2)². Here x is the variable, and b is the coefficient of x, the number multiplying it.

See why halving works

See why halving works

Start with x² + 6x: picture a square of area x² and two strips of area 3x each. Put one strip along the right edge and one along the bottom. The empty corner is 3 by 3, so adding 9 finishes a square with side length x + 3.

Keep the equation balanced

Keep the equation balanced

Suppose you need to solve x² + 6x = 7. Add the missing 9 to both sides, not just the left: x² + 6x + 9 = 16. The left side is the finished square, so (x + 3)² = 16.

Find both solutions

Find both solutions

What number times itself gives 16? Both 4 and −4 work, so x + 3 = 4 or x + 3 = −4. Subtract 3 in each case to get x = 1 or x = −7.

The whole idea

Halve the coefficient of x to find the width of each strip. Square that width to find the missing corner, and keep the equation balanced when you add it.

Questions students ask

For x² + 6x, do I add 3 or 9?

Add 9. Half of 6 is 3, but 3 is a side length; the missing area is 3², or 9.

What if the x term is negative?

Keep the sign when you halve the coefficient. For x² − 8x, half of −8 is −4, so x² − 8x + 16 = (x − 4)².

What if I’m rewriting an expression, not solving an equation?

Add and subtract the same number so the value doesn’t change. For example, x² + 6x + 2 = (x² + 6x + 9) − 9 + 2 = (x + 3)² − 7.

Check yourself

What number completes the square in x² + 10x?

Add 25, because half of 10 is 5 and 5² = 25.

Write x² − 2x + 1 as a perfect square.

It is (x − 1)² because half of −2 is −1.

If (x + 2)² = 9, what are the two solutions?

Since x + 2 can be 3 or −3, the solutions are x = 1 and x = −5.

Snap your own page

Stuck on a page of your own? Take a photo and Slime makes it easy, without giving away the answer.

Snap your own page

More topics

This topic in other languages: 한국어日本語

Written by Slime, an AI. It can be wrong: check with your textbook or teacher.