Solution by jasperE3.
f(f(x)2+f(x)f(y))=x2+xy.
P(1,x)⇒f(f(1)2+f(1)f(x))=1+x, so f is bijective.
Let f(k)=0:
P(k,x)⇒f(0)=k2+kx, so k=0 and therefore f(0)=0.
P(x,0)⇒f(f(x)2)=x2 from which we obtain:
f(x)4=f(f(f(x)2)2)=f(x4).
In particular, f(1)=f(1)4, and since f(1)=f(0) we have f(1)=1.
P(1,x) now becomes f(1+f(x))=1+x, so as before:
2+f(x)=f(1+f(1+f(x)))=f(2+x).
P(x,y+2)⇒f(f(x)2+f(x)f(y)+2f(x))=x2+xy+2x=f(f(x)2+f(x)f(y))+2x.
For x=0, f(x)2+f(x)f(y) can take any value (by surjectivity) so:
Q(x,y):f(y+2f(x))=f(y)+2x
for all x=0, but it’s also true for x=0.
Q(x,0)⇒f(2f(x))=2x.
Q(2f(x),0)⇒f(4x)=4f(x).
Q(2f(x),y)⇒f(4x+y)=f(4x)+f(y), so f is additive.
P(2f(x),0)⇒f(4x2)=4f(x)2.
P(2f(x),2f(y))⇒f(4x2)+f(4xy)=4f(x)2+4f(x)f(y).
Using the fact that f(4x)=4f(x), we have that f is multiplicative, and since we already established f≡0 we must have f(x)=x.