Solution by jasperE3.
f(x2+xf(y))=xf(x)+xf(y).
P(0,0)⇒f(0)=0.
P(x,0)⇒f(x2)=xf(x) so f is odd.
P(−1,x)⇒f(1−f(x))=f(1)−f(x).
P(1−f(x),x)⇒f(1)−f(x)=(1−f(x))(f(1)−f(x))+(1−f(x))f(x).
If f(1)=1, this simplifies to f(x)=0 which is indeed a solution. Otherwise, assume f(1)=1.
P(1,x)⇒f(1+f(x))=1+f(x).
P(−x−f(y),y)⇒f(x2+xf(y))=(x+f(y))f(x+f(y))−xf(y)−f(y)2.
Comparing with P(x,y), we obtain:
(x+f(y))f(x+f(y))=xf(x)+2xf(y)+f(y)2.
Set y=−x, this becomes:
(x−f(x))f(x−f(x))=f(x)2−xf(x),
so f(x−f(x))=−f(x) for all x such that f(x)=x.
In particular, if f(x)=x then x=0 and so:
P(x,1)⇒f(x2+x)=xf(x)+x=x2+x and f(x2)=xf(x)=x2 so substituting x2 and x2+x into f(x−f(x))=−f(x) we have:
x2⇒f(x2−xf(x))=−xf(x),
x2+x⇒f(x2−xf(x))=−xf(x)−x.
Comparing, we obtain x=0, contradiction.
Therefore no such x exists, so we must have f(x)=x for all x.