#393

solved

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

f(xf(x)+xf(y))=f(x2)+xyf(xf(x) + xf(y)) = f(x^2) + xy

for any reals x,yx,y.

Known appearances

Solution

Solution by gghx.


We claim the only solution is f(x)≡xf(x)\equiv x, which obviously works. We now show it is the only solution.


It is easy to check that the only linear function is f(x)=xf(x)=x.

We now prove a more general statement, which is linked above.


Statement: Suppose f,g,h:R→Rf,g,h:\mathbb{R}\rightarrow\mathbb{R} are functions such that for any reals x,yx,y, f(xf(y)+g(x))=xy+h(x)f(xf(y)+g(x))=xy+h(x). Show that ff is linear.


Substitute x=1x=1 to get f(f(y)+g(1))=y+h(1)f(f(y)+g(1))=y+h(1).

Now, substitute y→f(y)+g(1)y\rightarrow f(y)+g(1) to get f(xy+xh(1)+g(x))=xf(y)+xg(1)+h(x)f(xy+xh(1)+g(x))=xf(y)+xg(1)+h(x).

We now prove the following:


New statement: Suppose f,g,h:R→Rf,g,h:\mathbb{R}\rightarrow\mathbb{R} are functions such that for any reals x,yx,y, f(xy+g(x))=xf(y)+h(x)f(xy+g(x))=xf(y)+h(x). Show that ff is linear.


Proof. Let P(x,y)P(x,y) denote the assertion that f(xy+g(x))=xf(y)+h(x)f(xy+g(x))=xf(y)+h(x).

Claim 1: If f(y+c)=f(y)+df(y+c)=f(y)+d for constants c≠0,dc\ne 0,d and all y∈Ry\in \mathbb{R}, then ff is linear.

Proof. Using P(x,y+c)P(x,y+c) gives

f(xy+xc+g(x))=xf(y+c)+h(x)=xf(y)+xd+h(x)=f(xy+g(x))+xd.f(xy+xc+g(x))=xf(y+c)+h(x)=xf(y)+xd+h(x)=f(xy+g(x))+xd.

Hence, for any x≠0x\ne 0 we have f(y+g(x)+xc)=f(y+g(x))+xdf(y+g(x)+xc)=f(y+g(x))+xd. This is still obviously true when x=0x=0. Hence, taking y=−g(x)y=-g(x), we get f(xc)=f(0)+xdf(xc)=f(0)+xd, thus ff is linear.


Claim 2: If xg(−1)+2g(x)≠g(−1)xg(-1)+2g(x)\ne g(-1) for some x≠0x\ne 0, then ff is linear.

Proof. P(−1,y):f(−y+g(−1))=−f(y)+h(−1)P(-1,y): f(-y+g(-1))=-f(y)+h(-1). Hence

f(−xy+xg(−1)+g(x))=xf(−y+g(−1))+h(x)=−xf(y)+xh(−1)+h(x).f(-xy+xg(-1)+g(x))=xf(-y+g(-1))+h(x)=-xf(y)+xh(-1)+h(x).

The RHS is actually −f(xy+g(x))+xh(−1)+2h(x)-f(xy+g(x))+xh(-1)+2h(x).

Simplifying,

f(−y+xg(−1)+g(x))=−f(y+g(x))+xh(−1)+2h(x) for all x≠0f(-y+xg(-1)+g(x))=-f(y+g(x))+xh(-1)+2h(x)\text{ for all }x\ne0   ⟺  f(−y+xg(−1)+2g(x))=−f(y)+xh(−1)+2h(x) for all x≠0.\iff f(-y+xg(-1)+2g(x))=-f(y)+xh(-1)+2h(x)\text{ for all }x\ne0.

Suppose tg(−1)+2g(t)≠g(−1)tg(-1)+2g(t)\ne g(-1) for some t≠0t\ne 0, then letting tg(−1)+2g(t)=atg(-1)+2g(t)=a and th(−1)+2h(t)=bth(-1)+2h(t)=b we get f(−y+a)=−f(y)+bf(-y+a)=-f(y)+b, but

f(−y+a)=f(−(y−a+g(−1))+g(−1))=−f(y−a+g(−1))+h(−1).f(-y+a)=f(-(y-a+g(-1))+g(-1))=-f(y-a+g(-1))+h(-1).

This means f(y)−f(y−a+g(−1))−h(−1)+bf(y)-f(y-a+g(-1))-h(-1)+b, which means ff is linear from claim 1.


Else, we have xg(−1)+2g(x)=g(−1)xg(-1)+2g(x)=g(-1) for all x≠0x\ne 0, which means xh(−1)+2h(x)=h(−1)xh(-1)+2h(x)=h(-1) for all x≠0x\ne 0. Hence g,hg,h are both linear (except at 00).

Now in the original equation, picking yy constant such that it is not the negative of the gradient of gg, we get that ff is linear everywhere except at one point.


We are almost done, suppose f(x)=ax+bf(x)=ax+b for all x≠kx\ne k, g(x)=c(x−1)g(x)=c(x-1) and h(x)=d(x−1)h(x)=d(x-1) for all x≠0x\ne 0. Then taking any x≠0x\ne 0 and yy really large such that ∣xy+g(x)∣,∣y∣>k|xy+g(x)|,|y|>k gives axy+ag(x)+b=axy+xb+h(x)axy+ag(x)+b=axy+xb+h(x), so ac(x−1)+b=xb+d(x−1)ac(x-1)+b=xb+d(x-1), which forces ac=b+dac=b+d.

If k≠−ck\ne -c, then we can take y=ky=k, which gives f(xk+c(x−1))=xf(k)+d(x−1)f(xk+c(x-1))=xf(k)+d(x-1). By taking xx sufficiently large, we get axk+ac(x−1)+b=xf(k)+d(x−1)axk+ac(x-1)+b=xf(k)+d(x-1). This simplifies to axk+b(x−1)+b=xf(k)axk+b(x-1)+b=xf(k) so f(k)=ax+bf(k)=ax+b as well, done.

If k=−ck=-c, then if we take y=ky=k, we get f(xk+(−k)(x−1))=xf(k)+d(x−1)f(xk+(-k)(x-1))=xf(k)+d(x-1), so f(k)=xf(k)+d(x−1)f(k)=xf(k)+d(x-1). By taking xx sufficiently large, f(k)=−df(k)=-d. But this means f(k)=f(−c)=−d=b−ac=a(−c)+bf(k)=f(-c)=-d=b-ac=a(-c)+b as well, so we are done too!

This completes the proof.