Completing the Square
"Completing the Square" is where you ...
... take a Quadratic Equation like this: 

and turn it into this: 
ax^{2} + bx + c = 0

a(x+d)^{2} + e = 0

For those of you in a hurry, I can tell you that: 



and: 



But if you have time, let me show you how to get there.
The Clue
First I would like to show you what happens when you expand (x+d)^{2}
(x+d)^{2} = (x+d)(x+d) = x(x+d) + d(x+d) = x^{2} + 2dx + d^{2}
So, if we can get the equation into the form: 

x^{2} + 2dx + d^{2}


Then we can immediately rewrite it as: 

(x+d)^{2}


Which is close to what we want, and the job would be nearly done 
Simplest Case
Let's first work on: 

Add (b/2)^{2} to both sides: 
^{} 
Now look at the "clue" above and think that 2d=b and so d=b/2
Yes, it is in the form x^{2} + 2dx + d^{2} where d=b/2, so we can rewrite it

Complete the Square: 



See? Not hard. Tricky but not hard. 
The Full One
OK, now for the full case:
And you will notice that we have got:


a(x+d)^{2} + e = 0

Where: 


, and: 


Example
Let's try a real example:

But here's an interesting thing ... the vertex (the highest or lowest point of a curve) is at (2/3, 19/3) ... and those numbers are in the equation!
Also, the equation can now be solved by hand:

Why "Complete the Square"?
Why would you want to complete the square when you can just use the Quadratic Formula to solve a Quadratic Equation?
Well, the answer is partly given above, where the new form not only shows you the vertex, but makes it easier to solve.
It is the first step in the Derivation of the Quadratic Formula
There are times when the form "ax^{2} + bx + c" may be part of a larger problem and rearranging it as "a(x+d)^{2} + e" makes the solution easier, because "x" only appears once.
For example it is hard to Integrate 1/(3x^{2}  4x  6) but 1/(3(x  4/6)^{2}  22/3) is easier.
Or "x" may itself be a function (like cos(z)) and once again rearranging it may open up a path to a better solution.
Just think of it as another tool in your mathematics toolbox.
Exercises
Try these Completing the Square Exercises
(Thanks to Patrick for the LaTeX formatting)
