\(B=\left(x^2+y^2+4+2xy-4x-4y\right)+\left(x^2+z^2+1+2xz-2x-2z\right)+\left(y^2-4y+4\right)+4\)
\(B=\left(x+y-2\right)^2+\left(x+z-1\right)^2+\left(y-2\right)^2+4\ge4\)
Dấu "=" xảy ra khi: \(\left\{{}\begin{matrix}x+y-2=0\\x+z-1=0\\y-2=0\end{matrix}\right.\) \(\Leftrightarrow\left\{{}\begin{matrix}x=0\\y=2\\z=1\end{matrix}\right.\)