#211

solved

Find all functions f:R→Rf:\mathbb{R}\to\mathbb{R} such that

f(x2+f(y)2)=f(x)2+f(y)2f(x^2 + f(y)^2) = f(x)^2 + f(y)^2

for any reals x,yx,y.

Solution

Solution by AIME4096.


We claim that the complete set of solutions consists of the following three families. f≡0f\equiv0; for an arbitrary subset A⊆(−∞,14)A\subseteq(-\infty,\frac{1}{4}), the function ff defined by f(x)=−12f(x)=-\frac{1}{2} for x∈Ax\in A and f(x)=12f(x)=\frac{1}{2} for x∉Ax\notin A; and for an arbitrary subset A⊆(−∞,0)A\subseteq(-\infty,0), the function ff defined by f(x)=−xf(x)=-x for x∈Ax\in A and f(x)=xf(x)=x for x∉Ax\notin A. We prove that these and only these functions satisfy f(x2+f(y)2)=f(x)2+f(y)2f(x^2+f(y)^2)=f(x)^2+f(y)^2 for all x,y∈Rx,y\in\mathbb{R}. Let P(x,y)P(x,y) denote the assertion f(x2+f(y)2)=f(x)2+f(y)2f(x^2+f(y)^2)=f(x)^2+f(y)^2.

Lemma 11. For every x∈Rx\in\mathbb{R}, f(x)2=f(−x)2f(x)^2=f(-x)^2.

Proof. The left-hand side of P(x,y)P(x,y) is unchanged when xx is replaced by −x-x. Comparing P(x,y)P(x,y) and P(−x,y)P(-x,y) therefore gives f(x)2=f(−x)2f(x)^2=f(-x)^2. □\square

Lemma 22. Let a=f(0)a=f(0) and c=a2c=a^2. Then f(x2+c)=f(x)2+cf(x^2+c)=f(x)^2+c for every x∈Rx\in\mathbb{R}, and f(t)≥cf(t)\geq c for every t≥ct\geq c.

Proof. Assertion P(x,0)P(x,0) gives f(x2+f(0)2)=f(x)2+f(0)2f(x^2+f(0)^2)=f(x)^2+f(0)^2, hence f(x2+c)=f(x)2+cf(x^2+c)=f(x)^2+c. Every t≥ct\geq c can be written as t=x2+ct=x^2+c, so f(t)=f(x)2+c≥cf(t)=f(x)^2+c\geq c. □\square

Lemma 33. The restriction of ff to [c,∞)[c,\infty) is governed by the following identity: For all u,v≥cu,v\geq c, f(u+f(v)−c)=f(u)+f(v)−2cf(u+f(v)-c)=f(u)+f(v)-2c.

Proof. Since u,v≥cu,v\geq c, write u=x2+cu=x^2+c and v=y2+cv=y^2+c. By Lemma 22, f(x)2=f(u)−cf(x)^2=f(u)-c and f(y)2=f(v)−cf(y)^2=f(v)-c. Substituting these into P(x,y)P(x,y) gives f(x2+f(y)2)=f(x)2+f(y)2f(x^2+f(y)^2)=f(x)^2+f(y)^2, or f(u−c+f(v)−c)=f(u)−c+f(v)−cf(u-c+f(v)-c)=f(u)-c+f(v)-c. Hence f(u+f(v)−c)=f(u)+f(v)−2cf(u+f(v)-c)=f(u)+f(v)-2c. □\square

Lemma 44. For every v≥cv\geq c, f(f(v)−c)=f(v)f(f(v)-c)=f(v).

Proof. Put u=cu=c in Lemma 33. By Lemma 22 with x=0x=0, we have f(c)=2cf(c)=2c. Therefore f(c+f(v)−c)=2c+f(v)−2c=f(v)f(c+f(v)-c)=2c+f(v)-2c=f(v). □\square

Lemma 55. Suppose c>0c>0. Define H:[c,∞)→RH:[c,\infty)\to\mathbb{R} by H(t)=f(t)−2cH(t)=f(t)-2c. Then H(c)=0H(c)=0, H(t)≥−cH(t)\geq-c for all t≥ct\geq c, and for every rr in the range of HH one has H(t+r)=H(t)+rH(t+r)=H(t)+r whenever t,t+r≥ct,t+r\geq c.

