Solution by jasperE3.
f(f(x)2+xy)=xf(x)+f(x)f(y).
If f(k)=0 for some k=0:
P(k,x)⇒f(kx)=0, so f(x)=0 for all x which is indeed a solution.
Otherwise, suppose f(x)=0 for all x=0.
P(−f(0),0)⇒f(f(−f(0))2)=0, so some k exists and so f(0)=0.
P(x,0)⇒f(f(x)2)=xf(x), so if f(a)=f(b)=0 then a=b.
In particular, f(f(1)2)=f(1), so since f(1)=0 we have f(1)2=1.
Case 1: f(1)=1
P(1,x)⇒f(x+1)=f(x)+1.
P(x,y+1)⇒f(f(x)2+xy+x)=xf(x)+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 this equation becomes f(x+y)=f(x)+f(y) for all x=0. Since it’s also true for x=0, f is additive in general.
Now we can derive that f(f(x)2+f(y)2)=x2+y2, so using #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.
Case 2: f(1)=−1
P(1,x)⇒f(x+1)=−f(x)−1⇒f(x+2)=f(x).
In particular, f(3)=f(1)=0 yet 3=1, contradiction.