Completing the square

Demonstration