Đặt \(A=-x^2-y^2-x+y+1\)
\(=-x^2-y^2-x+y+\frac{1}{4}-\frac{1}{4}+1\)
\(=-\left(x^2+x+\frac{1}{4}\right)-\left(y^2-y+\frac{1}{4}\right)+1\)
\(=-\left(x+\frac{1}{2}\right)^2-\left(y-\frac{1}{2}\right)^2+1\le1\)
Vậy \(A_{mã}=0\Leftrightarrow\hept{\begin{cases}x=\frac{1}{2}\\y=-x\end{cases}}\)==