Solution by jasperE3.
f(x2+yf(y))=x2+yf(y).
If xf(x) is unbounded below, then f(x)=x for all x, contradiction. So let c=infx∈Rxf(x), it’s clear that f(x)=x for all x>c and that c≤0. So our solutions are as follows:
f(x)={xxc+g(x)if x≥cif x<c
where g:(−∞,c)→(−∞,0] is any function and c≤0 any constant, which fits.
f(x)={xxc+g(x)if x>cif x≤c
where g:(−∞,c]→(−∞,0) is any function and c<0 any constant, which fits.