Solution by jasperE3.
f(xf(x)+f(xy))=xf(x)+f(x)f(y).
Suppose f(k)=0 for some k=0.
P(k,kx)⇒f(f(x))=0, in particular f(f(1))=0 and f(0)=f(f(f(1)))=0.
P(x,0)⇒f(xf(x))=xf(x).
In f(f(x))=0, substituting x↦xf(x) to get xf(x)=0, and combined with the fact that f(0)=0 we have f(x)=0 which is indeed a solution.
Otherwise, assume f(x)=0 for all x=0.
P(−f(0),0)⇒f(−f(0)f(−f(0))+f(0))=0.
P(−f(0)f(−f(0))+f(0),1)⇒f(0)=0.
P(−1,1)⇒f(−1)(1−f(1))=0, and since f(−1)=0 we have f(1)=1.
Claim: f(f(x))=x.
Easy to show it for x=0, now we show it for x=0.
P(x,0)⇒f(xf(x))=xf(x).
P(−1,0)⇒f(−f(−1))=−f(−1).
P(1,−f(−1))⇒f(1−f(−1))=1−f(−1).
P(−1,−1)⇒f(1−f(−1))=f(−1)2−f(−1).
Comparing the last two, f(−1)=±1.
If f(−1)=−1:
P(1,x)⇒f(1+f(x))=1+f(x).
P(−1,−x)⇒f(1+f(x))=1−f(−x), so f is odd.
Now we use f(−xf(x))=−f(xf(x))=−xf(x):
P(−f(x),x)⇒f(f(x)f(f(x))−xf(x))=0⇒f(x)f(f(x))−xf(x)=0, so for all x=0 we have f(x)=0 and so f(f(x))=x as desired.
If f(−1)=1:
P(x,x1)⇒f(xf(x)+1)=xf(x)+f(x)f(x1).
P(x,−x1)⇒f(xf(x)+1)=xf(x)+f(x)f(−x1), so f(x1)=f(−x1) for all x=0, so f is even.
Now we use f(−xf(x))=f(xf(x))=xf(x):
P(−f(x),x)⇒f(−f(x)f(f(x))+xf(x))=0⇒−f(x)f(f(x))+xf(x)=0, so for all x=0 we have f(x)=0 and so f(f(x))=x as desired.
Finally:
P(1,f(x−1))⇒f(x)=x.