Solution by jasperE3.
f(xf(y)+f(x)f(y))=2yf(x).
f(x)=0 is a solution, else there is some j with f(j)=0.
If f(a)=f(b):
P(j,a)⇒f(jf(a)+f(j)f(a))=2af(j).
P(j,b)⇒f(jf(a)+f(j)f(a))=2bf(j).
so a=b, that is, f is injective.
P(x,21)⇒f(xf(21)+f(x)f(21))=f(x)⇒xf(21)+f(x)f(21)=x.
If f(21)=0 this is x=0 for all x, impossible, and so f is linear. Testing, we have remaining solutions f(x)=−2x and f(x)=x.