#352

solved

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

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

for any reals x,yx,y.

Solution

Solution by jasperE3.


f(xf(x)+f(y)2)=f(x)2+yf(y).f\left(xf(x)+f(y)^2\right)=f(x)^2+yf(y).

Claim: if f(f(k))=kf(f(k))=k for some kk then f(k)2=k2f(k)^2=k^2.

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

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

Comparing, we have the result.

Now note that:

f(f(xf(x)+f(y)2))=P(x,y)f(f(x)2+yf(y))=P(y,x)xf(x)+f(y)2,f\left(f\left(xf(x)+f(y)^2\right)\right)\overset{P(x,y)}=f\left(f(x)^2+yf(y)\right)\overset{P(y,x)}=xf(x)+f(y)^2,

so we have f(xf(x)+y2)2=(xf(x)+f(y)2)2f\left(xf(x)+y^2\right)^2=\left(xf(x)+f(y)^2\right)^2. Expanding with P(x,y)P(x,y), this is:

(f(x)2+yf(y))2=(xf(x)+f(y)2)2.\left(f(x)^2+yf(y)\right)^2=\left(xf(x)+f(y)^2\right)^2.

Now

P(0,0)⇒f(f(0)2)=f(0)2P(0,0)\Rightarrow f\left(f(0)^2\right)=f(0)^2 so we can plug in x=f(0)2x=f(0)^2, y=0y=0 to the above equation to get f(0)8=(f(0)4+f(0)2)2f(0)^8=\left(f(0)^4+f(0)^2\right)^2 with only solution f(0)=0f(0)=0.

Now we can set just y=0y=0, it implies that for all xx, f(x)4=x2f(x)2f(x)^4=x^2f(x)^2 and so f(x)∈{0,−x,x}f(x)\in\{0,-x,x\}.

Suppose f(a)=−af(a)=-a and f(b)=bf(b)=b for some a,b≠0a,b\ne0.

P(a,b)⇒f(−a2+b2)=a2+b2P(a,b)\Rightarrow f\left(-a^2+b^2\right)=a^2+b^2.

If f(−a2+b2)=0f\left(-a^2+b^2\right)=0 then a2+b2=0a^2+b^2=0, impossible for a,b≠0a,b\ne0.

If f(−a2+b2)=−a2+b2f\left(-a^2+b^2\right)=-a^2+b^2 then 2a2=02a^2=0, impossible for a≠0a\ne0.

If f(−a2+b2)=a2−b2f\left(-a^2+b^2\right)=a^2-b^2 then 2b2=02b^2=0, impossible for b≠0b\ne0.

So this scenario is impossible, and aa and bb cannot both exist at once.

If aa exists, then f(x)≠xf(x)\ne x for all x≠0x\ne0, so f(x)∈{0,−x}f(x)\in\{0,-x\} for all xx. Let S={x∈R∣f(x)=−x}S=\{x\in\mathbb R\mid f(x)=-x\}, then if a,b∈Sa,b\in S we have:

P(b,a)⇒f(a2−b2)=−a2+b2P(b,a)\Rightarrow f\left(a^2-b^2\right)=-a^2+b^2, so a2−b2∈Sa^2-b^2\in S.

Thus, our solutions are of the form:

Let {0}⊆S⊆R\{0\}\subseteq S\subseteq\mathbb R with the property that if a,b∈Sa,b\in S then a2−b2∈Sa^2-b^2\in S, then:

f(x)={−xif x∈S0if x∉S.\boxed{f(x)=\begin{cases}-x&\text{if }x\in S\\0&\text{if }x\notin S\end{cases}}.

We can check that these are solutions by cases on x∈Sx\in S and subcases on y∈Sy\in S in P(x,y)P(x,y).

If bb exists, then f(x)≠−xf(x)\ne-x for all x≠0x\ne0, so f(x)∈{0,x}f(x)\in\{0,x\} for all xx. Let S={x∈R∣f(x)=x}S=\{x\in\mathbb R\mid f(x)=x\}, then if a,b∈Sa,b\in S we have:

P(a,b)⇒f(a2+b2)=a2+b2P(a,b)\Rightarrow f\left(a^2+b^2\right)=a^2+b^2, so a2+b2∈Sa^2+b^2\in S.

Thus, our solutions are of the form:

Let {0}⊆S⊆R\{0\}\subseteq S\subseteq\mathbb R with the property that if a,b∈Sa,b\in S then a2+b2∈Sa^2+b^2\in S, then:

f(x)={xif x∈S0if x∉S.\boxed{f(x)=\begin{cases}x&\text{if }x\in S\\0&\text{if }x\notin S\end{cases}}.

We can check that these are solutions by cases on x∈Sx\in S and subcases on y∈Sy\in S in P(x,y)P(x,y).