Find all solutions to $$xy=x+y$$ Initially the given condition was $x,y\in \Bbb{Z}$.
$$$$In this case, I just guessed that the solutions were $(0,0)$ and $(2,2)$. As far as I can see, these are the only 2 integral solutions possible. However, i'm quite surprised as usually a Diophantine Equation has infinite solutions. Could somebody please show me how to actually $solve$ this equation instead of just guessing the values? Is there any way to $show$ that there are just 2 sets of solutions?
$$$$Secondly, what if $x,y\in \Bbb{R}$? In that case how could the equation be solved? $$$$For both these conditions on the values of $x,y$, is there any way to use Coordinate Geometry to achieve an answer? $$$$ Many thanks in anticipation!
Edit: I forgot to mention that I know the solution using factoring. I was hoping to find a solution using Coordinate Geometry. I was told by a friend that the non integral solutions lie on 2 unique lines, and am hence particularly interested in a geometrical solution.
Of course the simplest solution is to write the equation as $(x-1)(y-1)=1$.
The curve $xy-x-y=0$ is a hyperbola with asymptotes $x=1$ and $y=1$.
Its graph is so contained in the union of the strips
$$ (-\infty,0]\times[0,1), \qquad [0,1)\times(-\infty,0], \qquad (1,2]\times[2,\infty), \qquad [2,\infty)\times(1,2] $$
The only points with both integer coordinates are $(0,0)$ and $(2,2)$.
More analytically, consider the curve written as $$ y=1+\frac{1}{x-1}=\frac{-x}{1-x} $$ If $x>2$, then $x-1>1$, so $1<y<2$, so $y$ is not integer. If $x<0$, then $0<y<1$, so $y$ is not integer. For $0<x<1$ and $1<x<2$, $x$ is not integer.
Thus only $x=0$ or $x=2$ remain.