#324

solved

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

f(x2+f(xy))=f(x)2+yf(x)f(x^2 + f(xy)) = f(x)^2 + yf(x)

for any reals x,yx,y.

Solution

Solution by AIME4096.


We claim that the complete solution set is f(x)≡0,f(x)=x∀x∈Rf(x)\equiv0,f(x)=x\forall x\in\mathbb{R}. Both functions clearly satisfy f(x2+f(xy))=f(x)2+yf(x)f\bigl(x^2+f(xy)\bigr)=f(x)^2+yf(x) for all x,y∈Rx,y\in\mathbb{R}. We now prove that these are the only solutions. Let P(x,y)P(x,y) denote the assertion f(x2+f(xy))=f(x)2+yf(x)f\bigl(x^2+f(xy)\bigr)=f(x)^2+yf(x).

Lemma 1. f(0)=0f(0)=0.

Proof. Assertion P(0,y)P(0,y) gives f(f(0))=f(0)2+yf(0)f(f(0))=f(0)^2+yf(0) for every y∈Ry\in\mathbb{R}. Taking y=0y=0 and y=1y=1 gives f(f(0))=f(0)2f(f(0))=f(0)^2 and f(f(0))=f(0)2+f(0)f(f(0))=f(0)^2+f(0), respectively. Hence f(0)=0f(0)=0. □\square

Lemma 2. For every a≠0a\neq0, define the affine map Ta:R2→R2T_a:\mathbb{R}^2\to\mathbb{R}^2 by Ta(u,v)=(a2+v,f(a)2+f(a)au)T_a(u,v)=\left(a^2+v,f(a)^2+\frac{f(a)}a u\right). If Γ=(z,f(z)):z∈R\Gamma={(z,f(z)):z\in\mathbb{R}} is the graph of ff, then Ta(Γ)⊆ΓT_a(\Gamma)\subseteq\Gamma.

Proof. Let (z,f(z))∈Γ(z,f(z))\in\Gamma. Since a≠0a\neq0, put y=zay=\frac{z}{a} in P(a,y)P(a,y). Then ay=zay=z, so

f(a2+f(z))=f(a)2+f(a)az.f\left(a^2+f(z)\right)=f(a)^2+\frac{f(a)}a z.

Hence Ta(z,f(z))∈ΓT_a(z,f(z))\in\Gamma. Therefore Ta(Γ)⊆ΓT_a(\Gamma)\subseteq\Gamma. □\square

Lemma 3. If f≢0f\not\equiv0, then there exists a≠0a\neq0 such that f(a)≠0f(a)\neq0.

Proof. Since f≢0f\not\equiv0, there exists a∈Ra\in\mathbb{R} with f(a)≠0f(a)\neq0. By Lemma 11, f(0)=0f(0)=0, so necessarily a≠0a\neq0. □\square

Lemma 4. If f≢0f\not\equiv0, then ff is injective.

Proof. Choose a≠0a\neq0 with f(a)≠0f(a)\neq0 by Lemma 33. Suppose f(u)=f(v)f(u)=f(v). Applying TaT_a to (u,f(u))(u,f(u)) and (v,f(v))(v,f(v)) gives two points of Γ\Gamma whose first coordinates are equal, namely a2+f(u)=a2+f(v)a^2+f(u)=a^2+f(v). Since Γ\Gamma is the graph of a function, those two points must have the same second coordinate. Hence

f(a)2+f(a)a⋅u=f(a)2+f(a)a⋅v.f(a)^2+\frac{f(a)}a\cdot u=f(a)^2+\frac{f(a)}a\cdot v.

Since a≠0a\neq0 and f(a)≠0f(a)\neq0, we obtain u=vu=v. Thus ff is injective. □\square

Lemma 5. If f≢0f\not\equiv0, then ff is surjective.

Proof. Choose a≠0a\neq0 with f(a)≠0f(a)\neq0. By Lemma 22, for every z∈Rz\in\mathbb{R}, the point Ta(z,f(z))=(a2+f(z),f(a)2+f(a)az)T_a(z,f(z))=\left(a^2+f(z),f(a)^2+\frac{f(a)}a z\right) belongs to Γ\Gamma. Let r∈Rr\in\mathbb{R} be arbitrary. Since f(a)a≠0\frac{f(a)}a\neq0, choose z=af(a)(r−f(a)2)z=\frac{a}{f(a)}\bigl(r-f(a)^2\bigr). Then the second coordinate of Ta(z,f(z))T_a(z,f(z)) is rr. Since the resulting point lies on Γ\Gamma, its first coordinate, say uu, satisfies f(u)=rf(u)=r. Thus every r∈Rr\in\mathbb{R} is attained by ff, so ff is surjective. □\square

