\(...P=x^2-8x+16+x^2+2xy+y^2+2y^2-2y+2\)
\(P=\left(x-4\right)^2+\left(x+y\right)^2+2\left(y^2-y+1\right)\left(1\right)\)
Xét \(y^2-y+1=y^2-y+\dfrac{1}{4}-\dfrac{1}{4}+1=\left(y-\dfrac{1}{2}\right)^2+\dfrac{3}{4}\ge\dfrac{3}{4}\left(\left(y-\dfrac{1}{2}\right)^2\ge0\right)\)
\(\Rightarrow2\left(y^2-y+1\right)\ge2.\dfrac{3}{4}=\dfrac{3}{2}\)
mà \(\left(x-4\right)^2\ge0;\left(x+y\right)^2\ge0\)
\(\left(1\right)\Rightarrow P\ge\dfrac{3}{2}\Rightarrow Min\left(P\right)=\dfrac{3}{2}\)