Solution by jasperE3.
f(f(x)2+xy)=x2+f(x)f(y).
P(0,x)⇒f(f(0)2)=f(0)f(x), there are no constant solutions so we must have f(0)=0.
P(1,0)⇒f(f(1)2)=1.
P(f(1)2,0)⇒f(1)4=f(1).
If f(1)=0, P(1,1)⇒0=1, contradiction. So f(1)=1.
P(1,x)⇒f(x+1)=f(x)+1.
P(x,y+1)⇒f(f(x)2+xy+x)=x2+f(x)f(y)+f(x)=f(f(x)2+xy)+f(x).
For x=0, f(x)2+xy can take any value, so we have f(x+y)=f(x)+f(y) for all x=0. It’s also true for x=0, so f is additive.
P(x,0)⇒f(f(x)2)=x2.
We obtain f(f(x)2+f(y)2)=x2+y2, so by #475 we have f(x)=x for all x≥0. Using f(x+1)=f(x)+1 we can extend this to all of R: we can get by induction in two directions that f(x+n)=f(x)+n for all n∈Z, then for any x just choose some n such that x+n≥0. We’ll obtain f(x)+n=f(x+n)=x+n so our solution in this case is f(x)=x.