Lemma 6. If f≢0f\not\equiv0, then f(−x)=−f(x)f(-x)=-f(x) for every x≠0x\neq0.

Proof. Fix x≠0x\neq0. Putting y=txy=\frac{t}{x} in P(x,y)P(x,y) gives f(x2+f(t))=f(x)2+txf(x)f\bigl(x^2+f(t)\bigr)=f(x)^2+\frac{t}{x}f(x). Putting y=−txy=-\frac{t}{x} in P(−x,y)P(-x,y) gives f(x2+f(t))=f(−x)2−txf(−x)f\bigl(x^2+f(t)\bigr)=f(-x)^2-\frac{t}{x}f(-x). Therefore

f(x)2−f(−x)2+tx(f(x)+f(−x))=0f(x)^2-f(-x)^2+\frac{t}{x}\bigl(f(x)+f(-x)\bigr)=0

for every t∈Rt\in\mathbb{R}. Taking t=0t=0 gives f(x)2=f(−x)2f(x)^2=f(-x)^2, and then taking t=xt=x gives f(x)+f(−x)=0f(x)+f(-x)=0. Hence f(−x)=−f(x)f(-x)=-f(x). □\square

Lemma 7. If f≢0f\not\equiv0, then 00 is the unique zero of ff.

Proof. By Lemma 55, there exists r∈Rr\in\mathbb{R} such that f(r)=0f(r)=0. Assume for the sake of contradiction r≠0r\neq0. Then Lemma 66 gives f(−r)=0f(-r)=0. Since ff is injective by Lemma 44, we obtain r=−rr=-r, hence r=0r=0, a contradiction. Therefore every zero of ff is 00. □\square

Lemma 8. If f≢0f\not\equiv0, then f(x)>0f(x)>0 whenever x>0x>0, and f(x)<0f(x)<0 whenever x<0x<0.

Proof. Setting assertion P(x,0)P(x,0) and using Lemma 11 gives f(x2)=f(x)2f(x^2)=f(x)^2 for every x∈Rx\in\mathbb{R}. If t>0t>0, write t=x2t=x^2 with x≠0x\neq0. Then f(t)=f(x)2f(t)=f(x)^2. By Lemma 77, f(x)≠0f(x)\neq0, so f(t)>0f(t)>0. If t<0t<0, then −t>0-t>0, so f(−t)>0f(-t)>0, and Lemma 66 gives f(t)=−f(−t)<0f(t)=-f(-t)<0. □\square

Lemma 9. If f≢0f\not\equiv0, then Ta(Γ)=ΓT_a(\Gamma)=\Gamma for every a≠0a\neq0.

Proof. By Lemma 77, f(a)≠0f(a)\neq0 for every a≠0a\neq0, so TaT_a is an invertible affine map. Lemma 22 gives Ta(Γ)⊆ΓT_a(\Gamma)\subseteq\Gamma. The first coordinate of Ta(z,f(z))T_a(z,f(z)) is a2+f(z)a^2+f(z). Since ff is surjective by Lemma 55, this first coordinate assumes every real value. Thus Ta(Γ)T_a(\Gamma) contains a point above every real first coordinate. Since Γ\Gamma contains exactly one point above each first coordinate, we obtain Ta(Γ)=ΓT_a(\Gamma)=\Gamma as desired. □\square

Lemma 10. For every a≠0a\neq0, put ca=f(a)ac_a=\frac{f(a)}a. Then ca>0c_a>0. Moreover, if Sa=Ta2S_a=T_a^2, then, identifying points of R2\mathbb{R}^2 with vectors XX, we have Sa(X)=caX+WaS_a(X)=c_aX+W_a, where Wa=(a2+f(a)2,f(a)2+caa2)W_a=\left(a^2+f(a)^2,f(a)^2+c_a a^2\right).

