Solution by jasperE3.
f(xf(y)+f(xy))=xf(y)+yf(x).
Case 1: f(1)=0
P(1,x)⇒f(2f(x))=f(x)+xf(1), so f is injective.
P(x,y),P(y,x)⇒f(xf(y)+f(xy))=xf(y)+yf(x)=f(yf(x)+f(xy)) so by injectivity xf(y)=yf(x) for all x. Setting y=1 and testing, we have the only solution in this case f(x)=x.
Case 2: f(1)=0
Suppose there is some j with f(j)=0.
P(−1,0)⇒f(0)=0.
P(x,1)⇒f(f(x))=f(x).
P(f(j)1,f(j))⇒f(f(j)1)=−f(j)1.
Plugging this into f(f(x))=f(x), we have f(−f(j)1)=−f(j)1.
P(−1,f(j)1)⇒f(−1)=−1.
P(−1,−f(j)1)⇒f(−1)=1.
Contradiction. Since no such j exists, f(x)=0 for all x which is indeed a solution.