#274

solved

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

f(x2+f(x)f(y))=x2+yf(x)f(x^2 + f(x)f(y)) = x^2 + yf(x)

for any reals x,yx,y.

Solution

Solution by anakinwang.


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

f(x2+f(x)f(y))=x2+yf(x).f(x^2+f(x)f(y))=x^2+yf(x).

Clearly f(x)=xf(x)=x works. We prove it is the only solution.

First,

P(0,0):f(f(0)2)=0.P(0,0):\quad f(f(0)^2)=0.

Then

P(0,f(0)2):f(0)=f(0)3,P(0,f(0)^2):\quad f(0)=f(0)^3,

so f(0)2=f(0)4f(0)^2=f(0)^4. Also,

P(f(0)2,y):f(f(0)4)=f(0)4.P(f(0)^2,y):\quad f(f(0)^4)=f(0)^4.

Thus

f(0)4=f(f(0)4)=f(f(0)2)=0,f(0)^4=f(f(0)^4)=f(f(0)^2)=0,

so f(0)=0f(0)=0.

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

f(x2)=x2.f(x^2)=x^2.

Hence f(t)=tf(t)=t for every t≥0t\ge0.

Fix x>0x>0. If f(y)≥0f(y)\ge0, then x2+xf(y)>0x^2+xf(y)>0, and therefore

x2+xf(y)=f(x2+xf(y))=x2+yf(x)=x2+xy.x^2+xf(y)=f(x^2+xf(y))=x^2+yf(x)=x^2+xy.

Thus f(y)=yf(y)=y. In particular, if y<0y<0, then f(y)<0f(y)<0.

Now fix y<0y<0. Choose x>−f(y)x>-f(y) with x>0x>0. Then x2+xf(y)>0x^2+xf(y)>0, so again

x2+xf(y)=f(x2+xf(y))=x2+xy.x^2+xf(y)=f(x^2+xf(y))=x^2+xy.

Thus f(y)=yf(y)=y for every y<0y<0. Together with the nonnegative case,

f(x)=x for all x∈R.\boxed{f(x)=x\text{ for all }x\in\mathbb R}.