#126

solved

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

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

for any reals x,yx,y.

Solution

Solution by tadpoleloop.


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

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

There are no constant solutions, so choose uu with f(u)≠0f(u)\ne0. Then P(u,y)P(u,y) shows that ff is surjective. Also, if f(a)=f(b)f(a)=f(b), comparing P(u,a)P(u,a) and P(u,b)P(u,b) gives a=ba=b, so ff is injective. Hence ff is bijective.

From P(0,y)P(0,y), the left side is constant while the right side is yf(0)yf(0), so f(0)=0f(0)=0. Therefore P(x,0)P(x,0) gives

f(f(x))=x.f(f(x))=x.

Let a=f(1)a=f(1). Then f(a)=1f(a)=1. From P(1,a)P(1,a),

f(1+a)=1+a2,f(1+a)=1+a^2,

while P(a,a)P(a,a) gives

f(1+a)=2a.f(1+a)=2a.

Thus 1+a2=2a1+a^2=2a, so a=1a=1. Hence f(1)=1f(1)=1.

Now P(1,f(y))P(1,f(y)) gives

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

We prove additivity. Fix x≠0x\ne0 and s∈Rs\in\mathbb R, and set

v=s−f(x)x.v=\frac{s-f(x)}{x}.

Using P(x,f(v))P(x,f(v)),

f(s)=x+f(x)f(v).f(s)=x+f(x)f(v).

Next apply P(x,f(v)+1)P(x,f(v)+1). Since f(t+1)=f(t)+1f(t+1)=f(t)+1 and f(f(v))=vf(f(v))=v,

f(f(v)+1)=v+1.f(f(v)+1)=v+1.

Therefore

f(s+x)=x+f(x)(f(v)+1)=f(s)+f(x).f(s+x)=x+f(x)(f(v)+1)=f(s)+f(x).

The case x=0x=0 is immediate from f(0)=0f(0)=0, so ff is additive.

Finally, P(x,f(y))P(x,f(y)) gives

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

By additivity and f(f(x))=xf(f(x))=x, the left side is x+f(xy)x+f(xy). Hence

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

Thus ff is additive and multiplicative, with f(1)=1f(1)=1. For t≥0t\ge0, write t=r2t=r^2 to get f(t)=f(r)2≥0f(t)=f(r)^2\ge0, so ff is order-preserving. Since ff fixes every rational number, the order-preserving property forces f(x)=xf(x)=x for every real xx. Therefore the unique solution is

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

Direct substitution verifies that it works.