Solution by jasperE3.
f(f(x)2+f(x)f(y))=f(x)2+xy.
P(x,0)⇒f(f(x)2+f(x)f(0))=f(x)2⇒f(x2+xf(0))=x2 since f is surjective. x=0 implies f(0)=0, so f(x)=x for all x≥0.
P(x,x)⇒f(2f(x)2)=f(x)2+x2⇒2f(x)2=f(x)2+x2 so f(x)∈{−x,x} for each x.
If f(a)=−a and f(b)=b for some b, then a,b=0 and so:
P(a,b)⇒f(a2−ab)=a2+ab.
Since f(a2−ab)∈{a2−ab,ab−a2}, either a2−ab=a2+ab⇒ab=0 or ab−a2=a2+ab⇒a=0, but both are impossible and so either f(x)=x for all x or f(x)=−x for all x, the latter isn’t a solution.