Skill stop · How is this move done?

Learning to Complete the Square

In the Chinese book: 学会配方

Fill the corner of x²+bx to get a square; squares are never negative.

📖 Chapter 7 of 《方程与方程组》M1 Completing the Square line

Before this stop, visit:Using the Formulas (Skill)Linear Systems in Several Unknowns (Skill)

WorkbenchClick 1 → 4 in order and watch the rectangle being cut and moved, and see how big the missing corner is. Then drag . How does the missing corner change?

Loading figure…

What this move does

The puzzle above says just one thing:

is a square with a corner missing (an L-shape). The missing corner is a small square of side : half the coefficient of the linear term. Fill it in and you get a perfect square. This move is called completing the square:

  1. Look at the coefficient of the linear term and take half of it, .
  2. Add and subtract it again at the same time (or add it to both sides of an equation).
  3. Write the first three terms as and combine the constants that are left.

When is negative the picture cannot show a “negative length”, but the algebra is exactly the same: .

Predict first

is still missing a corner. How much must you add to make it a perfect square?

Choose an answer first; then you can see the result.

Work through one

The most direct use of completing the square is solving equations. The equation says: the area of the L-shape is .

Example: solve x² + 6x = 16

Step 1 / 5
Loading figure…
  1. Try any x first

    In the picture and the area is , much bigger than . Trying values one by one is too slow, so change tactics: complete the L-shape into a square.

Check : . Correct. The picture can only show the positive root; the algebra finds both.

When the leading coefficient is not 1

Take the leading coefficient out first, and complete the square inside the bracket.

Example: complete the square for 2x² − 12x + 7

Step 1 / 4
  1. Take out the 2

    Taking it out of the first two terms is enough; leave the constant outside for now.

The floor of squares

Completing the square has a second use, and it is even neater. The square of any real number is never less than 0: is a floor you cannot break through.

So if several squares add up to , there is only one way it can happen: every one of them is 0. Drag the sliders below and see whether you can make one bar “dig underground” to cancel another.

Loading figure…
Make the “Total” equal . How many ways are there?

So one equation can pin down two unknowns at once, as long as you first rewrite it as a sum of squares:

Example: if x² + y² − 6x + 4y + 13 = 0, find x + y

Step 1 / 6
Loading figure…
  1. One equation, two unknowns?

    Usually an equation like this has infinitely many solutions. But do not give up yet: group the terms together and the terms together.

When it fails

Break it

Counterexample lab: remove one condition

Conclusion: the equation “sum of squares ” has exactly one solution

: the constant is shared out exactly between the two squares. Push both bars down to the floor and the total is ; the only solution is , .

Loading figure…

Practice

Exercise 1Basic

is a perfect square. Find .

Exercise 2Basic

Solve by completing the square. (Separate the two roots with a comma.)

Exercise 3Advanced

Given , find .

Exercise 4Challenge

and can be any real numbers. Find the minimum value of .

Mistake Museum · Exhibits from this stop

Before you leave, look at the traps other people fell into here.See every exhibit in the museum →

Exhibit

Adding without subtracting

The wrong step:
What went wrong? Think first, then open

Diagnosis expands to , which has an extra compared with the original. A corner filled in out of nowhere has to be given back, or the expression changes.

The right step: . When you are done, expand the right side to check.

“Whatever you add, subtract again”

Exhibit

Forgetting the 2 outside the bracket

The wrong step:
What went wrong? Think first, then open

Diagnosis The is added inside the bracket, but the bracket is multiplied by , so in total an extra was added.

The right step: . Add and subtract inside the bracket first, then multiply the bracket out at the end.

“If the leading coefficient is not 1, take it out first and complete the square inside the bracket”

Exhibit

“One equation, two unknowns, so it cannot be solved”

The wrong step: is only one equation but has two unknowns, so and cannot be found.
What went wrong? Think first, then open

Diagnosis Usually that is true. But here the left side is a sum of two non-negative numbers: neither can be negative, so neither can make up for the other. A sum of forces both terms to be .

The right step: and , so and . One equation doing the work of two.

“If a sum of squares is 0, every square is 0”