#447

solved

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

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

for any reals x,yx,y.

Known appearances

Solution

Solution by OronSH/gghx.


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

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

The functions

f(x)≡0,f(x)≡12,f(x)=xf(x)\equiv0,\qquad f(x)\equiv\frac12,\qquad f(x)=x

all work. We prove these are the only ones.

Taking P(0,y)P(0,y) gives

f(0)=f(0)2+f(0)f(y).f(0)=f(0)^2+f(0)f(y).

If f(0)≠0f(0)\ne0, then f(y)f(y) is constant, and this gives f≡12f\equiv\frac12. Hence, apart from the constant solutions, we may assume

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

If f(c)=0f(c)=0, then P(c,y)P(c,y) gives

f(cy)=0f(cy)=0

for every real yy. In the nonconstant case this forces c=0c=0, so 00 has the unique preimage 00.

Now P(x,−f(x))P(x,-f(x)) gives

0=f(x)(f(x)+f(−f(x))).0=f(x)\bigl(f(x)+f(-f(x))\bigr).

Thus, whenever f(x)≠0f(x)\ne0,

f(−f(x))=−f(x).(1)f(-f(x))=-f(x). \tag{1}

For f(x)=0f(x)=0, the same equality follows from f(0)=0f(0)=0, so (1) holds for every xx.

Finally, applying P(−f(y),y)P(-f(y),y) and using (1) gives

f(−yf(y)+f(y)2)=0.f\bigl(-yf(y)+f(y)^2\bigr)=0.

By the uniqueness of the zero,

f(y)2=yf(y)f(y)^2=yf(y)

for every yy. Hence either f(y)=0f(y)=0, which implies y=0y=0, or f(y)=yf(y)=y. Therefore f(y)=yf(y)=y for all real yy.

So the solutions are

f(x)≡0,f(x)≡12,f(x)=x.\boxed{f(x)\equiv0,\qquad f(x)\equiv\frac12,\qquad f(x)=x}.