Completing the square

In elementary algebra, completing the square is a technique for converting a quadratic polynomial of the form

Animation depicting the process of completing the square. (Details, animated GIF version)

to the form

for some values of h and k.

Completing the square is used in

In mathematics, completing the square is often applied in any computation involving quadratic polynomials.