Solution by IcaRoNek0.
Let P(x,y) be the given assertion
f(f(x2)+xf(y))=x2+xf(y).
From P(0,y), we get
f(f(0))=0.
Let a=f(0). Then f(a)=0.
Now P(x,a) gives
f(f(x2))=x2.
Since x2 takes every nonnegative real value, we have
f(f(t))=t
for every t≥0. In particular, every nonnegative real number is in.
the range of f:
[0,∞)⊆f(R).
We now prove that f is surjective. Let r∈R.
If r≥1, then r−1≥0, so there is some y∈R such.
that
f(y)=r−1.
Using P(1,y), we obtain
f(f(1)+r−1)=1+r−1=r.
If r≤1, then 1−r≥0, so there is some y∈R such.
that
f(y)=1−r.
Using P(−1,y), we obtain
f(f(1)−(1−r))=1−(1−r)=r.
Therefore every real number belongs to the range of f, so f is
surjective.
Using surjectivity in P(1,y), the number f(y) may be any real.
number. Hence, for every u∈R,
f(f(1)+u)=1+u.
Let
z=f(1)+u.
Then u=z−f(1), and therefore
f(z)=1+z−f(1)=z+C,
where
C=1−f(1).
Thus
f(x)=x+C
for every real x.
In particular,
f(0)=C
and hence
f(f(0))=f(C)=2C.
But P(0,y) gave f(f(0))=0. Therefore
2C=0,
so C=0. Consequently,
f(x)=x
for every x∈R.
Finally, it’s easy to check that this function indeed satisfies the equation. Therefore the unique.
solution is
f(x)=xfor all x∈R.