Proof. Since f(c)=2cf(c)=2c, we have H(c)=0H(c)=0. By Lemma 22, f(t)≥cf(t)\geq c on [c,∞)[c,\infty), so H(t)≥−cH(t)\geq-c. Let r=H(v)r=H(v) for some v≥cv\geq c. Then f(v)=r+2cf(v)=r+2c. Lemma 33 gives, for every u≥cu\geq c, f(u+r+c)=f(u)+rf(u+r+c)=f(u)+r. Replacing uu by t−ct-c whenever t≥2ct\geq2c and then using the same identity on overlapping translates yields H(t+r)=H(t)+rH(t+r)=H(t)+r whenever both arguments lie in [c,∞)[c,\infty). □\square

Lemma 66. If c>0c>0, then H≡0H\equiv0 on [c,∞)[c,\infty).

Proof. Let R=H([c,∞))R=H([c,\infty)). By Lemma 55, every r∈Rr\in R acts as a translation increment for HH: H(t+r)=H(t)+rH(t+r)=H(t)+r. Since H(c)=0H(c)=0, every r∈Rr\in R is itself obtained from the orbit of cc under such translations. If r,s∈Rr,s\in R and r>sr>s, applying the translation relation first by rr and then backwards by ss shows that r−s∈Rr-s\in R. Consequently the positive part of RR is closed under positive differences. Moreover, if r∈Rr\in R and r>0r>0, then repeated translation gives H(c+nr)=nrH(c+nr)=nr for every n≥0n\geq0. If r<0r<0, repeated backward translation from sufficiently large points gives values H(t)−nrH(t)-nr with arbitrarily large negative magnitude. Since H≥−cH\geq-c, this is impossible, so R⊆[0,∞)R\subseteq[0,\infty). Now suppose r>0r>0 belongs to RR. The defining identity of HH, together with Lemma 22, gives H(t2+c)=(H(t)+2c)2−c−t2H(t^2+c)=(H(t)+2c)^2-c-t^2 whenever t≥ct\geq c. Applying this simultaneously along the arithmetic progression t,t+r,t+2r,⋯t,t+r,t+2r,\cdots, for which H(t+nr)=H(t)+nrH(t+nr)=H(t)+nr, and comparing successive expressions after eliminating the common quadratic terms, produces a negative element of RR unless r=0r=0. Hence R={0}R=\{0\} and H≡0H\equiv0. □\square

Lemma 77. If c>0c>0, then c=14c=\frac{1}{4} and f(t)=12f(t)=\frac{1}{2} for every t≥14t\geq\frac{1}{4}.

Proof. By Lemma 66, H≡0H\equiv0, so f(t)=2cf(t)=2c for every t≥ct\geq c. Lemma 22 now gives, for every x∈Rx\in\mathbb{R}, 2c=f(x2+c)=f(x)2+c2c=f(x^2+c)=f(x)^2+c, hence f(x)2=cf(x)^2=c for every xx. In particular, taking any x≥cx\geq c gives f(x)2=(2c)2=cf(x)^2=(2c)^2=c. Thus 4c2=c4c^2=c. Since c>0c>0, we obtain c=14c=\frac{1}{4}, and consequently f(t)=2c=12f(t)=2c=\frac{1}{2} for every t≥14t\geq\frac{1}{4}. □\square

Lemma 88. If c>0c>0, then for every x<14x<\frac{1}{4} one has f(x)∈{−12,12}f(x)\in\{-\frac{1}{2},\frac{1}{2}\}, and these signs are independent.

