#525

solved

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

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

for any reals x,yx,y.

Solution

Solution by jasperE3.


Let P(x,y)P(x,y) be the assertion

f(f(x)2+yf(x))=x2+f(xy).f(f(x)^2+yf(x))=x^2+f(xy).

First, f(0)=0f(0)=0. If a=f(0)≠0a=f(0)\ne 0, then P(0,y)P(0,y) says f(a2+ay)=af(a^2+ay)=a for every yy, so ff is constant, which is impossible in the original equation.

From P(x,0)P(x,0),

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

so f(k)=0f(k)=0 implies k=0k=0. Also, P(x,−f(x))P(x,-f(x)) gives

f(−xf(x))=−x2.f(-xf(x))=-x^2.

These two identities show that ff attains every nonnegative and every nonpositive real value, so ff is surjective.

Using P(x,1)P(x,1) and P(x,0)P(x,0),

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

Since ff is surjective, for every real tt this gives

f(t2+t)=f(t2)+t.f(t^2+t)=f(t^2)+t.

Taking t=−1t=-1 yields f(1)=1f(1)=1. Hence P(1,y)P(1,y) gives

f(y+1)=f(y)+1f(y+1)=f(y)+1

for all real yy.

Now fix x≠0x\ne 0. Since f(x)≠0f(x)\ne 0, every real tt can be written as t=f(x)2+yf(x)t=f(x)^2+yf(x). Applying P(x,y+1/x)P(x,y+1/x) and using f(u+1)=f(u)+1f(u+1)=f(u)+1 gives

f(t+f(x)x)=f(t)+1.f\left(t+\frac{f(x)}{x}\right)=f(t)+1.

At t=0t=0, this says

f(f(x)x)=1.f\left(\frac{f(x)}{x}\right)=1.

If f(u)=1f(u)=1, then P(u,0)P(u,0) gives f(1)=u2f(1)=u^2, so u=±1u=\pm 1. Therefore f(x)=xf(x)=x or f(x)=−xf(x)=-x for each x≠0x\ne 0.

If f(x)=−xf(x)=-x for some nonzero xx, then the previous translation identity gives f(t−1)=f(t)+1f(t-1)=f(t)+1 for all tt, contradicting f(t)=f(t−1)+1f(t)=f(t-1)+1. Hence f(x)=xf(x)=x for every xx, and the unique solution is

f(x)=x for all x.\boxed{f(x)=x\text{ for all }x}.