Proof. By Lemma 88, aa and f(a)f(a) have the same sign, so ca>0c_a>0. A direct computation gives Sa(u,v)=(a2+f(a)2+cau,f(a)2+caa2+cav)S_a(u,v)=\left(a^2+f(a)^2+c_a u,f(a)^2+c_a a^2+c_a v\right), which is exactly Sa(X)=caX+WaS_a(X)=c_aX+W_a. Since Ta(Γ)=ΓT_a(\Gamma)=\Gamma by Lemma 99, we also have Sa(Γ)=ΓS_a(\Gamma)=\Gamma. □\square

Lemma 11. Suppose that f≢0f\not\equiv0 and f≠id⁡f\neq\operatorname{id}. Then there exist a,b≠0a,b\neq0 such that ca≠1c_a\neq1 and cb≠cac_b\neq c_a.

Proof. If cx=1c_x=1 for every x≠0x\neq0, then f(x)=xf(x)=x for every x≠0x\neq0, and Lemma 11 gives f(0)=0f(0)=0, so f=id⁡f=\operatorname{id}, contrary to hypothesis. Hence there exists a≠0a\neq0 with ca≠1c_a\neq1. Suppose that cx=ca=:cc_x=c_a=:c for every x≠0x\neq0. Then f(x)=cxf(x)=cx for every x∈Rx\in\mathbb{R}. Assertion P(x,0)P(x,0) in the original equation gives f(x2)=f(x)2f(x^2)=f(x)^2, hence cx2=c2x2cx^2=c^2x^2 for every xx. Taking x=1x=1 gives c=c2c=c^2. Since c>0c>0 by Lemma 1010, we obtain c=1c=1, contradicting ca≠1c_a\neq1. Therefore some b≠0b\neq0 satisfies cb≠cac_b\neq c_a. □\square

Lemma 12. Suppose that f≢0f\not\equiv0 and f≠id⁡f\neq\operatorname{id}. Then Γ\Gamma possesses a nonzero translation symmetry.

Proof. Let a,ba,b be given by Lemma 1111, and write c=cac=c_a and d=cbd=c_b. If d=1d=1, then Lemma 1010 gives Sb(X)=X+WbS_b(X)=X+W_b. Since f(b)=bf(b)=b, we have Wb=(2b2,2b2)≠(0,0)W_b=(2b^2,2b^2)\neq(0,0). Thus SbS_b is a nonzero translation preserving Γ\Gamma. Assume now that d≠1d\neq1. Since c≠1c\neq1 as well, both SaS_a and SbS_b are homotheties. Let CaC_a and CbC_b be their respective fixed points. Since Sr(X)=crX+WrS_r(X)=c_rX+W_r and cr≠1c_r\neq1, its unique fixed point is Cr=11−crWrC_r=\frac{1}{1-c_r}W_r. Since f(r)=crrf(r)=c_r r, this becomes

Cr=r21−cr(1+cr2,cr(cr+1)).C_r=\frac{r^2}{1-c_r}\left(1+c_r^2,c_r(c_r+1)\right).

We now claim that Ca≠CbC_a\neq C_b. Suppose otherwise for the sake of contradiction. Since a,b≠0a,b\neq0 and c,d≠1c,d\neq1, the first coordinates of CaC_a and CbC_b are nonzero. Hence equality of the ratios of their second and first coordinates gives c(c+1)1+c2=d(d+1)1+d2\frac{c(c+1)}{1+c^2}=\frac{d(d+1)}{1+d^2}. Cross-multiplication yields (c−d)(cd−c−d−1)=0(c-d)(cd-c-d-1)=0. Since c≠dc\neq d, we obtain cd−c−d−1=0cd-c-d-1=0, or equivalently d=c+1c−1d=\frac{c+1}{c-1}. Because c>0c>0 and d>0d>0, this equality forces c>1c>1 and d>1d>1. Substituting d=c+1c−1d=\frac{c+1}{c-1} gives 1+d21−d=1+c21−c\frac{1+d^2}{1-d}=\frac{1+c^2}{1-c}. Equality of the first coordinates of CaC_a and CbC_b therefore gives a2=b2a^2=b^2. Hence b=ab=a or b=−ab=-a. By Lemma 66, in either case f(b)=±f(a)f(b)=\pm f(a) with the same sign as b=±ab=\pm a, and consequently f(b)b=f(a)a\frac{f(b)}b=\frac{f(a)}a. Thus cb=cac_b=c_a, contradicting the choice of aa and bb. Therefore Ca≠CbC_a\neq C_b.

