#415

solved

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

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

for any reals x,yx,y.

Solution

Solution by jasperE3.


Claim: if x2+xf(y)∈f(R)x^2+xf(y)\in f(\mathbb R) for all x,yx,y then ff is surjective.

Proof. x=0x=0 gives 0∈f(R)0\in f(\mathbb R) while f(y)=0f(y)=0 gives [0,∞)⊆f(R)[0,\infty)\subseteq f(\mathbb R). Now for any x∈Rx\in\mathbb R we can choose a=−∣x∣−1a=-\lvert x\rvert-1 and b=−a+xa=(∣x∣+1)2−x∣x∣+1≥0b=-a+\frac xa=\frac{(\lvert x\rvert+1)^2-x}{\lvert x\rvert+1}\ge0, then x=a2+ab∈f(R)x=a^2+ab\in f(\mathbb R).

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

From the claim, equation becomes #398 with solutions f(x)=x\boxed{f(x)=x} and f(x)=−x\boxed{f(x)=-x} (which fits).