\(x^2-x+\frac{1}{4}=x^2-\frac{1}{2}x-\frac{1}{2}x+\frac{1}{4}=x\left(x-\frac{1}{2}\right)-\frac{1}{2}\left(x-\frac{1}{2}\right)=\left(x-\frac{1}{2}\right)\left(x-\frac{1}{2}\right)=\left(x-\frac{1}{2}\right)^2\)
\(x^2-x+\frac{1}{4}=x^2-2.x.\frac{1}{2}+\frac{1}{2}^2=\left(x-\frac{1}{2}\right)^2=\left(x-\frac{1}{2}\right)\left(x-\frac{1}{2}\right)\)