We claim that the complete solution set consists of the functions f(x)=kx for all x∈R, where k∈R, together with the additional family f(0)=k and f(x)=kx for every x=0, where k>0. The first family is immediate, since f(x2+f(y2))=k(x2+ky2)=kx2+k2y2=xf(x)+f(y)2. For the second family, let k>0 and define f(0)=k and f(x)=kx for x=0. If x,y=0, then x2+f(y2)=x2+ky2>0, so f(x2+f(y2))=k(x2+ky2)=kx2+k2y2=xf(x)+f(y)2. If y=0, then x2+k>0, so f(x2+k)=k(x2+k)=kx2+k2=xf(x)+f(0)2. If x=0 and y=0, then f(y2)=ky2>0, so f(f(y2))=f(ky2)=k2y2=f(y)2. Finally, at (0,0) both sides equal k2. Thus all claimed functions are indeed solutions. Let P(x,y) denote the assertion f(x2+f(y2))=xf(x)+f(y)2 for all x,y∈R, and put c=f(0).
Lemma 1. For every x=0, f(−x)=−f(x).
Proof. Comparing P(x,y) and P(−x,y) gives xf(x)+f(y)2=−xf(−x)+f(y)2. Hence xf(x)=−xf(−x), and since x=0, f(−x)=−f(x). □
Lemma 2. We have f(c)=c2, f(x2+c)=xf(x)+c2 for every x∈R, and f(f(y2))=f(y)2 for every y∈R.
Proof. Substituting (0,0), (x,0), and (0,y) into P gives, respectively, f(c)=c2, f(x2+c)=xf(x)+c2, and f(f(y2))=f(y)2. □
Lemma 3. We have c≥0.
Proof. Suppose that c<0, and put a=−c>0, so that c=−a2. By Lemma 2, f(c)=c2=a4. Since c=−a2=0, Lemma 1 gives f(−c)=−f(c)=−a4. As −c=a2, we obtain f(a2)=−a4. On the other hand, Lemma 2 with x=a gives c=af(a)+c2, so f(a)=ac−c2=−a(1+a2). Now apply P(a2,a). Since (a2)2+f(a2)=a4−a4=0, the left-hand side equals f(0)=c=−a2. The right-hand side equals a2f(a2)+f(a)2=−a6+a2(1+a2)2=a2+2a4>0, a contradiction. Hence c≥0. The next idea is to replace the original functional equation by a group action on the tail of the graph. This is the main structural device of the proof. We shall regard a vector (h,k) as encoding the statement that translating the input by h translates the corresponding tail of the graph vertically by k. □
Definition. A pair (h,k)∈R2 is called a tail-translation vector if there exists R∈R such that f(t+h)=f(t)+k for every t≥R. Let T denote the set of all tail-translation vectors.
Lemma 4. The set T is an additive subgroup of R2, and for each fixed h∈R there is at most one k∈R such that (h,k)∈T.
Proof. Suppose (h1,k1),(h2,k2)∈T. Choose R sufficiently large that all applications below are valid. Then f(t+h1+h2)=f(t+h1)+k2=f(t)+k1+k2, so (h1+h2,k1+k2)∈T. If (h,k)∈T, then from f(t+h)=f(t)+k, after replacing t by t−h and taking t sufficiently large, we obtain f(t−h)=f(t)−k, so (−h,−k)∈T. Finally, if (h,k1) and (h,k2) both belong to T, then for all sufficiently large t, f(t)+k1=f(t+h)=f(t)+k2, and therefore k1=k2.
Thus the projection of T onto the first coordinate carries an additive “translation cocycle”. More precisely, if H={h∈R:∃k with (h,k)∈T}, then the uniqueness statement allows us to define an additive map λ:H→R by (h,λ(h))∈T. The functional equation will now force this abstract additive map to determine the actual slope of f. □
Lemma 5. For every y∈R, the vector (f(y2)−c,f(y)2−c2) belongs to T.
Proof. Subtract P(x,0) from P(x,y). By Lemma 2, f(x2+f(y2))−f(x2+c)=f(y)2−c2. Put t=x2+c. Since x2 ranges over [0,∞), t ranges over [c,∞), and hence f(t+f(y2)−c)=f(t)+f(y)2−c2 for every t≥c. Therefore (f(y2)−c,f(y)2−c2)∈T. □
Lemma 6. If f≡0, then T contains some vector (h,k) with h>0 and k=0.
Proof. Assume for the sake of contradiction that f(y)2=c2 for every y∈R. If c=0, this immediately gives f≡0, contrary to hypothesis. Hence c=0, and ∣f(y)∣=∣c∣ for every y. Lemma 2 then gives ∣f(x2+c)∣=∣c∣, whereas f(x2+c)=xf(x)+c2. Therefore ∣c∣=∣xf(x)+c2∣≥x∣c∣−c2. Choosing x>∣c∣+1 makes the right-hand side strictly larger than ∣c∣, a contradiction. Hence there exists y such that f(y)2−c2=0. By Lemma 5, (h0,k0)=(f(y2)−c,f(y)2−c2)∈T with k0=0. Its first coordinate cannot be zero, since otherwise (0,k0)∈T would imply f(t)=f(t)+k0 for every sufficiently large t, impossible. Thus h0=0. If h0>0, take (h,k)=(h0,k0); if h0<0, take its negative. Then (h,k)∈T, h>0, and k=0. □
Lemma 7. Suppose (h,k)∈T with h>0 and k=0. Then there exist R0>0 and r=kh such that f(x)=rx for every x≥R0.
Proof. Choose R such that f(t+h)=f(t)+k for every t≥R. Choose R0>0 sufficiently large that x2≥R and x2+c≥R whenever x≥R0. Fix x≥R0, and define un=x2+nh for every integer n≥0. Since x2+c≥R, repeated application of the translation relation gives f(x2+c+nh)=f(x2+c)+nk for every n≥0. Since un2=x2+nh, Lemma 2 gives f(un2+c)=unf(un)+c2. Consequently unf(un)=xf(x)+nk. Put A=xf(x). Then unf(un)=A+nk, and because un2=x2+nh, we obtain f(un)2=x2+nh(A+nk)2. For each n≥0, Lemma 5 gives a tail-translation vector Vn=(f(un2)−c,f(un)2−c2). Since un+12−un2=h and un2≥x2≥R, the defining relation for (h,k) gives f(un+12)−f(un2)=k. Hence Vn+1−Vn=(k,f(un+1)2−f(un)2)∈T.
For every n≥1, both (k,f(un)2−f(un−1)2) and (k,f(un+1)2−f(un)2) belong to T. They have the same first coordinate k, so Lemma 4 forces their second coordinates to be equal. Thus the sequence (f(un)2)n≥0 has constant first difference. Therefore there exist B,L∈R such that f(un)2=B+nL for every n≥0. Combining the two formulas for f(un)2 gives x2+nh(A+nk)2=B+nL for every n≥0. Equivalently, the polynomial R(z)=(A+kz)2−(x2+hz)(B+Lz) vanishes at every nonnegative integer. At this point the discrete orbit can be compressed into a complex-analytic statement. Define H(w)=w2R(w1) for w=0. Since R has degree at most 2, H extends holomorphically to w=0. For every positive integer n, we have H(n1)=n−2R(n)=0, and n1→0. By the identity theorem, H is identically zero. Thus R is the zero polynomial.
Comparing coefficients in (A+kz)2=(x2+hz)(B+Lz) gives A2=x2B, 2Ak=x2L+hB, and k2=hL. Substituting B=A2/x2 and L=k2/h into the middle identity yields 2Ak=hx2k2+x2hA2. Multiplying by hx2 and completing the square gives (x2k−hA)2=0. Hence x2k=hA=hxf(x). Since x>0, we obtain f(x)=hkx. Therefore f(x)=rx for every x≥R0. □
Lemma 8. If f≡0, then there exists r=0 and R>0 such that f(x)=rx for every x≥R.
Proof. By Lemma 6, choose (h,k)∈T with h>0 and k=0. Lemma 7 gives f(x)=hkx for every sufficiently large positive x. Setting r=hk gives r=0.
Lemma 9. For every nonzero solution, the slope r of the positive tail satisfies rc=c2.
Proof. Let R>0 be such that f(x)=rx for every x≥R. Choose x sufficiently large that x≥R and x2+c≥R. By Lemma 2, f(x2+c)=xf(x)+c2. Since both x and x2+c lie in the linear tail, this becomes r(x2+c)=rx2+c2, and hence rc=c2. Since c≥0 by Lemma 3, the last identity yields c=0 or, if c>0, r=c. □
Lemma 10. If c=0, then f(x)=rx for every x∈R for some r∈R.
Proof. If f≡0, take r=0. Otherwise Lemma 8 gives a nonzero r and a positive linear tail. Fix any x=0. Choose y>0 sufficiently large that y and y2 belong to the positive linear tail. Then f(y)=ry and f(y2)=ry2. Set z=x2+ry2. If r>0, then z→+∞ as y→+∞, so for sufficiently large y the positive linear-tail formula gives f(z)=rz. If r<0, then z→−∞, so −z→+∞ and the positive linear-tail formula gives f(−z)=−rz. Since z=0 for sufficiently large y, Lemma 1 gives f(z)=−f(−z)=rz. Applying P(x,y) now gives r(x2+ry2)=xf(x)+r2y2. Canceling r2y2 yields xf(x)=rx2, and since x=0, f(x)=rx. Together with f(0)=c=0, this proves the claim. □
Lemma 11. If c>0, then f(0)=c and f(x)=cx for every x=0.
Proof. By Lemma 9, the positive-tail slope satisfies r=c. Hence there exists R>0 such that f(t)=ct for every t≥R. Fix x=0. Choose y>0 sufficiently large that y,y2≥R and z=x2+cy2≥R. This is possible because c>0 and therefore z→+∞ as y→+∞. Then f(y)=cy, f(y2)=cy2, and f(z)=cz. Applying P(x,y) gives c(x2+cy2)=xf(x)+c2y2, so cx2=xf(x). Since x=0, f(x)=cx. □
Thence, by Lemma 3, c=f(0)≥0. If c=0, Lemma 10 gives f(x)=rx for some r∈R. If c>0, Lemma 11 gives f(0)=c and f(x)=cx for every x=0. Therefore the complete solution set is