#356

solved

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

f(xf(x)+f(y)2)=f(x2)+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(x2)+yf(y).f\left(xf(x)+f(y)^2\right)=f(x^2)+yf(y).

If f(a)=f(b)≠0f(a)=f(b)\ne0:

P(x,a)⇒f(xf(x)+f(a)2)=f(x2)+af(a)P(x,a)\Rightarrow f\left(xf(x)+f(a)^2\right)=f\left(x^2\right)+af(a).

P(x,b)⇒f(xf(x)+f(a)2)=f(x2)+bf(a)P(x,b)\Rightarrow f\left(xf(x)+f(a)^2\right)=f\left(x^2\right)+bf(a), so comparing, a=ba=b.

If f(0)≠0f(0)\ne0 we can use this on:

P(0,0)⇒f(f(0)2)=f(0)P(0,0)\Rightarrow f\left(f(0)^2\right)=f(0), it implies f(0)2=0f(0)^2=0, contradiction.

Therefore f(0)=0f(0)=0.

Claim: f(x2)∈{0,x2}f\left(x^2\right)\in\left\{0,x^2\right\} for all xx.

Suppose f(u2)≠0f\left(u^2\right)\ne0 for some uu.

P(u,0)⇒f(uf(u))=f(u2)P(u,0)\Rightarrow f(uf(u))=f\left(u^2\right), using our previously mentioned partial injectivity property, we have that if f(x2)≠0f\left(x^2\right)\ne0 then uf(u)=u2uf(u)=u^2. Moreover, since f(u2)≠0f\left(u^2\right)\ne0 we have u≠0u\ne0, so f(u)=uf(u)=u.

P(0,u)⇒f(u2)=u2P(0,u)\Rightarrow f\left(u^2\right)=u^2, the claim is proven.

P(0,x)⇒f(f(x)2)=xf(x)P(0,x)\Rightarrow f\left(f(x)^2\right)=xf(x), we can apply the above to this equation to get xf(x)∈{0,f(x)2}xf(x)\in\left\{0,f(x)^2\right\}, so for all xx we have f(x)∈{0,x}f(x)\in\{0,x\}.

Finally, note the following two properties: first, if f(a)=af(a)=a and f(b)=bf(b)=b then

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

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

and secondly, if f(a)=0f(a)=0 then:

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

The contrapositive of the second statement is that if a≠0a\ne0 and f(a2)=a2f\left(a^2\right)=a^2 then f(a)=af(a)=a, but f(a2)=a2⇒f(a)=af\left(a^2\right)=a^2\Rightarrow f(a)=a is also true for a=0a=0. Therefore our solutions look like the following:

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, and if a2∈Sa^2\in S then a∈Sa\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}}.

To see that these work, take cases.

If x,y∈Sx,y\in S, then P(x,y)⇔f(x2+y2)=f(x2)+y2P(x,y)\Leftrightarrow f\left(x^2+y^2\right)=f\left(x^2\right)+y^2, true since x2+02∈Sx^2+0^2\in S and x2+y2∈Sx^2+y^2\in S.

If x∈Sx\in S and y∉Sy\notin S, then P(x,y)⇔f(x2)=f(x2)P(x,y)\Leftrightarrow f\left(x^2\right)=f\left(x^2\right).

If x∉Sx\notin S and y∈Sy\in S, then P(x,y)⇔f(y2)=f(x2)+y2P(x,y)\Leftrightarrow f\left(y^2\right)=f\left(x^2\right)+y^2, true since x2∉Sx^2\notin S (x2∈Sx^2\in S would imply x∈Sx\in S) and 02+y2∈S0^2+y^2\in S.

If x,y∉Sx,y\notin S, then P(x,y)⇔f(0)=f(x2)P(x,y)\Leftrightarrow f(0)=f\left(x^2\right), true since 0∈S0\in S and x2∉Sx^2\notin S as before.

There exist non-trivial examples of SS, like the algebraic numbers, the formulation can be slightly simplified to be about additive closure and closure under square roots (with some extra work done).