#171

solved

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

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

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)+yf(x).f(f(x)+f(xy)) = f(x)+yf(x).

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

This function works.

Case 2: There exists real x0x_0 such that f(x0)≠0f(x_0) \neq 0

Claim: ff is surjective.

Proof: P(x0,t−1f(x0)):f(?)=tP\left(x_0,\frac{t-1}{f(x_0)}\right) : f(?) = t for any real t.t. □\square

For any real number tt, let ss be a real number such that f(s)=t−f(0).f(s) = t-f(0).

P(s,0):f(t)=t−f(0).P(s, 0) : f(t) = t-f(0).

So f(x)=x−f(0)f(x)=x-f(0) for all real x.x. Plugging this into the given equation, x+xy−3f(0)=x+xy−f(0)−yf(0).x+xy-3f(0) = x+xy-f(0) - yf(0). This means f(0)=0f(0)=0, so f(x)=xf(x)=x for all real xx. This function works.

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