#846

solved

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

f(f(xy)+f(xy))=xy+f(xy)f(f(xy) + f(xy)) = xy + f(xy)

for any reals x,yx,y.

Solution

Solution by AIME4096.


We claim that the complete solution set consists precisely of the functions obtained as follows. Define g=2fg=2f, partition R\mathbb{R} into components of the four types described below, let gg act by shifting one step forward along every chain and by interchanging the two elements of every two-cycle, with g(0)=0g(0)=0, and then set f=g2f=\frac{g}{2}. Equivalently, every non-cyclic chain is of the form xn=2nA+(−1)nBx_n=2^nA+(-1)^nB for either all n≥0n\geq0 or all n∈Zn\in\mathbb{Z}, with the terms pairwise distinct, and f(xn)=xn+12f(x_n)=\frac{x_{n+1}}2. These functions all work for every x,y∈Rx,y\in\mathbb{R}. We now wish to prove that these are the only solutions. Let P(x,y)P(x,y) denote the assertion f(f(xy)+f(xy))=xy+f(xy)f(f(xy)+f(xy))=xy+f(xy). Since xyxy ranges over all of R\mathbb{R}, the original equation is equivalent to f(2f(x))=x+f(x)f(2f(x))=x+f(x) for every x∈Rx\in\mathbb{R}. Define g(x)=2f(x)g(x)=2f(x). Then the equation becomes g(g(x))=g(x)+2xg(g(x))=g(x)+2x for every x∈Rx\in\mathbb{R}.

Lemma 1. The function gg is injective and g(0)=0g(0)=0.

Proof. Suppose g(a)=g(b)g(a)=g(b). Applying the functional equation to aa and bb gives g(g(a))=g(a)+2ag(g(a))=g(a)+2a and g(g(b))=g(b)+2bg(g(b))=g(b)+2b. Since g(a)=g(b)g(a)=g(b), the left-hand sides are equal, and therefore 2a=2b2a=2b. Hence a=ba=b, so gg is injective. Substituting x=0x=0 gives g(g(0))=g(0)g(g(0))=g(0). Since g(g(0))=g(0)g(g(0))=g(0), injectivity gives g(0)=0g(0)=0. □\square

Lemma 2. For every x∈Rx\in\mathbb{R}, if we define xn=gn(x)x_n=g^n(x) for n≥0n\geq0, then xn+2=xn+1+2xnx_{n+2}=x_{n+1}+2x_n for every n≥0n\geq0. Consequently, there exist unique A,B∈RA,B\in\mathbb{R} such that xn=2nA+(−1)nBx_n=2^nA+(-1)^nB for every n≥0n\geq0.

Proof. Since xn+1=g(xn)x_{n+1}=g(x_n), applying the equation for gg to xnx_n gives

xn+2=g(g(xn))=g(xn)+2xn=xn+1+2xn.x_{n+2}=g(g(x_n))=g(x_n)+2x_n=x_{n+1}+2x_n.

The characteristic polynomial of this recurrence is r2−r−2=(r−2)(r+1)r^2-r-2=(r-2)(r+1). Thus its general solution is xn=2nA+(−1)nBx_n=2^nA+(-1)^nB. The constants are uniquely determined by x0x_0 and x1x_1, namely A=x0+x13A=\frac{x_0+x_1}{3} and B=2x0−x13B=\frac{2x_0-x_1}{3}. □\square

Lemma 3. Every connected component of the functional graph of gg is exactly one of the following:

  • the singleton 0{0}, with g(0)=0g(0)=0;
  • a two-cycle a,−a{a,-a} with a≠0a\neq0, where g(a)=−ag(a)=-a and g(−a)=ag(-a)=a;
  • a one-sided infinite chain (xn)n≥0(x_n)_{n\geq0} of pairwise distinct real numbers satisfying xn+2=xn+1+2xnx_{n+2}=x_{n+1}+2x_n;
  • a two-sided infinite chain (xn)n∈Z(x_n)_{n\in\mathbb{Z}} of pairwise distinct real numbers satisfying xn+2=xn+1+2xnx_{n+2}=x_{n+1}+2x_n.

