#125

solved

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

f(f(x)+xf(y))=x+xf(y)f(f(x) + xf(y)) = x + xf(y)

for any reals x,yx,y.

Solution

Solution by tadpoleloop.


Let P(x,y)P(x,y) be

f(f(x)+xf(y))=x+xf(y).f(f(x)+xf(y))=x+xf(y).

There is some y0y_0 with f(y0)≠−1f(y_0)\ne -1, since f≡−1f\equiv -1 is not a solution. Then the right side of P(x,y0)P(x,y_0) is x(1+f(y0))x(1+f(y_0)), which ranges over all real numbers as xx varies. Hence ff is surjective.

Choose kk such that f(k)=0f(k)=0. From P(x,k)P(x,k),

f(f(x))=x,f(f(x))=x,

so ff is injective. Now choose aa with f(a)≠0f(a)\ne 0. In P(f(a),y)P(f(a),y), using f(f(a))=af(f(a))=a, we get

f(a+f(a)f(y))=f(a)+f(a)f(y).f(a+f(a)f(y))=f(a)+f(a)f(y).

Since ff is surjective and f(a)≠0f(a)\ne 0, the expression a+f(a)f(y)a+f(a)f(y) ranges over all real numbers. Therefore, for some constant c=f(a)−ac=f(a)-a,

f(t)=t+cf(t)=t+c

for all real tt. But f(f(x))=xf(f(x))=x gives x+2c=xx+2c=x, so c=0c=0. Hence

f(x)=x for all x.\boxed{f(x)=x\text{ for all }x}.

Direct substitution verifies that this function works.