Ta thấy:
Câu 1: \(xy-x+2y=5\)
\(\Rightarrow xy-x+2y-2=3\)
\(\Rightarrow x\left(y-1\right)+2\left(y-1\right)=3\)
\(\Rightarrow\left(x+2\right)\left(y-1\right)=3\)
Do \(x,y\in Z\) nên \(x+2,y-1\in Z\). Khi đó ta có bảng sau:
x + 2 | 3 | 1 | -1 | -3 |
y - 1 | 1 | 3 | -3 | -1 |
x | 1 | -1 | -3 | -5 |
y | 2 | 4 | -2 | 0 |
Câu 2: \(x\left(y+2\right)+y=1\)
\(\Rightarrow x\left(y+2\right)+\left(y+2\right)=3\)
\(\Rightarrow\left(x+1\right)\left(y+2\right)=3\)
Do \(x,y\in Z\) nên \(x+1,y+2\in Z\). Khi đó ta có bảng sau:
x + 1 | 3 | 1 | -1 | -3 |
y + 2 | 1 | 3 | -3 | -1 |
x | 2 | 0 | -2 | -4 |
y | -1 | 1 | -5 | -3 |
Câu 3: \(xy=x-y\)
\(\Rightarrow xy-x+y=0\)
\(\Rightarrow xy-x+y-1=-1\)
\(\Rightarrow x\left(y-1\right)+\left(y-1\right)=-1\)
\(\Rightarrow\left(x+1\right)\left(y-1\right)=-1\)
Do \(x,y\in Z\) nên \(x+1,y-1\in Z\). Khi đó ta có bảng sau:
x + 1 | 1 | -1 |
y - 1 | -1 | 1 |
x | 0 | -2 |
y | 0 | 2 |