Solution by Midmogus.
P(x,0):f(x2)=xf(x), and from.
P(−x,0):f(x)=−f(−x).
P(0,0):f(0)=0.
First case: there exist t=0, such that f(t)=0.
P(t,y):f(t2)=tf(y) or f(y)=tf(t2)=const. Plugging y=t it gives that f(t)=0, so f(y)=0.
Second case: if t=0, then f(t)=0.
P(x,−x):f(x2−f(x)2)=0, so x2=f(x)2 or f(x)∈{x,−x}.
Let there exist x1=f(x1)=0 and x2=−f(x2)=0.
Then choose Y1=f(y1) or f(−y1) so that
x12+Y1x1=x22=r=0.
Then from P(x1,±y1) and P(x22,0):
f(r)=x12+Y1x1=−x22
or
r=−r=0,
which is a contradiction. Therefore the solutions are f(x)=x, f(x)=−x and f(x)=0.
Notes: ±y1 means f(±y1)=Y1.