#505

solved

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

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

for any reals x,yx,y.

Solution

Solution by Midmogus.


The unique solution is

f(x)=x.\boxed{f(x)=x}.

Let t=f(0)t=f(0). From P(0,y)P(0,y),

f(t2)=t.f(t^2)=t.

Suppose f(r)=tf(r)=t. Comparing P(x,0)P(x,0) and P(x,r)P(x,r) gives

f(rx)=tf(rx)=t

for every xx. If r≠0r\ne0, then ff is constant, impossible. Thus r=0r=0 is the only preimage of tt. Since f(t2)=tf(t^2)=t, we get t2=0t^2=0, so

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

Now

P(x,0):f(f(x)2)=x2,P(x,0):\qquad f(f(x)^2)=x^2,

so ff takes every nonnegative value. To see that it also takes every negative value, fix s<0s<0 and choose x<0x<0 with x2=−sx^2=-s. Since ff takes all positive values, choose yy with

f(y)=−f(x)2x.f(y)=-\frac{f(x)^2}{x}.

Then f(x)2+xf(y)=0f(x)^2+xf(y)=0, and P(x,y)P(x,y) gives 0=x2+f(xy)0=x^2+f(xy), so f(xy)=sf(xy)=s. Hence ff is surjective.

Using P(1,y)P(1,y) and surjectivity, for every real zz we have

f(z)=z+1−f(1)2.f(z)=z+1-f(1)^2.

Thus f(z)=z+kf(z)=z+k for a constant kk. Substituting this into the original equation gives

(x+k)2+x(y+k)+k=x2+xy+k,(x+k)^2+x(y+k)+k=x^2+xy+k,

so k(3x+k)=0k(3x+k)=0 for all xx. Hence k=0k=0, and f(x)=xf(x)=x.