Ta có
\(A=x^2+2y^2+2xy-2x-8y+2017\)
\(=\left(x^2+2xy+y^2\right)-2\left(x+y\right)+1+\left(y^2-6y+9\right)+2007\)
\(=\left(x+y\right)^2-2\left(x+y\right)+1+\left(y-3\right)^2+2007\)
\(=\left(x+y-1\right)^2+\left(y-3\right)^2+2007\ge2007\)
Dấu = xảy ra khi \(\hept{\begin{cases}x=-2\\y=3\end{cases}}\)