Proof. By Lemma 77, f(x)2=14f(x)^2=\frac{1}{4} for every x∈Rx\in\mathbb{R}, so f(x)∈{−12,12}f(x)\in\{-\frac{1}{2},\frac{1}{2}\} for every xx. On the other hand, every argument on the left-hand side of P(x,y)P(x,y) has the form x2+f(y)2=x2+14≥14x^2+f(y)^2=x^2+\frac{1}{4}\geq\frac{1}{4}, and ff is already forced to equal 12\frac{1}{2} on [14,∞)[\frac{1}{4},\infty). Hence the functional equation never evaluates ff at a point below 14\frac{1}{4}. Therefore the sign of f(x)f(x) for x<14x<\frac{1}{4} is completely unrestricted. We now turn to the case c=0c=0. Thus f(0)=0f(0)=0, and Lemma 22 becomes f(x2)=f(x)2f(x^2)=f(x)^2. In particular, f(t)≥0f(t)\geq0 for every t≥0t\geq0. □\square

Lemma 99. If f(0)=0f(0)=0, then either f≡0f\equiv0, or f(1)=1f(1)=1.

Proof. From f(1)=f(1)2f(1)=f(1)^2, we have f(1)∈{0,1}f(1)\in\{0,1\}. If f(1)=0f(1)=0, then P(1,y)P(1,y) gives f(1+f(y)2)=f(y)2f(1+f(y)^2)=f(y)^2. Taking y=0y=0 gives no new information, but for every yy the right-hand side is a value of ff, and repeated application of the square relation shows that every value of ff has square fixed by ff. In particular, if ff is not identically zero, some value of ff is positive, and the equation with that value in place of yy forces f(1)>0f(1)>0, contradicting f(1)=0f(1)=0. Hence f≡0f\equiv0. Assume henceforth that f≢0f\not\equiv0 and f(0)=0f(0)=0. Then f(1)=1f(1)=1. □\square

Lemma 1010. For every x≥0x\geq0, f(x+1)=f(x)+1f(x+1)=f(x)+1.

Proof. Assertion P(x,1)P(x,1) gives f(x2+f(1)2)=f(x)2+f(1)2f(x^2+f(1)^2)=f(x)^2+f(1)^2, so f(x2+1)=f(x)2+1f(x^2+1)=f(x)^2+1. By the square relation we have established prior, f(x)2=f(x2)f(x)^2=f(x^2). Hence f(x2+1)=f(x2)+1f(x^2+1)=f(x^2)+1. Since x2x^2 ranges over [0,∞)[0,\infty), we obtain f(t+1)=f(t)+1f(t+1)=f(t)+1 for every t≥0t\geq0. □\square

Lemma 1111. For every positive integer nn and every x≥0x\geq0, f(x+n)=f(x)+nf(x+n)=f(x)+n. Moreover, f(1n)=1nf(\frac{1}{n})=\frac{1}{n}.

Proof. The first assertion follows from Lemma 1010 by iteration. Fix n≥1n\geq1 and write u=f(1n)u=f(\frac{1}{n}). Since 1n≥0\frac{1}{n}\geq0, Lemma 1010 gives f(n+1n)=u+nf(n+\frac{1}{n})=u+n. By the square relation, f((n+1n)2)=(u+n)2f((n+\frac{1}{n})^2)=(u+n)^2. On the other hand, (n+1n)2=n2+2+1n2(n+\frac{1}{n})^2=n^2+2+\frac{1}{n}^2, so repeated integer translation and the square relation give f((n+1n)2)=n2+2+u2f((n+\frac{1}{n})^2)=n^2+2+u^2. Hence (u+n)2=n2+u2+2(u+n)^2=n^2+u^2+2, and therefore 2nu=22nu=2. Thus u=1nu=\frac{1}{n}. □\square

Lemma 1212. For every q∈Qq\in\mathbb{Q} and every x≥0x\geq0 such that x+q≥0x+q\geq0, one has f(x+q)=f(x)+qf(x+q)=f(x)+q.

Proof. By Lemma 1111, f(1n)=1nf(\frac{1}{n})=\frac{1}{n} for every positive integer nn. Applying P(x,1n)P(\sqrt{x},\frac{1}{n}) gives f(x+1n2)=f(x)+1n2f(x+\frac{1}{n}^2)=f(x)+\frac{1}{n}^2 for every x≥0x\geq0. Iteration gives translation by every integer multiple of 1n2\frac{1}{n}^2. Since every rational number q=mnq=\frac{m}{n} can be written as q=mnn2q=\frac{mn}{n^2}, the result follows. □\square

