Set x=y=0, we obtain 2f(0)3+f(0)2=f(0)4 so f(0)∈{−2+1,2+1,0}.
Set x=y=1 and use f(0)2=f(1)2−f(1), we obtain f(1)4−2f(1)2+f(1)=0 so (f(1)2−f(1))3−4(f(1)2−f(1))2−(f(1)2−f(1))=0 and so f(0)∈{0,2+5,−2+5}.
Comparing, we obtain f(0)=0. Then f(x)2=xf(x), so f(x)∈{0,x} for each x.
P(x,0)⇒f(f(x2))=xf(x).
Next thing to prove is f(x2)=f(x)2. Suppose we have some x for which this is not true, clearly x=0.
If f(x)=0 then f(x2)=x2 so P(x,0) gives x2=0, contradiction.
If f(x)=x then f(x2)=0 so P(x,0) gives 0=x2, contradiction.
Then it follows that f(x2)=xf(x)=−xf(−x) so f is odd.
Final thing to prove is f(f(x)+f(y))=f(x)+f(y). Original equation becomes:
f(f(x2)+f(y2))=f(x2)+f(y2)
so f(f(x)+f(y))=f(x)+f(y) for all x,y≥0.
We’ve shown that f(x2)=f(x)2=xf(x) for all x and f(f(x)+f(y))=f(x)+f(y) for x,y≥0 as desired.
Let S⊆[0,∞) such that:
0∈S.
if a,b∈S then a+b∈S.
if x∈S then x2∈S and x∈S.
Then the general solution is f(x)={0xif ∣x∣∈/Sif ∣x∣∈S.
We have pathological solutions such as when S is the set of constructible numbers - the set of 0 and all real numbers r such that you can construct a line segment of length ∣r∣ with a straightedge, compass, and segment of length 1.
and a simpler one if S is the set of algebraic numbers.