Solution by jasperE3.
Claim: if x2+xf(y)∈f(R) for all x,y then f is surjective.
Proof. x=0 gives 0∈f(R) while f(y)=0 gives [0,∞)⊆f(R). Now for any x∈R we can choose a=−∣x∣−1 and b=−a+ax=∣x∣+1(∣x∣+1)2−x≥0, then x=a2+ab∈f(R).
f(xf(x)+f(x)f(y))=x2+xf(y).
From the claim, equation becomes #398 with solutions f(x)=x and f(x)=−x (which fits).