#165

solved

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

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

for any reals x,yx,y.

Solution

Solution by ioannism45.


f(f(x)+f(xy))=x+xf(y),∀x,y∈R.f(f(x)+f(xy))=x+xf(y),\quad\forall x,y\in\mathbb{R}.

Very nice.

Observe first that f(y)=−1f(y)=-1 for all yy is not a solution. So there exists aa such that f(a)≠−1f(a)\neq -1.

Therefore

P(x,a): f(f(x)+f(ax))=x(f(a)+1),∀x∈RP(x,a):\,f(f(x)+f(ax))=x(f(a)+1),\quad\forall x\in\mathbb{R}

which immediately gives ff: surjective. Furthermore we have

P(x,1):f(2f(x))=x(f(1)+1),∀x∈R(1).P(x,1):f(2f(x))=x(f(1)+1),\quad\forall x\in\mathbb{R}\quad (1).

If f(1)=−1f(1)=-1 surjectivity of ff implies f≡0f\equiv 0 which is not a solution. Thus f(1)≠−1f(1)\neq -1 using (1)(1), it is trivial to show that ff is injective.

We shall now prove that f(−1)=−1f(-1)=-1 and f(0)=0f(0)=0.

If f(0)=−1f(0)=-1 then for some kk such that f(k)=1f(k)=1 we have

P(k,0): f(f(k)−1)=0⇒f(0)=0P(k,0):\,f(f(k)-1)=0\Rightarrow f(0)=0

contradiction. So for some t≠0t\neq 0 we have f(t)=−1f(t)=-1. We have

P(1,t)−P(t,1t): f(f(1)+f(t))−f(f(t)+f(1))=1+f(t)−t−tf(1t)⇒P(1,t)-P\left(t,\frac{1}{t}\right):\,f(f(1)+f(t))-f(f(t)+f(1))=1+f(t)-t-tf\left(\frac{1}{t}\right)\Rightarrow ⇒f(1t)=−1=f(t)⇒\Rightarrow f\left(\frac{1}{t}\right)=-1=f(t)\Rightarrow ⇒t2=1⇒f(1)≠−1t=−1.\Rightarrow t^2=1\xRightarrow{f(1)\neq -1}t=-1.

We also have

P(0,1): f(2f(0))=0.P(0,1):\,f(2f(0))=0.

If f(0)≠0f(0)\neq 0 then

P(2f(0),1): f(0)=2f(0)(f(1)+1)⇒2f(1)+2=1⇒f(1)=−12.P(2f(0),1):\,f(0)=2f(0)(f(1)+1)\Rightarrow 2f(1)+2=1\Rightarrow f(1)=-\frac{1}{2}.

However, this implies

P(1,1): f(2f(1))=f(1)+1⇒f(−1)=12P(1,1):\,f(2f(1))=f(1)+1\Rightarrow f(-1)=\frac{1}{2}

contradiction. Thus f(0)=0f(0)=0.

Now we have

P(x,−1): f(f(x)+f(−x))=0⇒f(−x)=−f(x),∀x∈R.P(x,-1):\,f(f(x)+f(-x))=0\Rightarrow f(-x)=-f(x),\quad\forall x\in\mathbb{R}.

Thus f(1)=1f(1)=1 and so

P(x,1): f(2f(x))=2x,∀x∈R.P(x,1):\,f(2f(x))=2x,\quad\forall x\in\mathbb{R}.

Setting x→2f(x)x\to2f(x) at the above gives

f(4x)=4f(x),∀x∈R,(2).f(4x)=4f(x),\quad\forall x\in\mathbb{R},\quad(2).

To finish off, we have

P(x,yx): f(f(x)+f(y))=x+xf(yx),∀x,y∈R,x≠0P\left(x,\frac{y}{x}\right):\,f(f(x)+f(y))=x+xf\left(\frac{y}{x}\right),\quad\forall x,y\in\mathbb{R},x\neq 0

and swapping xx and yy gives

x+xf(yx)=y+yf(xy),∀x,y∈R∗,(3).x+xf\left(\frac{y}{x}\right)=y+yf\left(\frac{x}{y}\right),\quad\forall x,y\in\mathbb{R}^*,\quad(3).

For y=1y=1 in (3)(3) we have

x+xf(1x)=f(x)+1⇒4x+4xf(1x)=4f(x)+4,∀x∈R∗(4)x+xf\left(\frac{1}{x}\right)=f(x)+1\Rightarrow 4x+4xf\left(\frac{1}{x}\right)=4f(x)+4,\quad\forall x\in\mathbb{R}^*\quad(4)

and for y=4y=4 in (3)(3) we have

x+xf(4x)=4+4f(x4)⇒(2)x+4xf(1x)=4+f(x),∀x∈R∗(5).x+xf\left(\frac{4}{x}\right)=4+4f\left(\frac{x}{4}\right)\xRightarrow{(2)} x+4xf\left(\frac{1}{x}\right)=4+f(x),\quad\forall x\in\mathbb{R}^*\quad(5).

Subtracting (4)(4) and (5)(5) gives is

3f(x)=3x⇒f(x)=x,∀x∈R∗3f(x)=3x\Rightarrow f(x)=x,\quad\forall x\in\mathbb{R}^*

and since f(0)=0f(0)=0 we have

f(x)=x,∀x∈R\boxed{f(x)=x,\quad\forall x\in\mathbb{R}}

which we can verify it works. ■\blacksquare