Solution by maromex.
Let P(x,y) denote the given assertion f(x2+y2)=f(x)2+f(y2).
P(0,0):f(0)=0.
P(x,0):f(x2)=f(x)2.
This means f(x2+y2)=f(x2)+f(y2), so f(x+y)=f(x)+f(y) for all x,y≥0. Note that f(x2)=f(x)2 implies f(x)≥0 for all x≥0. As f is additive and bounded below on nonnegative inputs, f(x)=cx for all x≥0 for some real constant c≥0. As f(x2)=f(x)2, we have cx2=c2x2 for all x≥0. So c∈{0,1}.
Case 1: c=0
The given equation becomes 0=f(x)2. So f(x)=0 for all real x. This function works.
Case 2: c=1
The given equation becomes x2+y2=f(x)2+y2. This (with f(x)=x for all x≥0) is equivalent to f(x)∈{x,−x} for all x<0. Therefore, we have
f(x)={xxg(x)x≥0x<0
where g:(−∞,0)→{−1,1} is an arbitrary function. These functions work.
Combining cases, we have f(x)=0 for all real x, or $f(x) =
{xxg(x)x≥0x<0.
whereg:(-\infty,0) \to {-1,1}$ is an arbitrary function.