#712

solved

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

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

for any reals x,yx,y.

Solution

Solution by NamelyOrange.


We claim that the only solutions are

f(x)≡0orf(x)=x.\boxed{f(x)\equiv0\quad\text{or}\quad f(x)=x}.

Both clearly work. Let P(x,y)P(x,y) denote

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

Putting x=0x=0 gives f(0)=0f(0)=0. Let a=f(1)a=f(1). From P(x,1)P(x,1),

f(2ax)=ax+f(x).f(2ax)=ax+f(x).

If a=0a=0, this gives f(x)=0f(x)=0 for all xx, so assume a≠0a\ne0.

Comparing P(1,y)P(1,y) with P(f(y)/a,1)P(f(y)/a,1) gives

f(f(y)a)=ay.f\left(\frac{f(y)}a\right)=ay.

Hence ff is surjective. It is also injective: if f(u)=f(v)f(u)=f(v), then the last displayed identity gives au=avau=av, so u=vu=v.

Now put x=12ax=\frac1{2a} in P(x,y)P(x,y). Using the previous identity,

ay=f(y)2a+yf(12a).ay=\frac{f(y)}{2a}+y f\left(\frac1{2a}\right).

Thus f(y)f(y) is linear in yy, say f(y)=cyf(y)=cy. Since f(1)=af(1)=a, we have c=ac=a, so f(y)=ayf(y)=ay for all yy.

Substituting f(y)=ayf(y)=ay into the original equation gives

2a2xy=2axy2a^2xy=2axy

for all x,yx,y. Since a≠0a\ne0, we get a=1a=1. Therefore the nonzero solution is f(x)=xf(x)=x.

The complete solution set is

f(x)≡0orf(x)=x.\boxed{f(x)\equiv0\quad\text{or}\quad f(x)=x}.