#745

solved

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

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

for any reals x,yx,y.

Known appearances

Solution

Solution by P2nisic.


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

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

For any real a,ba,b, applying P(a,b)P(a,b) gives

f((a+f(a))f(b))=bf(a)+f(ab).(1)f((a+f(a))f(b))=bf(a)+f(ab). \tag{1}

Now set

u=(a+f(a))f(b).u=(a+f(a))f(b).

Applying P(u,x)P(u,x) and using (1), the left-hand side becomes

f((u+f(u))f(x))=f((af(b)+f(a)f(b)+bf(a)+f(ab))f(x)).f((u+f(u))f(x)) =f((af(b)+f(a)f(b)+bf(a)+f(ab))f(x)).

The expression inside ff is symmetric in aa and bb. Therefore the corresponding right-hand side of P(u,x)P(u,x) is also symmetric, so

xf((a+f(a))f(b))+f(x(a+f(a))f(b))=xf((b+f(b))f(a))+f(x(b+f(b))f(a)).xf((a+f(a))f(b))+f(x(a+f(a))f(b)) =xf((b+f(b))f(a))+f(x(b+f(b))f(a)).

Putting x=1x=1 gives

2f((a+f(a))f(b))=2f((b+f(b))f(a)).2f((a+f(a))f(b))=2f((b+f(b))f(a)).

Using (1) on both sides,

2bf(a)+2f(ab)=2af(b)+2f(ab),2bf(a)+2f(ab)=2af(b)+2f(ab),

and hence

bf(a)=af(b)bf(a)=af(b)

for all real a,ba,b. Taking b=1b=1, we obtain

f(a)=af(1)f(a)=af(1)

for all real aa. Thus f(x)=cxf(x)=cx for some constant cc.

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

c2(1+c)xy=2cxyc^2(1+c)xy=2cxy

for all real x,yx,y. Hence

c(c+2)(c−1)=0,c(c+2)(c-1)=0,

so c∈{0,1,−2}c\in\{0,1,-2\}.

Therefore the solutions are

f(x)=0,f(x)=x,f(x)=−2x.\boxed{f(x)=0,\qquad f(x)=x,\qquad f(x)=-2x}.

Direct substitution verifies that all three functions work.