\(A=x^2+2x\left(y+1\right)+\left(y+1\right)^2-\left(y+1\right)^2+2y^2-4y+2028\)
\(=\left(x+y+1\right)^2-y^2-2x-1+2y^2-4y+2028\)
\(=\left(x+y+1\right)^2-6x+y^2+2027\)
\(=\left(x+y+1\right)+\left(y-3\right)^2+2018\ge2018\forall x;y\) (do...)
=> MinA = 2018 \(\Leftrightarrow\left\{{}\begin{matrix}x+y=-1\\y=3\end{matrix}\right.\) \(\Leftrightarrow\left\{{}\begin{matrix}x=-4\\y=3\end{matrix}\right.\)