#773

solved

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

f(xf(y)+f(xy))=yf(x)+f(x)f(y)f(xf(y) + f(xy)) = yf(x) + f(x)f(y)

for any reals x,yx,y.

Known appearances

Solution

Solution by megarnie.


We claim that the only solutions are

f≡0andf(x)=x.\boxed{f\equiv 0}\qquad\text{and}\qquad \boxed{f(x)=x}.

Both are checked directly. Now suppose ff is not identically zero, and let

P(x,y):f(xf(y)+f(xy))=yf(x)+f(x)f(y).P(x,y):\qquad f(xf(y)+f(xy))=yf(x)+f(x)f(y).

Also write

g(x)=x+f(x).g(x)=x+f(x).

From P(0,y)P(0,y),

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

If f(0)≠0f(0)\ne0, then ff is constant, and the equation immediately forces this constant to be 00, contradiction. Hence

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

Next we show that f(1)≠0f(1)\ne0. Suppose instead that f(1)=0f(1)=0. From P(1,y)P(1,y) and P(x,1)P(x,1) we get

f(2f(y))=0,f(f(x))=f(x).(1)f(2f(y))=0,\qquad f(f(x))=f(x). \tag{1}

Choose aa with f(a)≠0f(a)\ne0, and put z=f(a)z=f(a). Then f(z)=zf(z)=z and z≠0z\ne0, while f(2z)=0f(2z)=0. Applying P(x,2z)P(x,2z) gives

f(f(2xz))=2zf(x).f(f(2xz))=2zf(x).

Using (1), this becomes

f(2xz)=2zf(x).f(2xz)=2zf(x).

Putting x=12x=\frac12 yields f(12)=12f(\frac12)=\frac12. Then P(2,12)P(2,\frac12) gives f(2)=0f(2)=0, while P(12,2)P(\frac12,2) gives 0=10=1, a contradiction. Thus

f(1)≠0.f(1)\ne0.

Now ff is injective. Indeed, if f(c)=f(d)f(c)=f(d), then comparing P(1,c)P(1,c) and P(1,d)P(1,d) gives

f(1)(c+f(c))=f(1)(d+f(d)),f(1)(c+f(c))=f(1)(d+f(d)),

so c=dc=d.

The function gg is injective as well. If g(c)=g(d)g(c)=g(d), then P(1,c)P(1,c) and P(1,d)P(1,d) give

f(2f(c))=f(2f(d)).f(2f(c))=f(2f(d)).

By injectivity of ff, we get f(c)=f(d)f(c)=f(d), hence c=dc=d.

Finally, by P(y,x)P(y,x) and P(x,y)P(x,y),

f(yf(x)+f(xy))=f(y)g(x),f(yf(x)+f(xy))=f(y)g(x),

and

f(xf(y)+f(xy))=f(x)g(y).f(xf(y)+f(xy))=f(x)g(y).

Therefore

g(yf(x)+f(xy))=yf(x)+f(xy)+f(y)g(x),g(yf(x)+f(xy))=yf(x)+f(xy)+f(y)g(x),

and

g(xf(y)+f(xy))=xf(y)+f(xy)+f(x)g(y).g(xf(y)+f(xy))=xf(y)+f(xy)+f(x)g(y).

The two right-hand sides are equal, so injectivity of gg gives

yf(x)+f(xy)=xf(y)+f(xy).yf(x)+f(xy)=xf(y)+f(xy).

Thus

yf(x)=xf(y)yf(x)=xf(y)

for all real x,yx,y. For nonzero x,yx,y, this means f(x)/x=f(y)/yf(x)/x=f(y)/y, so f(x)=cxf(x)=cx for all xx, with f(0)=0f(0)=0 already known.

Substituting f(x)=cxf(x)=cx into the original equation gives

2c2xy=cxy+c2xy,2c^2xy=cxy+c^2xy,

so c2=cc^2=c. Hence c=0c=0 or c=1c=1, giving exactly the two listed solutions.