#377

solved

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

f(xf(x)+xf(y))=x2+f(x)f(y)f(xf(x) + xf(y)) = x^2 + f(x)f(y)

for any reals x,yx,y.

Solution

Solution by jasperE3.


Let P(x,y)P(x,y) be the assertion f(xf(x)+xf(y))=x2+f(x)f(y)f(xf(x)+xf(y))=x^2+f(x)f(y).

P(0,x)⇒f(0)=f(0)f(x)P(0,x)\Rightarrow f(0)=f(0)f(x).

If f(0)≠0f(0)\ne0 then f(x)=1f(x)=1 for all xx, which, upon checking, is not a solution. Contradiction, so we have to have f(0)=0f(0)=0.

P(x,0)⇒f(xf(x))=x2⇒[0,∞)⊆f(R)P(x,0)\Rightarrow f(xf(x))=x^2\Rightarrow[0,\infty)\subseteq f(\mathbb R).

From this we also get (x=1x=1) that f(f(1))=1f(f(1))=1 and so (x=f(1)x=f(1)) f(1)2=1f(1)^2=1.

Similarly, f(−f(−1))=1f(-f(-1))=1 and so f(−1)2=1f(-1)^2=1.

Case 1: f(1)=1f(1)=1

P(1,x)⇒f(1+f(x))=1+f(x)P(1,x)\Rightarrow f(1+f(x))=1+f(x), so f(x)=xf(x)=x for all x≥1x\ge1 since f(x)+1f(x)+1 takes any value ≥1\ge1.

If f(−1)=−1f(-1)=-1:

P(−1,x)⇒f(1−f(x))=1−f(x)P(-1,x)\Rightarrow f(1-f(x))=1-f(x), so f(x)=xf(x)=x for all x≤1x\le1 since −f(x)+1-f(x)+1 takes any value ≤1\le1.

Combining these two statements, f(x)=x\boxed{f(x)=x}.

It remains to consider the subcase f(−1)=1f(-1)=1.

Let x>0x>0 and take some large y>max⁡{1,1x−f(x)}y>\max\left\{1,\frac1x-f(x)\right\}, we have f(xf(x)+xf(y))=f(xf(x)+xy)=xf(x)+xyf(xf(x)+xf(y))=f(xf(x)+xy)=xf(x)+xy and so:

P(x,y)⇒xf(x)+xy=x2+yf(x)P(x,y)\Rightarrow xf(x)+xy=x^2+yf(x).

Varying yy, we see that f(x)=xf(x)=x for all x>0x>0.

P(−1,x)⇒f(−1−f(x))=1+f(x)P(-1,x)\Rightarrow f(-1-f(x))=1+f(x), so f(x)=−xf(x)=-x for all x≤−1x\le-1 since −f(x)−1-f(x)-1 takes any value ≤−1\le-1.

Let x<0x<0 and take some small y<min⁡{−1,1x+f(x)}y<\min\left\{-1,\frac1x+f(x)\right\}, we have f(xf(x)+xf(y))=f(xf(x)−xy)=−xf(x)+xyf(xf(x)+xf(y))=f(xf(x)-xy)=-xf(x)+xy and so:

P(x,y)⇒−xf(x)+xy=x2−yf(x)P(x,y)\Rightarrow-xf(x)+xy=x^2-yf(x).

Varying yy, we see that f(x)=−xf(x)=-x for all x<0x<0.

Combining our two conclusions here with f(0)=0f(0)=0, we have f(x)=∣x∣\boxed{f(x)=\lvert x\rvert} which is indeed a solution.

Case 2: f(1)=−1f(1)=-1

P(1,x)⇒f(−1+f(x))=1−f(x)P(1,x)\Rightarrow f(-1+f(x))=1-f(x), so f(x)=−xf(x)=-x for all x≥−1x\ge-1 since f(x)−1f(x)-1 takes all values ≥−1\ge-1.

In particular, f(−1)=1f(-1)=1 so:

P(−1,x)⇒f(−1−f(x))=1+f(x)P(-1,x)\Rightarrow f(-1-f(x))=1+f(x), so f(x)=−xf(x)=-x for all x≤−1x\le-1 since −f(x)−1-f(x)-1 takes all values ≤−1\le-1.

Therefore f(x)=−x\boxed{f(x)=-x} for all xx which is indeed a solution.