TeX source:
\left(\dfrac{1}{2}x-z\right)^2 = \left(\dfrac{1}{2}\right)^2x^2-2\cdot \dfrac{1}{2}x\cdot z+z^2 = \dfrac{1}{4}x^2-xz+z^2