#412

solved

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

f(xf(x)+yf(x))=f(x2)+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 f(x)=xf(x)=x and f(x)=0f(x)=0 are the only solutions, which work.

Denote the assertion by P(x,y)P(x,y). Note P(0,0)P(0,0) gives f(0)2=0f(0)^2=0, hence f(0)=0f(0)=0. Next P(x,0)P(x,0) gives f(xf(x))=f(x2)f(xf(x))=f(x^2).

Note that if ff is injective, this immediately implies f(x)=xf(x)=x for all xx. Hence suppose that for some a,ba,b we have f(a)=f(b)=cf(a)=f(b)=c. First P(a,b)P(a,b) and P(b,a)P(b,a) give f(ac+bc)=f(a2)+c2=f(b2)+c2f(ac+bc)=f(a^2)+c^2=f(b^2)+c^2, so f(a2)=f(b2)f(a^2)=f(b^2).

Next take P(a,x−a)P(a,x-a) and P(b,x−b)P(b,x-b) to get f(xf(a))=f(a2)+cf(x−a)f(xf(a))=f(a^2)+cf(x-a) and likewise for bb, but this implies cf(x−a)=cf(x−b)cf(x-a)=cf(x-b). Hence cc is zero, or f(x−a)=f(x−b)f(x-a)=f(x-b), hence ff is periodic with period a−ba-b.

Assume the latter is never true, so ff is injective except for its roots. Hence from f(xf(x))=f(x2)f(xf(x))=f(x^2) we get f(x2)=0f(x^2)=0 or f(x)=xf(x)=x.

Assume for some nonzero xx that f(x2)≠0f(x^2)\ne 0, so f(x)=xf(x)=x. If no y≠0y\ne 0 goes to zero, then ff is injective. Hence pick y≠0y\ne 0 with f(0)=0f(0)=0. Then P(x,y)P(x,y) gives f(x2+xy)=f(x2)f(x^2+xy)=f(x^2). Since xy≠0xy\ne 0, we have that x2x^2 is a root, contradiction. Hence f(x2)=0f(x^2)=0, so all nonnegatives map to zero.

Suppose there are x,yx,y with f(x),f(y)≠0f(x),f(y)\ne 0. Then P(x,y)P(x,y) and P(y,x)P(y,x) give f(xf(x)+yf(x))=f(x)f(y)=f(xf(y)+yf(y))f(xf(x)+yf(x))=f(x)f(y)=f(xf(y)+yf(y)). Since f(x)f(y)≠0f(x)f(y)\ne 0, injectivity gives xf(x)+yf(x)=xf(y)+yf(y)xf(x)+yf(x)=xf(y)+yf(y). Since x,yx,y must both be negative, this implies f(x)=f(y)f(x)=f(y). Since they are nonzero again, we get x=yx=y. Hence there exists at most one value of xx with f(x)f(x) nonzero.

Suppose such xx exists. For this value of xx, take P(x,x)P(x,x) giving f(2xf(x))=f(x)2f(2xf(x))=f(x)^2. Since f(2xf(x))f(2xf(x)) is nonzero, we get 2xf(x)=x2xf(x)=x, so f(x)=12f(x)=\frac12. However, plugging in gives 12=14\frac12=\frac14, contradiction. Hence ff is constantly zero.

Otherwise, ff is periodic. Let pp be a period of ff and take P(x+p,y)P(x+p,y) and P(x,y+p)P(x,y+p) to get f(xf(x)+yf(x)+pf(x))=f((x+p)2)+f(x)f(y)=f(x2)+f(x)f(y)f(xf(x)+yf(x)+pf(x))=f((x+p)^2)+f(x)f(y)=f(x^2)+f(x)f(y). Hence f(x2)=f((x+p)2)f(x^2)=f((x+p)^2), and similarly these equal f((x+2p)2)f((x+2p)^2). Assume f(x2)≠0f(x^2)\ne 0, so that from our injectivity argument it follows that (x+p)2−x2=2xp+p2(x+p)^2-x^2=2xp+p^2 is a period. Similarly (x+2p)2−(x+p)2=2xp+3p2(x+2p)^2-(x+p)^2=2xp+3p^2 is a period. Taking thrice the former minus the latter gives 4xp4xp is a period.

Taking the period pp here to be 14\frac14 gives that xx is a period, but f(x)=0f(x)=0 implies f(xf(x))=f(x2)=0f(xf(x))=f(x^2)=0, contradiction, so 14\frac14 is not a period. Taking the period pp here to itself be 4xp4xp gives that 16x2p16x^2p is a period. Hence if xx is positive we have that f(x)≠0f(x)\ne 0 implies 16xp16xp is a period.

In fact we can remove the positivity constraint, since if qq is a period then we can pick a positive integer nn such that x+nqx+nq is positive, then from f(x+nq)=f(x)≠0f(x+nq)=f(x)\ne 0 we have 16p(x+nq)16p(x+nq) is a period. We also get 16p(x+(n+1)q)16p(x+(n+1)q) is a period, so their difference 16pq16pq is a period, hence 16px16px is a period as required.

Let yy be a root of ff and suppose xx has f(x2)≠0f(x^2)\ne 0. Then f(xf(x)+yf(x))=f(x2)=f(xf(x))≠0f(xf(x)+yf(x))=f(x^2)=f(xf(x))\ne 0 gives yf(x)yf(x) is a period by our injectivity argument. Hence if ff is not constantly zero, by periodicity we can choose such an x2x^2, which implies f(x)=c≠0f(x)=c\ne 0 from f(xf(x))=f(x2)f(xf(x))=f(x^2).

Hence we have that for each xx, if it goes to zero, then cxcx is a period, otherwise 16px16px is a period. Since 14\frac14 is not a period, taking x=164px=\frac1{64p} must give that c64p\frac c{64p} is a period. Hence taking pp to be this in 16px16px, we get that for each xx at least one of cxcx or cx4p\frac{cx}{4p} is a period. Changing variables, we get that at least one of xx or 4px4px is a period.

Hence if xx is not a period then 4px4px is, and so is 16px16px. However we have shown that if qq is a period, then 16pq16pq is a period. Hence 16px16px is always a period. Since this takes every real value, we get that every real is a period of ff, hence ff is constantly zero.

This resolves all cases, hence f(x)=xf(x)=x and f(x)=0f(x)=0 are the only solutions.