#277

solved

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

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

for any reals x,yx,y.

Solution

Solution by jasperE3.


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

Solutions are f(x)=∣x∣\boxed{f(x)=\lvert x\rvert} and f(x)=x\boxed{f(x)=x}, both can be checked to satisfy the equation.

P(x,0)⇒f(x2+f(x)f(0))=x2+f(0)P(x,0)\Rightarrow f\left(x^2+f(x)f(0)\right)=x^2+f(0), so [f(0),∞)⊆f(R)[f(0),\infty)\subseteq f(\mathbb R).

If f(0)<0f(0)<0, this implies that there is some kk with f(k)=0f(k)=0, and such a kk cannot be 00 itself since f(0)≠0f(0)\ne0. So:

P(k,x)⇒f(k2)=k2+f(kx)P(k,x)\Rightarrow f\left(k^2\right)=k^2+f(kx), so ff is constant, but there are no constant solutions.

Therefore f(0)≥0f(0)\ge0.

P(0,x)⇒f(f(0)f(x))=f(0)P(0,x)\Rightarrow f(f(0)f(x))=f(0), so f(xf(0))=f(0)f(xf(0))=f(0) for all x≥f(0)x\ge f(0).

For x≥0x\ge0 we have:

P(xf(0),0)⇒f(x2f(0)2+f(0)2)=x2f(0)2+f(0)⇒f(0)=x2f(0)2+f(0)P(xf(0),0)\Rightarrow f\left(x^2f(0)^2+f(0)^2\right)=x^2f(0)^2+f(0)\Rightarrow f(0)=x^2f(0)^2+f(0) (since x2f(0)+f(0)≥f(0)x^2f(0)+f(0)\ge f(0)), and since this is true for all such xx we must have f(0)=0f(0)=0.

P(x,0)⇒f(x2)=x2P(x,0)\Rightarrow f\left(x^2\right)=x^2, so f(x)=xf(x)=x for all x≥0x\ge0.

P(x,x)⇒f(x2+f(x)2)=x2+f(x2)⇒x2+f(x)2=2x2P(x,x)\Rightarrow f\left(x^2+f(x)^2\right)=x^2+f\left(x^2\right)\Rightarrow x^2+f(x)^2=2x^2, so f(x)∈{−x,x}f(x)\in\{-x,x\} for each xx.

It remains to consider whether f(x)=−xf(x)=-x or f(x)=xf(x)=x for x<0x<0.

If f(−k)=kf(-k)=k for some k>0k>0, then recall f(k)=kf(k)=k.

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

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

Comparing, we have f(xk)=f(−xk)f(xk)=f(-xk) so (since k≠0k\ne0) ff is even, our solution in this case is f(x)=∣x∣f(x)=\lvert x\rvert.

Otherwise, f(−x)=−xf(-x)=-x for all x>0x>0 and our solution is f(x)=xf(x)=x.