\(A=-\frac{1}{2}\left(2x^2+2y^2-2xy-4x-4y\right)\)
\(A=-\frac{1}{2}\left[\left(x-y\right)^2+\left(x-2\right)^2+\left(y-2\right)^2-8\right]\)
\(A=-\frac{1}{2}\left[\left(x-2\right)^2+\left(x-2\right)^2+\left(y-2\right)^2\right]+4\le4\)
\(A_{max}=4\) khi \(x=y=2\)