#170

solved

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

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

for any reals x,yx,y.

Solution

Solution by maromex.


Let P(x,y)P(x,y) denote the given assertion f(f(x)+f(xy))=f(x)+xf(y).f(f(x)+f(xy)) = f(x)+xf(y).

Claim: For any real numbers aa and bb with f(a)=f(b)f(a)=f(b), either a=ba=b or f(a)=f(b)=0f(a)=f(b)=0 (or both).

Proof: Use P(a,b)P(a, b) and P(b,a)P(b,a) to get

(1+a)f(a)=f(a)+af(b)=f(f(a)+f(ab))=f(f(b)+f(ab))=f(b)+bf(a)=(1+b)f(a)..\begin{align*} (1+a)f(a) &= f(a)+af(b) \\&= f(f(a)+f(ab)) \\&= f(f(b)+f(ab)) \\&= f(b)+bf(a) \\&= (1+b)f(a). \end{align*}.

This means f(a)=0f(a)=0 or 1+a=1+b.1+a=1+b. □\square

P(0,0):f(2f(0))=f(0).P(0,0) : f(2f(0)) = f(0). By the Claim, we have 2f(0)=02f(0) = 0 or f(2f(0))=f(0)=0f(2f(0)) = f(0) = 0; in both cases, f(0)=0.f(0) =0.

P(x,0):f(f(x))=f(x).P(x,0) : f(f(x)) = f(x). By the Claim, we have f(x)=xf(x)=x or f(f(x))=f(x)=0f(f(x)) = f(x) = 0. This means

f(x)∈{0,x}f(x) \in \{0,x \}

for all real x.x.

Case 1: f(x)=0f(x) = 0 for all real xx

This function works.

Case 2: f(x)=0f(x) = 0 for all real x≠−1x \neq -1, and f(−1)≠0f(-1) \neq 0

We have f(−1)=−1.f(-1) = -1.

P(−1,1):f(−2)=f(−1)P(-1, 1) : f(-2) = f(-1), a contradiction.

Case 3: f(y0)≠0f(y_0) \neq 0 for some real y0≠−1y_0 \neq -1

We have f(y0)=y0∉{−1,0}.f(y_0) = y_0 \not\in \{-1,0\}.

P(x,y0):f(f(x)+f(xy0))=f(x)+xy0P(x, y_0) : f(f(x)+f(xy_0)) = f(x) + xy_0.

We have xy0∉{−x,0}xy_0 \not\in \{-x, 0\} and f(x)∈{0,x}f(x) \in \{0, x\}, so f(x)+xy0≠0.f(x) + xy_0 \neq 0. This means f(f(x)+f(xy0))≠0f(f(x)+f(xy_0)) \neq 0 and therefore f(f(x)+f(xy0))=f(x)+f(xy0).f(f(x)+f(xy_0)) = f(x)+f(xy_0).

So f(x)+f(xy0)=f(x)+xy0f(x)+f(xy_0) = f(x)+xy_0, which means f(xy0)=xy0f(xy_0) = xy_0 for all real x.x. As y0≠0y_0 \neq 0 this means f(x)=xf(x)=x for all real x.x. This function works.

Combining cases, the two functions that work are f(x)=0f(x)=0 for all real xx and f(x)=xf(x)=x for all real x.x.