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