By the claim, f(x)2−x2 is constant for x=0. Since f(x)−x is eventually constant, we must have f(x)2−x2=0 for all x=0. To see this, we can let f(x)2−x2=a and f(x)−x=b for x>c and perform some simple algebra:
(x+b)2−x2=a⇒2bx+b2=a
for all x>c which means b=0 and a=b2 as desired.
Equation reduces to f(x2+f(xy))=x2+f(xy) so by #317 f has one of the following forms:
f(x)=xf(x)=⎩⎨⎧xag(x)if x>cif x=0if 0=x≤c
where c=inff>0 and a∈(c,∞), and function g:(−∞,c]∖{0}→[c,∞)
f(x)=⎩⎨⎧xcg(x)if x≥cif x=0if 0=x<c
where c=inff>0 and function g:(−∞,c)∖{0}→[c,∞)
f(x)={xg(x)if x>cif x≤c
where c=inff≤0 and function g:(−∞,c]→[c,∞).
Narrowing this down with f(x)2=x2 for all x=0 we have c≤0, so it just remains to consider the last solution set f(x)={xg(x)if x>cif x≤c.
Recall that c was defined as c=inff, so by definition f(0)≥c. If f(0)=0 then f(0)2+f(0)>f(0)≥c so:
If f(x)=x for some x≤c then using the fact that f(x)≥c for all x we must have x=c. Therefore f(x)=x for all x<c, and we have the solution sets f(x)=∣x∣ in the case c=0 and: