Note: we show the solution for the statement in the AoPS thread, which has x and y swapped.
Solution by pco.
We claim the only solutions are f(x)≡x and f(x)≡−x, which obviously work. We now show they are the only solutions. Let P(x,y) denote the assertion that f(x2+f(y))=xf(x)+y.
P(0,x) ⟹ f(f(x))=x and so f(x) is bijective.
P(x,0) ⟹ f(x2+f(0))=xf(x).
P(f(x),0) ⟹ f(f(x)2+f(0))=f(x)f(f(x))=xf(x).
So f(x2+f(0))=f(f(x)2+f(0)) and, since injective f(x)2=x2 and so ∀x : either f(x)=x, either f(x)=−x.
Suppose now that ∃a,b both =0 such that f(a)=a and f(b)=−b.
P(a,b) ⟹ f(a2−b)=a2+b but:
either f(a2−b)=a2−b and so b=0, impossible.
either f(a2−b)=−a2+b and so a=0, impossible.
And so :
Either f(x)=x ∀x which indeed is a solution.
Either f(x)=−x ∀x which indeed is a solution.