#395

solved

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

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

for any reals x,yx,y.

Solution

Solution by hauy1.


We claim the only solution is

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

which works.

From substituting x=0x=0, y=0y=0, we have

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

Substituting x=−yx=-y, we have

f(−yf(−y)+yf(−y))=y2−yf(y),f(-yf(-y)+yf(-y))=y^2-yf(y),

or

f(0)=y2−yf(y).f(0)=y^2-yf(y).

Thus

yf(y)=y2yf(y)=y^2

for all real yy. For nonzero yy,

f(y)=y.f(y)=y.

Together with f(0)=0f(0)=0, we conclude

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

for all real xx.