\(a,\hept{\begin{cases}x^2+y^2+x+y=4\\x\left(x+y+1\right)+y\left(y+1\right)=2\end{cases}}\)
\(\Leftrightarrow\hept{\begin{cases}x^2+y^2+x+y=4\\x^2+xy+x+y^2+y=2\end{cases}}\)
\(\Leftrightarrow\hept{\begin{cases}x^2+y^2+x+y=4\\x^2+y^2+x+y+xy=2\end{cases}}\)
\(\Leftrightarrow\hept{\begin{cases}x^2+y^2+x+y=4\\xy=-2\end{cases}}\)(Trừ 2 pt cho nhau)
\(\Leftrightarrow\hept{\begin{cases}\left(x+y\right)^2+x+y-2xy=4\\xy=-2\end{cases}}\)
\(\Leftrightarrow\hept{\begin{cases}\left(x+y\right)^2+x+y+4=4\\xy=-2\end{cases}}\)
\(\Leftrightarrow\hept{\begin{cases}\left(x+y\right)\left(x+y+1\right)=0\\xy=-2\end{cases}}\)
\(\Leftrightarrow\hept{\begin{cases}x+y=0\\xy=-2\end{cases}\left(h\right)\hept{\begin{cases}x+y+1=0\\xy=-2\end{cases}}}\)