Solution by jasperE3.
f(f(x)2+xy)=f(x2)+f(x)f(y).
Let c=f(1). If c=0, we have P(1,x)⇒f(x)=0 for all x which is indeed a solution, and otherwise c=0. Moreover this is the only constant solution, so from now on we may assume that f is nonconstant.
P(1,x)⇒f(x+c2)=cf(x)+c.
P(x,y+c2)⇒f(f(x)2+xy+c2x)=f(x2)+cf(x)f(y)+cf(x).
P(x,y)⇒cf(f(x)2+xy)=cf(x2)+cf(x)f(y).
Comparing, we have:
f(f(x)2+xy+c2x)=cf(f(x)2+xy)+(1−c)f(x2)+cf(x).
For x=0, f(x)2+xy can take any value, so for x=0:
f(c2x+y)=cf(x)+cf(y)+(1−c)f(x2).
First, set x=−1, this becomes, using the fact that f(x−c2)=c1f(x)−1:
c1f(y)−1=cf(−1)+cf(y)+c−c2,
and since f is nonconstant we need to have c2=1.
Second, set x=2 in the relation, using the fact that f(x+2c2)=c2f(x)+c2+c we have:
c2f(y)+c2+c=cf(2)+cf(y)+(1−c)f(4),
so c2=c which implies (together with c2=1) that c=1. Now the relation becomes:
f(x+y)=f(x)+f(y)
for x=0, but it’s clearly true for x=0 as well.
P(x,0)⇒f(f(x)2)=f(x2).
The full equation becomes:
f(f(x)2)+f(xy)=f(x2)+f(x)f(y)
so f is multiplicative as well. Well-known that the only additive and multiplicative functions are zero (which we already considered) or f(x)=x.