#139

solved

Find all functions f:R→Rf:\mathbb{R}\to\mathbb{R} such that

f(f(x)+yf(x))=x+f(xy)f(f(x) + yf(x)) = x + f(xy)

for any reals x,yx,y.

Solution

Solution by efereal3.


Setting y=−1y=-1 gives us f(0)=x+f(−x)f(0)=x+f(-x) or f(−x)=−x+f(0)f(-x)=-x+f(0) or f(x)=x+f(0)f(x)=x+f(0) for all xx. Substituting that into the original equation, we see that x+xy+yf(0)+2f(0)=x+xy+f(0)x+xy+yf(0)+2f(0)=x+xy+f(0) for all x,yx,y, meaning f(0)=0f(0)=0 or f(x)=xf(x)=x for all xx (which does satisfy the original functional equation). To conclude, f(x)=xf(x)=x for all xx is the only solution.