#416

solved

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

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

for any reals x,yx,y.

Solution

Solution by isache.


The solutions are

f(x)=x,f(x)=−x,f(x)=1−x.\boxed{f(x)=x},\qquad \boxed{f(x)=-x},\qquad \boxed{f(x)=1-x}.

First, ff is injective: if f(a)=f(b)f(a)=f(b), comparing P(x,a)P(x,a) and P(x,b)P(x,b) for some xx with f(x)≠0f(x)\ne0 gives a=ba=b.

Suppose f(0)=0f(0)=0. From P(x,0)P(x,0),

f(xf(x))=x2,f(xf(x))=x^2,

and comparing xx with −x-x gives f(−x)=−f(x)f(-x)=-f(x). Also f(x)≠0f(x)\ne0 for x≠0x\ne0.

Putting y=−x2/f(x)y=-x^2/f(x) in P(x,y)P(x,y) gives

f(x2f(x))=x.f\left(\frac{x^2}{f(x)}\right)=x.

Replacing xx by f(x)f(x) and using injectivity yields

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

Also P(1,0)P(1,0) gives f(f(1))=1f(f(1))=1, so f(1)=±1f(1)=\pm1.

If f(1)=1f(1)=1, then

f(f(x)+1)=x+1,f(f(x)−1)=x−1.f(f(x)+1)=x+1,\qquad f(f(x)-1)=x-1.

Hence f(x+2)=f(x)+2f(x+2)=f(x)+2. Then P(2,x)P(2,x) gives f(2f(x))=2xf(2f(x))=2x, and using the shift by 22 gives f(x+1)=f(x)+1f(x+1)=f(x)+1. Therefore f(f(x))=xf(f(x))=x, and (1) gives f(x)=±xf(x)=\pm x pointwise. The shift f(x+1)=f(x)+1f(x+1)=f(x)+1 rules out any nonzero point with f(x)=−xf(x)=-x, so f(x)=xf(x)=x.

If f(1)=−1f(1)=-1, the same argument gives

f(x+1)=f(x)−1,f(x+1)=f(x)-1,

and again f(f(x))=xf(f(x))=x, so f(x)=±xf(x)=\pm x pointwise. This shift forces f(x)=−xf(x)=-x for all xx.

Now suppose f(0)=c≠0f(0)=c\ne0. From P(0,0)P(0,0) and P(0,c2)P(0,c^2), we get c3=cc^3=c, so c=±1c=\pm1, and f(1)=0f(1)=0. Then P(1,0)P(1,0) forces c=1c=1. Thus P(0,x)P(0,x) gives

f(f(x))=x.f(f(x))=x.

Comparing P(x,1)P(x,1) and P(f(x),1)P(f(x),1) gives

f(x)2−f(x)=x2−x,f(x)^2-f(x)=x^2-x,

so f(x)∈{x,1−x}f(x)\in\{x,1-x\} for every xx. Since f(0)=1f(0)=1 and f(1)=0f(1)=0, the pair {0,1}\{0,1\} is swapped.

If f(a)=af(a)=a and a≠12a\ne\frac12, then P(a,0)P(a,0) gives

f(a2+a)=a2.f(a^2+a)=a^2.

As every value is either fixed or reflected by x↦1−xx\mapsto 1-x, this forces a=−1a=-1 or a=12a=\frac12. Thus the only possible fixed point other than 12\frac12 is −1-1. But if f(−1)=−1f(-1)=-1, injectivity forces f(2)=2f(2)=2, and then applying the previous argument to a=2a=2 is impossible. Hence no such aa exists, and f(x)=1−xf(x)=1-x for every xx.

All three listed functions are directly checked.