Question

$$x(x-p)+y(y-p)+z(z-p)$$

Expand

$x^{2}-px+y^{2}-py+z^{2}-pz$

Evaluate

$x\left(x-p\right)+y\left(y-p\right)+z\left(z-p\right)$