#167

solved

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

f(f(x)+f(xy))=x+f(x)f(y)f(f(x) + f(xy)) = x + f(x)f(y)

for any reals x,yx,y.

Solution

Solution by jasperE3.


Let P(x,y)P(x,y) denote

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

There are no constant solutions. From P(0,y)P(0,y),

f(2f(0))=f(0)f(y).f(2f(0))=f(0)f(y).

Thus, if f(0)≠0f(0)\ne 0, then ff would be constant, impossible. Hence f(0)=0f(0)=0.

Now P(x,0)P(x,0) gives

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

so ff is bijective. Let a=f(1)a=f(1). In P(1,y)P(1,y),

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

Since ff is bijective, we may put y=f(x−a)y=f(x-a), giving f(y)=x−af(y)=x-a. Therefore

f(x)=1+a(x−a)=ax+1−a2.f(x)=1+a(x-a)=ax+1-a^2.

Using f(0)=0f(0)=0, we get a2=1a^2=1. Hence the only possible functions are f(x)=xf(x)=x and f(x)=−xf(x)=-x, and both satisfy the original equation. Thus

f(x)=x for all xorf(x)=−x for all x.\boxed{f(x)=x\text{ for all }x} \qquad\text{or}\qquad \boxed{f(x)=-x\text{ for all }x}.