Solution by jasperE3.
f(f(x)2+yf(x))=x2+f(x)f(y).
Case 1: f(k)=0 for some k
P(x,k)⇒f(f(x)2+kf(x))=x2 so f takes every value ≥0.
Rewrite the equation as:
f(f(x)2+yf(x))=f(f(x)2+kf(x))+f(x)f(y),
we have:
f(x2+xy)=f(x2+kx)+xf(y)
for all x≥0. In particular, f(x+1)=f(x)+c where c=f(k+1).
P(x,y+1)⇒f(f(x)2+yf(x)+f(x))=x2+f(x)f(y)+cf(x)=f(f(x)2+yf(x))+cf(x).
If f(x)=0 then f(x)2+yf(x) can take any value and so f(y+f(x))=f(y)+cf(x), but this is also true if f(x)=0.
Again, f(x) can take any value ≥0, so f(x+y)=f(y)+cx for all x≥0, and taking y↦y−x we see that f(−x+y)=f(y)−cx so this
is true for all x≤0 as well. Therefore f is linear, testing we have f(x)=x.
Case 2: f(x)=0 for all x
If f(0)=1, then:
P(0,1−f(0)f(0)2)⇒f(0)=1, contradiction.
So f(0)=1.
P(1,−f(1))⇒f(1)f(−f(1))=0, impossible.
Hence no further solutions.