Solution by jasperE3.
f(xf(x)+f(x)f(y))=xf(x)+xf(y).
If f(k)=0 for some k=0:
P(k,x)⇒f(0)=kf(x), so f is constant. Only constant solution is f(x)=0.
Otherwise, assume f(x)=0 for all x=0.
P(0,0)⇒f(f(0)2)=0⇒f(0)2=0⇒f(0)=0.
For x=0:
P(−f(x),x)⇒0=−f(x)f(−f(x))−f(x)2⇒f(−f(x))=−f(x).
P(x,−f(x))⇒f(xf(x)−f(x)2)=0⇒xf(x)−f(x)2=0⇒f(x)=x.
Since f(0)=0, f(x)=x which fits.