$$x(x-p)+y(y-p)+z(z-p)$$
$x^{2}-px+y^{2}-py+z^{2}-pz$
$x\left(x-p\right)+y\left(y-p\right)+z\left(z-p\right)$