Solution by jasperE3.
f(f(x2)+f(xy))=xf(x)+yf(x).
P(0,x)⇒f(2f(0))=xf(0), varying x we see that the only possibility for f(0) is f(0)=0.
For x,y=0 we have:
P(x,xy2)⇒f(f(x2)+f(y2))=xf(x)+xy2f(x),
and swapping x,y:
xf(x)+xy2f(x)=yf(y)+yx2f(y).
Setting y=1, this is f(x)=xf(1) which is also true for x=0, hence f is at most linear. Testing such solutions we find that f(x)=0 and f(x)=x are the solutions.