\(D=2023-8x+2y+4xy-y^2-5x^2\)
\(=-\left(y^2+5x^2-4xy-2y+8x-2023\right)\)
\(=-\left(y^2-2.y.\left(2x+1\right)+\left(2x+1\right)^2-\left(2x+1\right)^2+5x^2+8x-2023\right)\)
\(=-\left[\left(y-2x-1\right)^2-4x^2-4x-1+5x^2+8x-2023\right]\)
\(=-\left[\left(y-2x-1\right)^2+x^2+4x-2024\right]\)
\(=-\left[\left(y-2x-1\right)^2+\left(x+2\right)^2\right]+2028\)
Vì \(-\left[\left(y-2x-1\right)^2+\left(x+2\right)^2\right]\le0\forall x,y\)
\(MaxD=2028\Leftrightarrow\left\{{}\begin{matrix}x=-2\\y=-3\end{matrix}\right.\)