#429

solved

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

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

for any reals x,yx,y.

Solution

Solution by OronSH.


The solutions are

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

The zero function works. Now assume ff is not identically zero. If f(a)=0f(a)=0 for some a≠0a\ne0, then P(a,y)P(a,y) gives f(ay)=f(0)f(ay)=f(0) for every yy, so ff is constant, impossible. Hence 00 is the unique zero. Also P(−f(0),0)P(-f(0),0) gives f(−f(0))=0f(-f(0))=0, so f(0)=0f(0)=0.

Putting y=1y=1 in

P(−f(y),y)P(-f(y),y)

gives

f(−f(1))2=−f(−f(1)).f(-f(1))^2=-f(-f(1)).

The value f(−f(1))f(-f(1)) cannot be 00, so it is −1-1. Thus −1-1 is in the range. Moreover, if f(d)=−1f(d)=-1, then P(d,1)P(d,1) gives

f(−d−f(1))=0,f(-d-f(1))=0,

so d=−f(1)d=-f(1). Therefore −1-1 has the unique preimage c=−f(1)c=-f(1).

If f(a)=f(b)f(a)=f(b) with a,b≠0a,b\ne0, comparing

P(ca,a)andP(ca,b)P\left(\frac ca,a\right) \quad\text{and}\quad P\left(\frac ca,b\right)

gives f(bc/a)=−1f(bc/a)=-1, hence bc/a=cbc/a=c and a=ba=b. Thus ff is injective.

Now P(1,0)P(1,0) and P(c,0)P(c,0) give

f(f(1))=f(1)2=1,f(f(1))=f(1)^2=1,

so f(1)=±1f(1)=\pm1, and in either case f(−1)=−f(1)f(-1)=-f(1). Comparing P(1,y)P(1,y) and P(−1,−y)P(-1,-y) then gives f(−y)=−f(y)f(-y)=-f(y).

Using P(−f(x),x)P(-f(x),x) together with oddness and P(x,0)P(x,0) yields

f(−f(x))2=f(x)2.f(-f(x))^2=f(x)^2.

Therefore f(−f(x))=±f(x)f(-f(x))=\pm f(x). By injectivity and oddness, this implies pointwise

f(x)∈{x,−x}.f(x)\in\{x,-x\}.

Thus ff is surjective. If f(1)=1f(1)=1, then P(1,y)P(1,y) and surjectivity give f(t+1)=t+1f(t+1)=t+1 for all tt, hence f(x)=xf(x)=x. If f(1)=−1f(1)=-1, the same equation gives f(−1−t)=1+tf(-1-t)=1+t, hence f(x)=−xf(x)=-x. The listed functions all work.