#407

solved

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

f(xf(x)+yf(x))=f(x)2+f(x)f(y)f(xf(x) + yf(x)) = f(x)^2 + f(x)f(y)

for any reals x,yx,y.

Solution

Solution by OronSH.


We claim the solutions are given by the following: Either f(x)=12f(x)=\frac12 for all xx, or let SS be a subfield of R\mathbb R. Let {ai}\{a_i\} be a Hamel basis of R\mathbb R over SS. Then for each aia_i, force f(ai)∈Sf(a_i)\in S and for ki∈Sk_i\in S we have f(∑kiai)=∑kif(ai)f\left(\sum k_ia_i\right)=\sum k_if(a_i). To see that these work, if f(x)=12f(x)=\frac12 then both sides are 12\frac12, otherwise we will get that ff is additive, has range ⊆S\subseteq S, and that f(kx)=kf(x)f(kx)=kf(x) for any k∈Sk\in S, hence f(xf(x)+yf(x))=f(x+y)f(x)=f(x)2+f(x)f(y)f(xf(x)+yf(x))=f(x+y)f(x)=f(x)^2+f(x)f(y) as desired.

Now we show these are the only solutions. Denote the assertion by P(x,y)P(x,y). Taking P(0,0)P(0,0) gives f(0)=2f(0)2f(0)=2f(0)^2, so f(0)=12f(0)=\frac12 or f(0)=0f(0)=0. Taking P(x,−x)P(x,-x) and P(−x,x)P(-x,x) give f(0)=f(x)2+f(x)f(−x)=f(−x)2+f(x)f(−x)f(0)=f(x)^2+f(x)f(-x)=f(-x)^2+f(x)f(-x), hence f(x)=±f(−x)f(x)=\pm f(-x) and hence f(0)=0f(0)=0 or 2f(x)22f(x)^2. If f(0)=12f(0)=\frac12, then we get f(x)=±12f(x)=\pm\frac12 for all xx, however f(x)=−12f(x)=-\frac12 fails by P(0,y)P(0,y). Hence we get the f(x)=12f(x)=\frac12 solution here.

Otherwise, f(0)=0f(0)=0. Then P(x,−x)+P(−x,x)P(x,-x)+P(-x,x) gives (f(x)+f(−x))2=0(f(x)+f(-x))^2=0, hence ff is odd.

Suppose there exist a,ba,b such that f(a)=f(b)f(a)=f(b). Taking P(a,k−a)P(a,k-a) and P(b,k−b)P(b,k-b) gives f(kf(a))=f(a)2+f(a)f(k−a)=f(b)2+f(b)f(k−b)f(kf(a))=f(a)^2+f(a)f(k-a)=f(b)^2+f(b)f(k-b), hence f(a)=f(b)=0f(a)=f(b)=0 or f(k−a)=f(k−b)f(k-a)=f(k-b), the latter of which implies ff is periodic with period a−ba-b.

Take P(x,0)P(x,0) to get f(xf(x))=f(x)2f(xf(x))=f(x)^2. Now suppose that f(r)=0f(r)=0 for some rr. Then if f(x)≠0f(x)\ne 0 we get from P(x,r)P(x,r) that f(xf(x)+rf(x))=f(x)2=f(xf(x))≠0f(xf(x)+rf(x))=f(x)^2=f(xf(x))\ne 0, hence rf(x)rf(x) is a period of ff for all xx.

Suppose f(x)≠0f(x)\ne 0. Note that if we set xf(x)+yf(x)=xxf(x)+yf(x)=x, then from P(x,y)P(x,y) we get f(x)+f(y)=1f(x)+f(y)=1. Hence the range of ff is symmetric over 12\frac12, except one is not necessarily in the range.

Suppose now that ff is not constantly zero, so pick xx with f(x)≠0f(x)\ne 0. Then if rr is a root of ff, then rf(x)rf(x) is a period, but 1−f(x)1-f(x) is also in the range, hence r−rf(x)r-rf(x) is also a period. Thus rr is a period. In particular f(nr)=0f(nr)=0 for all n∈Zn\in\mathbb Z.