Proof. Since gg is injective, every element has at most one predecessor. Therefore every connected component of the directed graph of gg is either a cycle, a one-sided chain, or a two-sided chain. Suppose a component is a cycle. Then its elements form a periodic sequence satisfying xn+2=xn+1+2xnx_{n+2}=x_{n+1}+2x_n. By Lemma 22, xn=2nA+(−1)nBx_n=2^nA+(-1)^nB. If this sequence is periodic, then the term involving 2n2^n must vanish, so A=0A=0. Hence xn=(−1)nBx_n=(-1)^nB, which has period 22 when B≠0B\neq0, and gives the singleton 0{0} when B=0B=0. Thus the only possible cycles are 0{0} and two-cycles a,−a{a,-a}. If the component is not a cycle, injectivity implies that it is either a ray indexed by N≥0\mathbb{N}_{\ge 0} or a bi-infinite chain indexed by Z\mathbb{Z}. The terms must be pairwise distinct, since otherwise the same real number would occur at two different positions and gg would not define a single-valued map on the component. This proves the lemma, meaning we can now state the complete classification. □\square

We now claim that a function f:R→Rf:\mathbb{R}\to\mathbb{R} satisfies f(f(xy)+f(xy))=xy+f(xy)f(f(xy)+f(xy))=xy+f(xy) for all x,y∈Rx,y\in\mathbb{R} if and only if, after defining g=2fg=2f, the real line can be partitioned into components of the four types in Lemma 33, with gg acting by g(xn)=xn+1g(x_n)=x_{n+1} on every chain and by g(a)=−a,g(−a)=ag(a)=-a,g(-a)=a on every two-cycle. Equivalently, every non-cyclic chain is of the form xn=2nA+(−1)nBx_n=2^nA+(-1)^nB for either all n≥0n\geq0 or all n∈Zn\in\mathbb{Z}, with the terms pairwise distinct, and f(xn)=xn+12f(x_n)=\frac{x_{n+1}}2. Note that necessity follows from Lemmas 1−31-3. Conversely, suppose that R\mathbb{R} is partitioned into components of the stated types, and define gg by shifting one step forward along every chain and interchanging the two elements of every two-cycle, with g(0)=0g(0)=0. For a chain, the recurrence gives g(g(xn))=xn+2=xn+1+2xn=g(xn)+2xng(g(x_n))=x_{n+2}=x_{n+1}+2x_n=g(x_n)+2x_n. For a two-cycle, if x=ax=a, then g(g(a))=a=−a+2a=g(a)+2ag(g(a))=a=-a+2a=g(a)+2a, and the same holds for x=−ax=-a. It is also immediate for x=0x=0. Therefore g(g(x))=g(x)+2xg(g(x))=g(x)+2x for every x∈Rx\in\mathbb{R}.

Thus the complete solution set is the above family of functions. In particular, there are many nonlinear solutions. For example, let

g(x)={2x,x∈Q,−x,x∉Q..g(x)= \begin{cases} 2x,&x\in\mathbb{Q},\\ -x,&x\notin\mathbb{Q}. \end{cases}.

Both Q\mathbb{Q} and R∖Q\mathbb{R}\setminus\mathbb{Q} are invariant under multiplication by 22 and by −1-1, so g(g(x))=g(x)+2xg(g(x))=g(x)+2x for every xx. Therefore

f(x)={x,x∈Q,−x2,x∉Qf(x)= \begin{cases} x,&x\in\mathbb{Q},\\ -\frac{x}{2},&x\notin\mathbb{Q} \end{cases}

is a nonlinear solution. The two linear solutions are obtained from the two homogeneous choices f(x)=x,−x2\boxed{f(x)=x,-\frac{x}{2}}. Note that these are only two members of the full solution family described above. ■\blacksquare