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

,
![\displaystyle \alpha\left[x^2 + \frac{\beta}{\alpha}x + \frac{\gamma}{\alpha}\right]](http://www.idius.net/wp-content/plugins/latex/cache/tex_a2ba1c7d1cd282a6b5efffadcc28cf96.gif)
then compare this with the first equation. It's easy to see that the terms multiplying

correspond to one another,

so

Therefore, making substitutions into the prototype

yields

The point is that adding and subtracting the term

enables you to write

as an expression containing a perfect square:
![\displaystyle \alpha\left[\left( x + \frac{\beta}{2\alpha} \right)^2 + \frac{\gamma}{\alpha} - \left( \frac{\beta}{2\alpha} \right)^2\right]](http://www.idius.net/wp-content/plugins/latex/cache/tex_9b234db638e65cd3fd727c0eab8a28b7.gif)
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.
Summary procedure in symbols:
Given

1.

2.
![\displaystyle \frac{y}{\alpha} = x^2 + \frac{\beta}{\alpha}x + \left[\left( \frac{\beta}{2\alpha} \right)^2 -\left( \frac{\beta}{2\alpha} \right)^2\right] +\frac{\gamma}{\alpha}](http://www.idius.net/wp-content/plugins/latex/cache/tex_2ecf51285bf8129478e15d441270edd9.gif)
3.
![\displaystyle \frac{y}{\alpha} = \left[x^2 + \frac{\beta}{\alpha}x + \left( \frac{\beta}{2\alpha} \right)^2\right] -\left( \frac{\beta}{2\alpha} \right)^2 +\frac{\gamma}{\alpha}](http://www.idius.net/wp-content/plugins/latex/cache/tex_5fbce4e89a1945804a20b085245667c6.gif)

![\displaystyle y = \alpha\left[\left( x + \frac{\beta}{2\alpha} \right)^2 -\left( \frac{\beta}{2\alpha} \right)^2\right] +\gamma](http://www.idius.net/wp-content/plugins/latex/cache/tex_010d77cd2aa86f38415b5e63b0252a8e.gif)
Example: The quadratic formula