#260

solved

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

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

for any reals x,yx,y.

Solution

Solution by gurt yoll, with the aid of ChatGPT.


The solutions are

f(x)=λx(λ∈R),f(x)=1−x,\boxed{f(x)=\lambda x\quad(\lambda\in\mathbb R)},\qquad \boxed{f(x)=1-x},

and

f(x)={1,x=0,0,x≠0..\boxed{ f(x)= \begin{cases} 1,&x=0,\\ 0,&x\ne0. \end{cases}}.

Let

P(x,y):f(x2+yf(x))=f(x)(x+f(y)).P(x,y):\qquad f(x^2+yf(x))=f(x)(x+f(y)).

Putting x=y=0x=y=0 gives f(0)∈{0,1}f(0)\in\{0,1\}.

First suppose f(0)=0f(0)=0. Then

P(x,0):f(x2)=xf(x),P(x,0):\qquad f(x^2)=xf(x),

so ff is odd. If f≡0f\equiv0, we are done. Otherwise choose values with nonzero image. Comparing P(x,y)P(x,y) and P(−x,y)P(-x,y) gives, whenever f(x)≠0f(x)\ne0,

f(x2+t)+f(x2−t)=2f(x2).f(x^2+t)+f(x^2-t)=2f(x^2).

Using oddness, this becomes the translation identity

f(t+2x2)=f(t)+2xf(x).(1)f(t+2x^2)=f(t)+2xf(x). \tag{1}

If f(t+h)=f(t)+kf(t+h)=f(t)+k for all tt, then comparing P(u,y+h)P(u,y+h) and P(u,y)P(u,y) for any uu with f(u)≠0f(u)\ne0 yields

f(t+hf(u))=f(t)+kf(u).(2)f(t+hf(u))=f(t)+kf(u). \tag{2}

Also, from P(x,−x2/f(x))P(x,-x^2/f(x)),

f(x2f(x))=x(f(x)≠0).(3)f\left(\frac{x^2}{f(x)}\right)=x \qquad(f(x)\ne0). \tag{3}

Take a,ba,b with f(a),f(b)≠0f(a),f(b)\ne0. Since f(b2)=bf(b)≠0f(b^2)=bf(b)\ne0, equation (3), applied at b2b^2, gives a uu with f(u)=b2f(u)=b^2. Applying (2) to the translation (1) coming from aa gives

f(t+2a2b2)=f(t)+2af(a)b2.f(t+2a^2b^2)=f(t)+2af(a)b^2.

Interchanging aa and bb gives

af(a)b2=bf(b)a2,af(a)b^2=bf(b)a^2,

so f(a)/a=f(b)/bf(a)/a=f(b)/b. Hence f(x)=λxf(x)=\lambda x whenever f(x)≠0f(x)\ne0.

There is no nonzero root: if f(y)=0f(y)=0 with y≠0y\ne0, choose xx with f(x)≠0f(x)\ne0. Then P(x,y)P(x,y) gives

f(x2+yf(x))=xf(x)=f(x2)≠0.f(x^2+yf(x))=xf(x)=f(x^2)\ne0.

Both arguments have nonzero image, so using f(z)=λzf(z)=\lambda z on the nonzero-image set forces y=0y=0, a contradiction. Thus in this case f(x)=λxf(x)=\lambda x for all xx.

Now suppose f(0)=1f(0)=1. From P(x,0)P(x,0),

f(x2)=(x+1)f(x).f(x^2)=(x+1)f(x).

Thus f(1)=0f(1)=0, and comparing xx with −x-x gives

(1+x)f(x)=(1−x)f(−x).(4)(1+x)f(x)=(1-x)f(-x). \tag{4}

Let x∉{−1,0,1}x\notin\{-1,0,1\} and f(x)≠0f(x)\ne0, and set q=(1−x)/(1+x)q=(1-x)/(1+x). Comparing P(x,y)P(x,y) with P(−x,qy)P(-x,qy) gives

f(qy)=qf(y)+1−q.(5)f(qy)=qf(y)+1-q. \tag{5}

Putting y=1y=1 yields f(q)=1−qf(q)=1-q. Since the map x↦(1−x)/(1+x)x\mapsto(1-x)/(1+x) is an involution, applying the same argument at qq gives f(x)=1−xf(x)=1-x at every nonexceptional point with nonzero image.

If no such point exists, then ff vanishes outside {−1,0,1}\{-1,0,1\}, with f(0)=1f(0)=1 and f(1)=0f(1)=0. Let c=f(−1)c=f(-1). From P(−1,y)P(-1,y),

f(1+yc)=c(−1+f(y)).f(1+yc)=c(-1+f(y)).

If c≠0c\ne0, choose yy so that both yy and 1+yc1+yc avoid {−1,0,1}\{-1,0,1\}; then the left side is 00 and the right side is −c-c, impossible. Hence c=0c=0, giving the exceptional solution.

Finally, if a nonexceptional xx with f(x)≠0f(x)\ne0 exists, equation (5) produces infinitely many nonexceptional uu with f(u)=1−uf(u)=1-u. For arbitrary yy, choose such a uu with u≠−f(y)u\ne -f(y) and

z=u2+y(1−u)∉{−1,0,1}.z=u^2+y(1-u)\notin\{-1,0,1\}.

Then P(u,y)P(u,y) gives

f(z)=(1−u)(u+f(y))≠0.f(z)=(1-u)(u+f(y))\ne0.

So f(z)=1−zf(z)=1-z, and therefore

1−u2−y(1−u)=(1−u)(u+f(y)).1-u^2-y(1-u)=(1-u)(u+f(y)).

Since u≠1u\ne1, this gives f(y)=1−yf(y)=1-y. The listed functions are all directly checked.