Find all integral pairs (x,y) such that - $$( xy - 1)^2 = (x +1)^2 + ( y+1)^2$$
My Approach :
I just expanded this equation and wrote it in another form - $$\frac{(xy+1)(xy-1)}{(x+y)}-2=x+y$$ and from this we can say that $(x+y)|(xy+1) \ \mathrm{or}\ (x+y)|(xy-1) $ . But i don't know how to solve it further. Please help me with this.