Source TeX:
x^{2}+px+q=\left( x-\alpha\right) ^{2}+\beta^{2}.