#452

solved

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

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

for any reals x,yx,y.

Solution

Solution by OronSH.


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

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

The functions f≡0f\equiv0 and f(x)=xf(x)=x both work.

Suppose first that f(a)=0f(a)=0 for some a≠0a\ne0. Then P(a,y)P(a,y) gives

f(ay)=f(a2)f(ay)=f(a^2)

for all real yy. Since a≠0a\ne0, this makes ff constant; checking constant solutions gives only f≡0f\equiv0.

Now assume 00 has the unique preimage 00. Put y=x−f(x)y=x-f(x) in the original equation. Then

f(x2)=f(x2)+f(x)f(x−f(x)),f(x^2)=f(x^2)+f(x)f(x-f(x)),

so

f(x)f(x−f(x))=0.f(x)f(x-f(x))=0.

If f(x)=0f(x)=0, then x=0x=0. Otherwise, f(x−f(x))=0f(x-f(x))=0, so x−f(x)=0x-f(x)=0. Hence every xx satisfies f(x)=xf(x)=x, and the nonzero solution is f(x)=xf(x)=x.

Together with the constant case, the solutions are

f(x)≡0orf(x)=x.\boxed{f(x)\equiv0\quad\text{or}\quad f(x)=x}.