Completing the square (PDF)