Note: we show the solution for the statement of BMO 1997/4, which has x and y swapped.
Solution by prester.
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(xf(x)+f(y))=f(x)2+y.
P(0,y) ⟹f(f(y))=f2(0)+y(∗).
Therefore f(x) is a bijection of R.
So ∃u∈R such that f(u)=0.
P(u,y) ⟹f(f(y))=y(∗∗).
So f(0)=0 and u=0.
P(f(x),y) ⟹f(xf(x)+f(y))=x2+y(∗∗∗).
Combining P(x,y) and (∗∗∗) we have f2(x)=x2∀x∈R.
Therefore for x0∈R we have either f(x0)=x0 or f(x0)=−x0.
Let x0,y0 be non-zero reals with f(x0)=x0 and f(y0)=−y0.
P(x0,−y0) ⟹f(x02+y0)=x02−y0 so x0y0=0, a contradiction.
So we may conclude that ∀x∈R we have either f(x)=x or f(x)=−x.