Now write A=SaA=S_a and B=SbB=S_b. Since AA and BB are homotheties centered at CaC_a and CbC_b, respectively, we have A(X)=cX+(1−c)CaA(X)=cX+(1-c)C_a and B(X)=dX+(1−d)CbB(X)=dX+(1-d)C_b. Their inverses are

A−1(X)=1cX+(1−1c)Ca and B−1(X)=1dX+(1−1d)Cb.A^{-1}(X)=\frac1cX+\left(1-\frac1c\right)C_a\text{ and }B^{-1}(X)=\frac1dX+\left(1-\frac1d\right)C_b.

Consider the commutator K=ABA−1B−1K=ABA^{-1}B^{-1}. Since the linear parts of AA, BB, A−1A^{-1}, and B−1B^{-1} are cc, dd, 1c\frac{1}{c}, and 1d\frac{1}{d}, respectively, the linear part of KK is 11. Hence KK is a translation. We compute the translation vector directly. Conjugating BB by AA gives ABA−1(X)=dX+(1−d)A(Cb)ABA^{-1}(X)=dX+(1-d)A(C_b). Therefore K(X)=ABA−1(B−1(X))=X+(d−1)Cb+(1−d)A(Cb)K(X)=ABA^{-1}\bigl(B^{-1}(X)\bigr)=X+(d-1)C_b+(1-d)A(C_b). Since A(Cb)=cCb+(1−c)CaA(C_b)=cC_b+(1-c)C_a, we obtain K(X)=X+(d−1)Cb+(1−d)cCb+(1−d)(1−c)CaK(X)=X+(d-1)C_b+(1-d)cC_b+(1-d)(1-c)C_a, and collecting terms gives K(X)=X+(c−1)(d−1)(Ca−Cb)K(X)=X+(c-1)(d-1)(C_a-C_b). Thus KK is the translation by the vector (c−1)(d−1)(Ca−Cb)(c-1)(d-1)(C_a-C_b). This vector is nonzero because c≠1c\neq1, d≠1d\neq1, and Ca≠CbC_a\neq C_b. By Lemma 99, A(Γ)=ΓA(\Gamma)=\Gamma and B(Γ)=ΓB(\Gamma)=\Gamma. Hence A−1(Γ)=ΓA^{-1}(\Gamma)=\Gamma and B−1(Γ)=ΓB^{-1}(\Gamma)=\Gamma, so K(Γ)=ΓK(\Gamma)=\Gamma. Therefore Γ\Gamma possesses a nonzero translation symmetry. □\square

Lemma 13. Any nonzero translation symmetry of Γ\Gamma has a nonzero horizontal component.

Proof. Suppose translation by (0,k)(0,k) preserves Γ\Gamma. Then for every (x,f(x))∈Γ(x,f(x))\in\Gamma, the point (x,f(x)+k)(x,f(x)+k) also belongs to Γ\Gamma. Since Γ\Gamma is the graph of a function, there is exactly one point of Γ\Gamma with first coordinate xx. Hence k=0k=0. Therefore every nonzero translation symmetry has a nonzero horizontal component. □\square

Lemma 14. Suppose that f≢0f\not\equiv0 and f≠id⁡f\neq\operatorname{id}. Then there exists a dense additive subgroup H⊆RH\subseteq\mathbb{R} and a constant λ∈R\lambda\in\mathbb{R} such that f(x+t)=f(x)+λtf(x+t)=f(x)+\lambda t for every x∈Rx\in\mathbb{R} and every t∈Ht\in H.

Proof. By Lemma 1212, choose a nonzero translation symmetry (h,k)(h,k) of Γ\Gamma. By Lemma 1313, h≠0h\neq0. Let c=cac=c_a, where aa is the element chosen in Lemma 1111. Since c>0c>0 and c≠1c\neq1, SaS_a is a homothety of ratio cc. Conjugating the translation by (h,k)(h,k) with SarS_a^r gives a translation by (crh,crk)(c^rh,c^rk) for every r∈Zr\in\mathbb{Z}. Therefore every finite composition of these translations is a translation by

(h∑imicri,k∑imicri),\left(h\sum_i m_i c^{r_i},k\sum_i m_i c^{r_i}\right),

