a) \(xy+x+y=2\)
\(xy+x+y+1=2+1\)
\(\left(xy+x\right)+\left(y+1\right)=3\)
\(x\left(y+1\right)+\left(y+1\right)=3\)
\(\left(y+1\right)\left(x+1\right)=3\)
\(\Rightarrow\left\{{}\begin{matrix}x+1\in\left\{-3;-1;1;3\right\}\\y+1\in\left\{-1;-3;3;1\right\}\end{matrix}\right.\)
\(\Rightarrow\left\{{}\begin{matrix}x\in\left\{-4;-2;0;2\right\}\\y\in\left\{-2;-4;2;0\right\}\end{matrix}\right.\)
Vậy ta tìm được các cặp giá trị \(\left(x;y\right)\) thỏa mãn yêu cầu:
\(\left(-4;-2\right);\left(-2;-4\right);\left(0;2\right);\left(2;0\right)\)
b) \(\left(x+1\right).y+2=-5\)
\(\left(x+1\right).y=-5-2\)
\(\left(x+1\right).y=-7\)
\(\Rightarrow\left\{{}\begin{matrix}x+1\in\left\{-7;-1;1;7\right\}\\y\in\left\{1;7;-7;-1\right\}\end{matrix}\right.\)
\(\Rightarrow\left\{{}\begin{matrix}x\in\left\{-8;-2;0;6\right\}\\y\in\left\{1;7;-7;-1\right\}\end{matrix}\right.\)
Mà \(x< y\)
\(\Rightarrow\left\{{}\begin{matrix}x\in\left\{-8;-2\right\}\\y\in\left\{1;7\right\}\end{matrix}\right.\)
Vậy ta tìm được các cặp giá trị \(\left(x;y\right)\) thỏa mãn yêu cầu:
\(\left(-8;1\right);\left(-2;7\right)\)