Now take P(x,−2x)P(x,-2x) to get f(−xf(x))=f(x)2+f(x)f(−2x)f(-xf(x))=f(x)^2+f(x)f(-2x), but by oddness this becomes −f(xf(x))=f(x)2−f(x)f(2x)-f(xf(x))=f(x)^2-f(x)f(2x). We have f(xf(x))=f(x)2f(xf(x))=f(x)^2, so plugging in we get either f(2x)=2f(x)f(2x)=2f(x) or f(x)=0f(x)=0. However if f(x)=0f(x)=0 then f(2x)=0f(2x)=0 by above, hence f(2x)=2f(x)f(2x)=2f(x) always. In particular, if kk is in the range, then so are 2k2k and k2\frac k2.

Let SS be the range of ff. We claim SS is a field. To do this, suppose a,b≠0∈Sa,b\ne 0\in S. We can find x,yx,y with f(x)=bf(x)=b and f(xf(x)+yf(x))=af(xf(x)+yf(x))=a, since the inside of the latter spans all real numbers. This then gives f(y)=ab−bf(y)=\frac ab-b. Next, note that 2b∈S2b\in S, and taking f(x)=2b,f(y)=ab−bf(x)=2b,f(y)=\frac ab-b gives f(xf(x)+yf(x))=2a+2b2f(xf(x)+yf(x))=2a+2b^2. Hence half of this which is a+b2a+b^2 is also in SS. Now we can find x,yx,y with f(x)=bf(x)=b and f(xf(x)+yf(x))=a+b2f(xf(x)+yf(x))=a+b^2, which gives f(y)=abf(y)=\frac ab upon plugging in. Hence SS is closed under division.

In particular a=ba=b gives 1∈S1\in S, hence a=1a=1 gives 1b∈S\frac1b\in S, and then we have a1/b=ab∈S\frac a{1/b}=ab\in S, hence SS is closed under multiplication as well. Additionally, SS is closed under addition since when a,b≠0a,b\ne 0 we get that for f(x)=a,f(y)=bf(x)=a,f(y)=b we have a+b=f(xf(x)+yf(x))f(x)∈Sa+b=\frac{f(xf(x)+yf(x))}{f(x)}\in S. From ff odd we get SS is closed under subtraction, hence SS is a field as desired.

Suppose now that bb is in the range, with f(a)=bf(a)=b, and that b≠1b\ne 1. Taking P(a,y)P(a,y) gives f(ab+by)=b2+bf(y)f(ab+by)=b^2+bf(y). Next P(a,ab−a)P\left(a,\frac ab-a\right) gives f(ab−a)=1−bf\left(\frac ab-a\right)=1-b.

Let cc be such that f(c)=1f(c)=1. Then P(c,y)P(c,y) gives f(c+y)=1+f(y)f(c+y)=1+f(y). Hence, setting y=−ay=-a gives f(c−a)=1+f(−a)=1−f(a)=1−bf(c-a)=1+f(-a)=1-f(a)=1-b. Hence from above we have that c−abc-\frac ab is a period of ff, hence 1+f(y)=f(c+y)=f(ab+y)1+f(y)=f(c+y)=f\left(\frac ab+y\right).

Now P(a,ab+y)P\left(a,\frac ab+y\right) gives f(ab+a+by)=b2+b+f(y)f(ab+a+by)=b^2+b+f(y). However this equals f(ab+by)+bf(ab+by)+b. Since ab+byab+by takes on any real value, we get f(x+a)=f(x)+bf(x+a)=f(x)+b for all xx. Hence f(ab+by)=b2+bf(y)=bf(a+y)f(ab+by)=b^2+bf(y)=bf(a+y). Since a+ya+y takes on any real value, we thus have that for any k∈Sk\in S we have f(kx)=kf(x)f(kx)=kf(x).

Hence when f(x)≠0f(x)\ne 0 we get f(xf(x)+yf(x))=f(x+y)f(x)=f(x)2+f(x)f(y)f(xf(x)+yf(x))=f(x+y)f(x)=f(x)^2+f(x)f(y), so f(x+y)=f(x)+f(y)f(x+y)=f(x)+f(y). This is true when f(x)=0f(x)=0 as well, since then xx is a period. Hence ff is additive.

Thus if we take some Hamel basis {ai}\{a_i\} of R\mathbb R over SS, we see that f(ai)∈Sf(a_i)\in S by definition of SS, and that f(∑kiai)=∑f(kiai)=∑kif(ai)f\left(\sum k_ia_i\right)=\sum f(k_ia_i)=\sum k_if(a_i), giving our solution set as desired.