where mi,ri∈Zm_i,r_i\in\mathbb{Z}. Define H0={∑imicri:mi,ri∈Z}H_0=\left\{\sum_i m_i c^{r_i}:m_i,r_i\in\mathbb{Z}\right\} and H=hH0H=hH_0. Since c>0c>0 and c≠1c\neq1, either cn→0c^n\to0 as n→+∞n\to+\infty or cn→0c^n\to0 as n→−∞n\to-\infty. Hence H0H_0 contains positive elements arbitrarily close to 00. We now claim that H0H_0 is dense in R\mathbb{R}. Let u∈Ru\in\mathbb{R} and ε>0\varepsilon>0. Choose δ∈H0\delta\in H_0 with 0<δ<2ε0<\delta<2\varepsilon. Let m∈Zm\in\mathbb{Z} be an integer nearest to uδ\frac{u}{\delta}. Then ∣u−mδ∣≤δ2<ε|u-m\delta|\le\frac{\delta}{2}<\varepsilon. Since m⋅δ∈H0m\cdot\delta\in H_0, every real number can be approximated arbitrarily closely by elements of H0H_0. Thus H0H_0 is dense in R\mathbb{R}, and since h≠0h\neq0, H=hH0H=hH_0 is dense in R\mathbb{R}. Put λ=kh\lambda=\frac{k}{h}. Every translation constructed above has the form (t,λt)(t,\lambda t) with t∈Ht\in H. Therefore, for every x∈Rx\in\mathbb{R} and t∈Ht\in H, the point (x+t,f(x)+λt)(x+t,f(x)+\lambda t) belongs to Γ\Gamma. Hence f(x+t)=f(x)+λtf(x+t)=f(x)+\lambda t. □\square

Lemma 15. Under the hypotheses of Lemma 1414, there exists λ>0\lambda>0 such that f(x)=λxf(x)=\lambda x for every x∈Rx\in\mathbb{R}.

Proof. Fix x>0x>0. By Lemma 88, f(x)>0f(x)>0. Since HH is dense, there exist sequences tn,sn∈Ht_n,s_n\in H such that tn>−xt_n>-x, sn<−xs_n<-x, and tn→−xt_n\to-x, sn→−xs_n\to-x. Since x+tn>0x+t_n>0, Lemma 88 gives f(x+tn)>0f(x+t_n)>0. By Lemma 1414, f(x)+λtn>0f(x)+\lambda t_n>0. Likewise, x+sn<0x+s_n<0, so f(x+sn)<0f(x+s_n)<0, and hence f(x)+λsn<0f(x)+\lambda s_n<0. If λ<0\lambda<0, then f(x)+λsn→f(x)−λx>0f(x)+\lambda s_n\to f(x)-\lambda x>0, contradicting f(x)+λsn<0f(x)+\lambda s_n<0. If λ=0\lambda=0, then f(x)+λsn=f(x)>0f(x)+\lambda s_n=f(x)>0, again a contradiction. Hence λ>0\lambda>0. Taking limits in f(x)+λtn>0f(x)+\lambda t_n>0 gives f(x)−λx≥0f(x)-\lambda x\ge0, while taking limits in f(x)+λsn<0f(x)+\lambda s_n<0 gives f(x)−λx≤0f(x)-\lambda x\le0. Hence f(x)=λxf(x)=\lambda x for every x>0x>0. By Lemma 66, if x<0x<0 then f(x)=−f(−x)=λxf(x)=-f(-x)=\lambda x, while Lemma 11 gives f(0)=0f(0)=0. Therefore f(x)=λxf(x)=\lambda x for every x∈Rx\in\mathbb{R}. □\square

Lemma 16. Under the hypotheses of Lemma 1414, λ=1\lambda=1.

Proof. By Lemma 1515, f(x)=λxf(x)=\lambda x for every x∈Rx\in\mathbb{R}, with λ>0\lambda>0. Substituting into the original equation gives λ(x2+λxy)=λ2x2+λxy\lambda(x^2+\lambda xy)=\lambda^2x^2+\lambda xy for every x,y∈Rx,y\in\mathbb{R}. Setting y=0y=0 gives λx2=λ2x2\lambda x^2=\lambda^2x^2 for every xx. Taking x=1x=1 gives λ=λ2\lambda=\lambda^2. Since λ>0\lambda>0, we obtain λ=1\lambda=1. Hence f=id⁡f=\operatorname{id}. □\square

Therefore, if f≢0f\not\equiv0, then ff is the identity function and we are done. ■\blacksquare