#721

solved

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

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

for any reals x,yx,y.

Solution

Solution by ben13jamin.


Let P(x,y)P(x,y) be

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

First, f(0)=0f(0)=0. Indeed, P(0,y)P(0,y) gives f(0)=f(0)f(y)f(0)=f(0)f(y) for all yy; if f(0)≠0f(0)\ne0, then ff would be the constant function 11, which is not a solution.

The zero function is not a solution, so choose some jj with f(j)≠0f(j)\ne0. If f(a)=f(b)f(a)=f(b), then comparing P(j,a)P(j,a) and P(j,b)P(j,b) gives a=ba=b. Hence ff is injective.

Swapping xx and yy in the original equation gives

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

By injectivity,

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

for all x,yx,y. Taking y=1y=1 gives f(x)=cxf(x)=cx, where c=f(1)c=f(1). Substituting into the equation gives

2c2xy=(c2+1)xy,2c^2xy=(c^2+1)xy,

so c2=1c^2=1. Thus

f(x)=x for all xorf(x)=−x for all x.\boxed{f(x)=x\text{ for all }x} \qquad\text{or}\qquad \boxed{f(x)=-x\text{ for all }x}.

Both functions work.