Solution by Anonymous.
The answer is f≡0 and f≡id, which both work. Let P(x,y) denote the FE.
P(−1,−1) gives f(f(1)−1)=f(−1)−f(−1)=0. Let c=f(1)−1, and first suppose that c=0. Then P(x,c/x) gives xf(c/x)=0, so f(x)=0 for x=0. From P(0,0), we have f(f(0))=f(0), so f(0)=0 in this case and f≡0. Hence suppose that c=0, so f(1)=1 and f(0)=0.
P(1,y) gives f(f(y)+1)=f(y)+1. This implies f(2)=2. Then P(2,y/2) gives that f(f(y)+2)=2f(y/2)+2. However f(f(y)+2)=f(f(f(y)+1)+1)=f(f(y)+1)+1=f(y)+2, so f(y)=2f(y/2) for all y. A corollary is that f(21)=21.
By P(f(x),1/f(x)), we see that f(f(x)+1)=f(f(x))+f(x)f(1/f(x)). The LHS is f(x)+1,
so f(f(x))−f(x)=1−f(x)f(1/f(x)). Plugging in x/2 into this equation and simplifying, we get that 21⋅(f(f(x))−f(x))=1−f(x)f(1/f(x)), so f(f(x))=f(x) for all x.
Now we can finish. From P(x,2), we have that f(x+f(2x))=f(x)+2x, and from P(2x,1/2), we have f(2x+f(x))=f(2x)+x. Hence x+f(2x)=f(f(x+f(2x)))=f(x+f(2x))=f(x)+2x, since f(2x)=2f(x) we get that f(x)=x, as desired.