#458

solved

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

f(xf(x)+f(xy))=x2+xyf(xf(x) + f(xy)) = x^2 + xy

for any reals x,yx,y.

Solution

Solution by jasperE3.


f(xf(x)+f(xy))=x2+xyf(xf(x)+f(xy))=x^2+xy.

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

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

P(f(1),0)⇒f(1)2=1P(f(1),0)\Rightarrow f(1)^2=1.

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

P(1,x)⇒f(f(x)+1)=x+1⇒f(x+2)=f(f(f(x)+1)+1)=f(x)+2P(1,x)\Rightarrow f(f(x)+1)=x+1\Rightarrow f(x+2)=f(f(f(x)+1)+1)=f(x)+2.

Now we have f(xf(x)+f(y))=x2+yf(xf(x)+f(y))=x^2+y for all x≠0x\ne0, so:

f(xf(x)+z2+y)=x2+zf(z)+f(y)f(xf(x)+z^2+y)=x^2+zf(z)+f(y)

for all x,z≠0x,z\ne0. Set z=2z=2, using f(x+4)=f(x+2)+2=f(x)+4f(x+4)=f(x+2)+2=f(x)+4 this is:

f(xf(x)+y+4)=x2+f(y)+4⇒f(xf(x)+y)=x2+f(y)f(xf(x)+y+4)=x^2+f(y)+4\Rightarrow f(xf(x)+y)=x^2+f(y)

for all x≠0x\ne0, which implies f(xf(x)+xy)=x2+f(xy)f(xf(x)+xy)=x^2+f(xy). By #439 we have (combined with f(1)=1f(1)=1) the only solution in this case f(x)=x\boxed{f(x)=x}.

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

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

P(1,1)⇒f(−2)=2P(1,1)\Rightarrow f(-2)=2.

P(1,x)⇒f(f(x)−1)=x+1P(1,x)\Rightarrow f(f(x)-1)=x+1.

P(x,1)⇒f(xf(x)+f(x))=x2+xP(x,1)\Rightarrow f(xf(x)+f(x))=x^2+x.

P(f(x)−1,1)⇒f(xf(x)+f(x))=f(x)2−f(x)P(f(x)-1,1)\Rightarrow f(xf(x)+f(x))=f(x)^2-f(x).

Comparing, we have f(x)2−f(x)=x2+xf(x)^2-f(x)=x^2+x so f(x)∈{−x,x+1}f(x)\in\{-x,x+1\} for each xx.

If f(k)≠−kf(k)\ne-k for some kk, then k≠0k\ne0 and f(k)=k+1f(k)=k+1 so:

P(k,1)⇒f(k2+2k+1)=k2+kP(k,1)\Rightarrow f\left(k^2+2k+1\right)=k^2+k.

If f(k2+2k+1)=k2+2k+2f\left(k^2+2k+1\right)=k^2+2k+2 then k=−2k=-2 which contradicts f(−2)=2f(-2)=2.

If f(k2+2k+1)=−k2−2k−1f\left(k^2+2k+1\right)=-k^2-2k-1 then 2k2+3k+1=02k^2+3k+1=0 so k=−12k=-\frac12 since k≠−1k\ne-1.

So we have f(x)=−xf(x)=-x for all x≠−12x\ne-\frac12. Then:

P(2,−74)⇒f(−12)=12,P\left(2,-\frac74\right)\Rightarrow f\left(-\frac12\right)=\frac12,

so f(x)=−x\boxed{f(x)=-x} for all xx whether x=−12x=-\frac12 or x≠−12x\ne-\frac12. Easy to verify that this is indeed a solution.