\[\left( \frac{1}{2} - a \right)^{2} = \frac{1}{4} - 2 \cdot \frac{1}{2}a + a^{2} =\]
\[= \frac{1}{4} - a + a^{2}.\]