Solution by jasperE3.
f(x2+f(xy))=f(x2)+xy.
Equation implies f(x+f(y))=f(x)+y for all x>0, call this P(x,y).
For all sufficiently large x, we have:
f(x+f(y+z))=P(x,y+z)f(x)+y+z=P(x,y)f(x+f(y))+z=P(x+f(y),z)f(x+f(y)+f(z)),
so f(x+f(y+z)−f(y)−f(z))=f(x) for all x>max{−f(y)−f(z),−f(y)−2f(z)}. Moreover:
P(1,x+f(y+z)−f(y)−f(z))⇒f(1+f(x))=f(1)+x+f(y+z)−f(y)−f(z),
so (comparing with P(1,x)) f(y+z)=f(y)+f(z) for all y,z∈R, that is, f is additive.
Then P(x,y) becomes f(f(y))=y for all y, so f is an additive involution. Easy to check that any additive involution fits, so f(x)=v1(x)−v2(x) where V1,V2 are two Q-supplementary subvectorspaces of the Q-vectorspace R and v1:R→V1 and v2:R→V2 the projections of a real in V1,V2.