#338

solved

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

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

for any reals x,yx,y.

Solution

Solution by jasperE3.


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

The obvious thing to do is to swap x,yx,y, it divulges that xf(x)+f(y)2=yf(y)+f(x)2xf(x)+f(y)^2=yf(y)+f(x)^2 so f(x)2=xf(x)+f(0)2f(x)^2=xf(x)+f(0)^2. Also, P(0,0)⇒f(0)2=f(0)P(0,0)\Rightarrow f(0)^2=f(0), so we may write f(x)2=xf(x)+f(0)f(x)^2=xf(x)+f(0) instead.

Now square both sides of P(x,y)P(x,y), we get:

x2f(x)2+xyf(x)f(y)+xf(x)f(y)2+yf(y)3+f(0)=(xf(x)+yf(y))(xf(x)+f(y)2)+f(0)=(xf(x)+yf(y))f(xf(x)+yf(y))+f(0)=f(xf(x)+yf(y))2=(xf(x)+f(y)2)2=x2f(x)2+2xf(x)f(y)2+f(y)4\begin{align*} x^2f(x)^2+xyf(x)f(y)+xf(x)f(y)^2+yf(y)^3+f(0)&=(xf(x)+yf(y))\left(xf(x)+f(y)^2\right)+f(0)\\ &=(xf(x)+yf(y))f(xf(x)+yf(y))+f(0)\\ &=f(xf(x)+yf(y))^2\\ &=\left(xf(x)+f(y)^2\right)^2\\ &=x^2f(x)^2+2xf(x)f(y)^2+f(y)^4 \end{align*}

which, after some simplification, is:

xyf(x)f(y)+yf(y)3+f(0)=xf(x)f(y)2+f(y)4.xyf(x)f(y)+yf(y)^3+f(0)=xf(x)f(y)^2+f(y)^4.

Setting x=y=0x=y=0 gives f(0)4=f(0)f(0)^4=f(0), so f(0)∈{0,1}f(0)\in\{0,1\}. If f(0)=1f(0)=1, setting just y=0y=0 gives xf(x)=0xf(x)=0. In particular, f(1)=0f(1)=0, but then P(0,1)⇒1=0P(0,1)\Rightarrow1=0, contradiction. Sof(0)=0f(0)=0, and setting x=0x=0, we have f(y)4=yf(y)3f(y)^4=yf(y)^3 so f(x)∈{0,x}f(x)\in\{0,x\} for each xx. Finally, note that if f(a)=af(a)=a and f(b)=bf(b)=b then P(a,b)⇒f(a2+b2)=a2+b2P(a,b)\Rightarrow f\left(a^2+b^2\right)=a^2+b^2, so our solutions are of the form 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}} where {0}⊆S⊆R\{0\}\subseteq S\subseteq\mathbb R satisfies the closure property that if a,b∈Sa,b\in S then a2+b2∈Sa^2+b^2\in S. To see that all such functions satisfy the equation, we just takes cases on whether xx or yy are in SS.

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

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

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

If x,y∉Sx,y\notin S, then P(x,y)⇔f(0)=0P(x,y)\Leftrightarrow f(0)=0, true because 0∈S0\in S.