Solution by jasperE3.
f(xf(x)+xy)=xf(x)+f(x)f(y).
P(0,x)⇒f(x)f(0)=f(0), if f(0)=0 then f(x)=1 for all x which isn’t a solution, so we need to have f(0)=0.
If f(1)=0 then P(1,x)⇒f(x)=0 for all x which is a solution, otherwise assume f(1)=0.
P(1,0)⇒f(f(1))=f(1).
P(f(1),0)⇒f(f(1)2)=f(1)2.
P(1,−f(1))⇒f(−f(1))=−1.
P(f(1),−f(1))⇒f(1)=1 since f(1)=0.
P(1,x)⇒f(x+1)=f(x)+1.
P(x,y+1)⇒f(xf(x)+xy+x)=xf(x)+f(x)f(y)+f(x)=f(xf(x)+xy)+f(x).
For x=0, xf(x)+xy can take any value, so f(x+y)=f(x)+f(y) for all x=0, but it’s also true for x=0.
P(x,0)⇒f(xf(x))=xf(x).
The equation becomes:
f(xf(x))+f(xy)=xf(x)+f(x)f(y)⇒f(xy)=f(x)f(y),
and well-known that the only other additive and multiplicative function is f(x)=x.