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 ,
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 ,
then compare this with the first equation. It's easy to see that the terms multiplying correspond to one another,
Therefore, making substitutions into the prototype
The point is that adding and subtracting the term enables you to write
as an expression containing a perfect square:
where 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:
- Divide the equation by the quadratic coefficient.
- Add and subtract the square of half of the linear coefficient.
- The expression now contains a perfect square which can be written as such.
Example: The quadratic formula