Solution by jasperE3.
f(f(x)2+f(xy))=f(x)2+xy.
If f(a)=f(b), then P(1,a) and P(1,b) imply a=b so f is injective, and clearly surjective.
P(x,0)⇒f(f(x)2+f(0))=f(x)2.
P(x,x1f−1(f(0)x))⇒f−1(f(0)x)=0 for all x=0, which is impossible for f(0)=0 since f−1 is bijective.
P(x,0)⇒f(f(x)2)=f(x)2⇒f(x2)=x2, so f(x)=x for all x≥0.
P(x,−xf(x)2)⇒f(f(x)2+f(−f(x)2))=0=f(0)⇒f(x)2+f(−f(x)2)=0 for all x=0, but also true for x=0. By surjectivity this is f(−x2)=−x2, so f(x)=x for all x≤0 too, only solution f(x)=x.