Solution by jasperE3.
f(xf(y)+f(x)f(y))=yf(x)+f(x)f(y).
f(x)=−x is a solution, else there is some k with f(k)=−k.
Claim: f(x)+x is injective.
If a+f(a)=b+f(b):
P(a,k)⇒f((a+f(a))f(k))=f(a)(k+f(k)).
P(b,k)⇒f((a+f(a))f(k))=f(b)(k+f(k)).
and so f(a)=f(b) and so a=b.
Using this, we have:
xf(y)+f(x)f(y)+f(xf(y)+f(x)f(y))=xf(y)+yf(x)+2f(x)f(y),
and swapping x,y this implies:
xf(y)+f(x)f(y)+f(xf(y)+f(x)f(y))=yf(x)+f(x)f(y)+f(yf(x)+f(x)f(y)).
Now we can use the injectivity of f(x)+x to obtain:
xf(y)+f(x)f(y)=yf(x)+f(x)f(y)
which implies (y=1) that f(x)=xf(1) for all x. Testing, our only remaining solutions are f(x)=0 and f(x)=x.