Solution by jasperE3.
f(xf(x)+xf(y))=xf(x)+yf(x).
f(x)=0 is a solution, otherwise there is some j with f(j)=0.
P(j,x)⇒f(jf(j)+jf(x))=jf(j)+xf(j)⇒f is bijective.
If f(k)=0 for some k=0:
P(k,x)⇒f(kf(x))=0⇒f(kx)=0⇒f(x)=0 for all x which isn’t surjective.
So if f(k)=0 then k=0.
P(x,−x)⇒f(xf(x)+xf(−x))=0⇒xf(x)+xf(−x)=0, and since k exists we also have f(0)=0 so f is odd.
P(1,0)⇒f(f(1))=f(1)⇒f(1)=1.
P(1,x)⇒f(1+f(x))=1+x⇒f(x+2)=f(x)+2.
P(x,y+2)⇒f(xf(x)+xf(y)+2x)=xf(x)+yf(x)+2f(x)=f(xf(x)+xf(y))+2f(x).
If x=0, then xf(x)+xf(y) can take any value so f(y+2x)=f(y)+2f(x) but this is also true for x=0. So (y=0) we have f(2x)=2f(x), so f is additive.
P(x,0)⇒f(xf(x))=xf(x).
From additivity:
xf(x)+f(xf(y))=f(xf(x))+f(xf(y))=f(xf(x)+xf(y))=xf(x)+yf(x)
so Q(x,y):f(xf(y))=yf(x).
Q(1,x)⇒f(f(x))=x.
Q(x,f(y))⇒f(xy)=f(x)f(y), and well-known that the only additive and multiplicative function is f(x)=x.