Do you remember "Completing the Square"? It is just a step from that process, usually verbalized, "The square of one-half the coefficient of the linear term". Probably, it is why the '2' is part of the linear term, so that finding half of it will be more convenient.