#652

solved

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

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

for any reals x,yx,y.

Solution

Solution by benjaminchew13.


The solutions are

f(x)=xandf(x)=−x.\boxed{f(x)=x}\qquad\text{and}\qquad\boxed{f(x)=-x}.

The function is nonconstant. Choose aa with f(a)≠0f(a)\ne0. Then P(a,y)P(a,y) shows that ff is surjective, and comparing P(a,u)P(a,u) and P(a,v)P(a,v) shows that ff is injective.

From P(x,0)P(x,0) and P(−x,0)P(-x,0),

f(x)f(0)=f(−x)f(0).f(x)f(0)=f(-x)f(0).

If f(0)≠0f(0)\ne0, injectivity gives x=−xx=-x for all xx, impossible. Hence f(0)=0f(0)=0, and

f(f(x2))=x2.(1)f(f(x^2))=x^2. \tag{1}

Comparing P(x,−x)P(x,-x) and P(−x,x)P(-x,x) gives f(−x)=−f(x)f(-x)=-f(x), so ff is odd. Thus (1) implies

f(f(t))=tf(f(t))=t

for every real tt.

Now compare P(f(x),x)P(f(x),x) and P(x,f(x))P(x,f(x)). The right sides are both f(x)2+x2f(x)^2+x^2, so injectivity gives

f(f(x)2)=f(x2).f(f(x)^2)=f(x^2).

Applying injectivity once more yields

f(x)2=x2.(2)f(x)^2=x^2. \tag{2}

Squaring the original equation and using (2), we get

(f(x2)+f(x)f(y))2=(x2+yf(x))2.\bigl(f(x^2)+f(x)f(y)\bigr)^2=\bigl(x^2+yf(x)\bigr)^2.

After cancellation,

f(x2)f(x)f(y)=x2yf(x).f(x^2)f(x)f(y)=x^2yf(x).

For x≠0x\ne0, divide by f(x)f(x) and then put x=1x=1:

f(1)f(y)=y.f(1)f(y)=y.

Since f(1)=±1f(1)=\pm1, we get f(y)=yf(y)=y for all yy, or f(y)=−yf(y)=-y for all yy. Both functions work.