\(A=\left(x^2-2xy+y^2\right)+\left(x^2-2x+1\right)+4\\ A=\left(x-y\right)^2+\left(x-1\right)^2+4\ge4\\ A_{min}=4\Leftrightarrow\left\{{}\begin{matrix}x-y=0\\x-1=0\end{matrix}\right.\Leftrightarrow\left\{{}\begin{matrix}x=y\\x=1\end{matrix}\right.\Leftrightarrow x=y=1\)