## Completing the Square

The method of "completing the square" is sometimes useful in simplifying expressions. To see how it works, let's write out what happens when we square the expression $x + a$,

Notice the pattern on the right side: it's the square of each term plus twice the mixed product. It always works this way. You can use the pattern to force an expression to contain a perfect square. For instance

can be re-written to make use of the pattern if you factor out $\alpha$,

then compare this with the first equation. It's easy to see that the terms multiplying $x$ correspond to one another,

so

Therefore, making substitutions into the prototype

yields

The point is that adding and subtracting the term $\left(\beta/2\alpha\right)^2$ enables you to write

as an expression containing a perfect square:

where $x$ only appears once and thus it is easy to isolate. This is what is meant by "completing the square". The general procedure described above can be used in many different ways. It just requires some imagination.

Summary procedure in words:

1. Divide the equation by the quadratic coefficient.
2. Add and subtract the square of half of the linear coefficient.
3. The expression now contains a perfect square which can be written as such.

Summary procedure in symbols:

Given

1.

2.

3.