Solution by jasperE3.
f(f(x)2+xy)=f(x)2+f(x)f(y).
If f(k)=0 for some k=0:
P(k,x)⇒f(x)=0 for all x.
Otherwise, assume f(x)=0 for all x=0.
P(0,x)⇒f(0)f(x)=f(f(0)2)−f(0)2.
If f(0)=0 then f is a constant function, our only other solution is f(x)=21.
Otherwise, assume f(0)=0.
For x=0 we have:
P(x,−xf(x)2)⇒f(−xf(x)2)=−f(x).
P(−xf(x)2,x+1)⇒−f(x)=f(x)2−f(x)f(x+1)⇒f(x+1)=f(x)+1.
Therefore f(−1)=−1, so:
P(−1,x)⇒f(−x)=−f(x) for all x=0, but it’s also true for x=0 and so f is odd.
So for all y=0:
P(x,y+1)⇒f(f(x)2+xy+x)=f(x)2+f(x)f(y)+f(x)=f(f(x)2+xy)+f(x)
which implies (as f(x)2+xy takes any value other than f(x)2):
f(x+y)=f(x)+f(y)
for all y=f(x)2, and in particular for all y≤0 (since f(x+0)=f(x)+f(0) for any x). Equation can be therefore manipulated into f(−x+y)=f(−x)+f(y) for all y≤0 which implies f(x−y)=f(x)+f(−y) for all y≤0 by oddness. Combining f(x−y)=f(x)+f(−y) and f(x+y)=f(x)+f(y) for y≤0 we have f(x+y)=f(x)+f(y) for all y.
P(x,0)⇒f(f(x)2)=f(x)2.
The equation thus reduces to:
f(f(x)2)+f(xy)=f(x)2+f(x)f(y),
so f is multiplicative as well, only other solution f(x)=x.