See the lessons - PROOF of quadratic formula by completing the square - Introduction into Quadratic Equations in this site.