To begin with, denote c=f(0) and d=f(1). From x=y=0 we get c=c2, from x=1 and y=0 we get d=d2, while from x=0 and y=1 we get f(d)=c2+1. Quick case check on c and d now leads to f(0)=0 and f(1)=1.
Now taking y=0 yields
f(x2)=f(x)2
for all x. From here f(t)≥0 for t≥0. Now suppose f(t)≥0 for some t<0 - then y=t and x=−tf(t) yields
0=f(x)2+t2≥t2>0,
contradiction - hence f(t)<0 for any t<0. Now from f(x2)=f(x)2 we get (by replacing x with −x) f(x)2=f(−x)2 and because of the sign constrains we deduce f(−x)=−f(x) for all x, i.e. f is odd.
It now suffices to determine f on R>0. The main equation is now
f(x2+yf(y))=f(x)2+y2=f(x2)+y2,
i.e.
f(t+yf(y))=f(t)+y2
for any t≥0 and y∈R. Since f(1)=1, we deduce
f(t+1)=f(t)+1,
so
f(t)=f(⌊t⌋)+f({t})≥f(⌊t⌋)=⌊t⌋
for any t≥0. We also get by induction
f(nyf(y))=ny2
for any positive integer n. Hence
ny2=f(nyf(y))≥⌊nyf(y)⌋>nyf(y)−1,
so y>f(y)−ny1 and setting n→∞ leads to f(y)≤y for all y>0. Now in f(yf(y))=y2 we deduce y2≤yf(y), i.e. f(y)≥y for all y>0. Therefore f(x)=x for all x>0, as well as f(0)=0, and since f is odd, we conclude f(x)=x, which indeed works.