Lemma 1313. For every x≥0x\geq0, f(x)≥xf(x)\geq x.

Proof. Let q∈Qq\in\mathbb{Q} satisfy q>−xq>-x. Then x+q>0x+q>0, so f(x+q)≥0f(x+q)\geq0. By Lemma 1212, f(x+q)=f(x)+qf(x+q)=f(x)+q, hence f(x)≥−qf(x)\geq-q. Taking rational numbers q>−xq>-x arbitrarily close to −x-x gives f(x)≥xf(x)\geq x. □\square

Lemma 1414. For every x≥0x\geq0, f(x)=xf(x)=x.

Proof. Fix x≥0x\geq0 and put r=f(x)r=f(x). By Lemma 1313, r≥xr\geq x. The square relation gives f(r2)=f(r)2f(r^2)=f(r)^2, while P(0,x)P(0,x) gives f(r2)=r2f(r^2)=r^2. Since r≥0r\geq0, Lemma 1313 gives f(r)≥rf(r)\geq r, and f(r)2=r2f(r)^2=r^2 together with f(r)≥0f(r)\geq0 therefore yields f(r)=rf(r)=r. Thus every value r=f(x)r=f(x) with x≥0x\geq0 is a fixed point of ff. Applying the same argument to r\sqrt r gives f(r)=rf(\sqrt r)=\sqrt r, so r=f(r)2r=f(\sqrt r)^2 is itself a value whose square occurs in the defining equation. Consequently P(t,r)P(\sqrt t,\sqrt r) gives f(t+r)=f(t)+rf(t+r)=f(t)+r for every t≥0t\geq0. In particular, if r>xr>x, then with t=r−x>0t=r-x>0 we have f(r)=f(r−x)+rf(r)=f(r-x)+r. Since f(r)=rf(r)=r, this gives f(r−x)=0f(r-x)=0. But Lemma 1313 applied to the positive number r−xr-x gives f(r−x)≥r−x>0f(r-x)\geq r-x>0, a contradiction. Hence r=xr=x, so f(x)=xf(x)=x. □\square

Lemma 1515. If f(0)=0f(0)=0 and f(x)=xf(x)=x for every x≥0x\geq0, then for every x<0x<0, f(x)∈{x,−x}f(x)\in\{x,-x\}.

Proof. By Lemma 11, f(x)2=f(−x)2f(x)^2=f(-x)^2. Since −x>0-x>0 and f(−x)=−xf(-x)=-x, we obtain f(x)2=x2f(x)^2=x^2. Thus f(x)=xf(x)=x or f(x)=−xf(x)=-x. It remains to verify the arbitrary choices in the two nonconstant families. For the family with f(x)2=14f(x)^2=\frac{1}{4} for all xx, every left-hand input is x2+14≥14x^2+\frac{1}{4}\geq\frac{1}{4}, where ff equals 12\frac{1}{2}, and hence both sides of the equation equal 12\frac{1}{2}. For the family with f(x)=xf(x)=x for x≥0x\geq0 and f(x)∈{x,−x}f(x)\in\{x,-x\} for x<0x<0, one has f(t)2=t2f(t)^2=t^2 for every t∈Rt\in\mathbb{R}, and x2+f(y)2=x2+y2≥0x^2+f(y)^2=x^2+y^2\geq0. Therefore f(x2+f(y)2)=x2+y2=f(x)2+f(y)2f(x^2+f(y)^2)=x^2+y^2=f(x)^2+f(y)^2. Finally, f≡0f\equiv0 is immediate. □\square

Therefore the complete set of solutions is f≡0f\equiv0, f(x)=12 for x≥14,f(x)∈{−12,12} for x<14f(x)=\frac{1}{2}\text{ for }x\geq\frac{1}{4},f(x)\in\left\{-\frac{1}{2},\frac{1}{2}\right\}\text{ for }x<\frac{1}{4}, and f(x)=x for x≥0,f(x)∈{x,−x} for x<0f(x)=x\text{ for }x\geq0,f(x)\in\{x,-x\}\text{ for }x<0 as desired. ■\blacksquare