#545

solved

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

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

for any reals x,yx,y.

Solution

Solution by jasperE3.


f(f(x)2+f(x)f(y))=x2+f(xy)f\left(f(x)^2+f(x)f(y)\right)=x^2+f(xy).

If f(a)=f(b)f(a)=f(b):

P(a,1)⇒f(f(a)2+f(a)f(1))=a2+f(a)P(a,1)\Rightarrow f\left(f(a)^2+f(a)f(1)\right)=a^2+f(a).

P(b,1)⇒f(f(a)2+f(a)f(1))=b2+f(a)P(b,1)\Rightarrow f\left(f(a)^2+f(a)f(1)\right)=b^2+f(a)

so a2=b2a^2=b^2.

Claim: f(x)=xf(x)=x for all x≥0x\ge0.

P(0,0)⇒f(2f(0)2)=f(0)⇒4f(0)4=0⇒f(0)=0P(0,0)\Rightarrow f\left(2f(0)^2\right)=f(0)\Rightarrow4f(0)^4=0\Rightarrow f(0)=0.

Similarly, if f(k)=0f(k)=0 for any kk then k=0k=0.

P(x,0)⇒f(f(x)2)=x2P(x,0)\Rightarrow f\left(f(x)^2\right)=x^2.

From this equation, we obtain two things: that [0,∞)⊆f(R)[0,\infty)\subseteq f(\mathbb R) and that:

f(x4)=f(f(f(x)2)2)=f(x)4.f\left(x^4\right)=f\left(f\left(f(x)^2\right)^2\right)=f(x)^4.

Substituting x=1x=1, the last equation turns into f(1)4=f(1)f(1)^4=f(1), and since f(1)≠0f(1)\ne0, f(1)=1f(1)=1.

P(1,x)⇒f(f(x)+1)=f(x)+1P(1,x)\Rightarrow f(f(x)+1)=f(x)+1, and since f(x)+1f(x)+1 can take any value ≥1\ge1 we have f(x)=xf(x)=x for all x≥1x\ge1.

For 0<x<10<x<1 we have, for large enough yy, y>1y>1 and y2+yf(x)>1y^2+yf(x)>1 and xy>1xy>1 and so:

P(y,x)⇒y2+yf(x)=y2+xy⇒f(x)=xP(y,x)\Rightarrow y^2+yf(x)=y^2+xy\Rightarrow f(x)=x.

So whether x=0x=0, 0<x<10<x<1, or x≥1x\ge1 we have f(x)=xf(x)=x.

Now f(f(x)2)=x2f\left(f(x)^2\right)=x^2 becomes f(x)2=x2f(x)^2=x^2 and so f(x)∈{−x,x}f(x)\in\{-x,x\}.

If f(−k)=kf(-k)=k for some k>0k>0 then:

P(x,k)⇒f(f(x)2+kf(x))=x2+f(xk)P(x,k)\Rightarrow f\left(f(x)^2+kf(x)\right)=x^2+f(xk).

P(x,−k)⇒f(f(x)2+kf(x))=x2+f(−xk)P(x,-k)\Rightarrow f\left(f(x)^2+kf(x)\right)=x^2+f(-xk)

and so comparing, ff is even and we get the solution f(x)=∣x∣\boxed{f(x)=\lvert x\rvert} which indeed fits.

If there is no such kk, then f(x)=x\boxed{f(x)=x} for all xx.