If we consider the rule
and move a2 over to the left-hand side, we obtain the formula
With the help of this formula, we can rewrite (complete the square of) a mixed expression x2−2ax to a obtain a quadratic expression, (x−a)2−a2.
The expression x2−2x corresponds to a=1 in the formula above and thus