#397

solved

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

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

for any reals x,yx,y.

Known appearances

Solution

Note: we show the solution for the statement in the AoPS thread, which is f(yf(x))=x2+f(x)f(y−x)f(yf(x))=x^2+f(x)f(y-x).


Solution by hyay.


We claim the only solutions are f(x)≡xf(x)\equiv x, f(x)≡−xf(x)\equiv -x, f(x)≡x+1f(x)\equiv x+1 and f(x)≡1−xf(x)\equiv 1-x, which obviously work. We now show they are the only solutions. Let P(x,y)P(x,y) denote the assertion that f(yf(x))=x2+f(x)f(y−x)f(yf(x))=x^2+f(x)f(y-x).


P(0,0):f(0)=f(0)2⟹f(0)=0P(0, 0) : f(0) = f(0)^2 \Longrightarrow f(0) = 0 or f(0)=1f(0) = 1.

Case 1: f(0)=0f(0) = 0. Then we have

P(x,0):f(x)f(−x)=−x2P(x, 0) : f(x)f(-x) = -x^2.

P(1,1):f(f(1))=1P(1, 1) : f(f(1)) = 1.

⟹P(f(1),f(1)):f(f(1))=f(1)2\Longrightarrow P(f(1), f(1)) : f(f(1)) = f(1)^2.

⟹f(1)=1\Longrightarrow f(1) = 1 or f(1)=−1f(1) = -1.

If f(1)=1f(1) = 1, then P(1,0)P(1, 0) gives f(−1)=−1f(-1) = -1, so.

P(1,x+1):f(x+1)=f(x)+1P(1, x+1) : f(x + 1) = f(x) + 1.

P(−1,x):f(−x)=1−f(x+1)P(-1, x) : f(-x) = 1 - f(x + 1).

⟹f(x)=−f(−x)⟹P(x,0):f(x)=x\Longrightarrow f(x) = -f(-x) \Longrightarrow P(x, 0) : f(x) = x or f(x)=−xf(x) = -x.

Suppose there exists x≠0x \neq 0 such that f(x)=−xf(x) = -x, then f(x+1)=−x+1f(x + 1) = -x + 1, which is neither x+1x + 1 nor −x−1-x - 1, contradiction. Hence, f(x)=xf(x) = x for all x∈Rx \in \mathbb{R}.

If f(1)=−1f(1) = -1, then we can similarly prove f(x)=−xf(x) = -x for all xx.


Case 2: f(0)=1f(0) = 1

P(1,0):f(1)f(−1)=0⟹f(1)=0P(1, 0) : f(1)f(-1) = 0 \Longrightarrow f(1) = 0 or f(−1)=0f(-1) = 0.

Notice that if f(x)f(x) is a solution, then f(−x)f(-x) is also a solution, so WLOG assume f(1)=0f(1) = 0.


Claim 1: ff is surjective.

Proof. P(x+1,x):f((x+1)f(x))=x2P(x+1, x) : f((x+1)f(x)) = x^2, so all nonnegative reals are in the range of ff.

P(x,1f(x)):0=x2+f(x)f(1f(x)−x)P(x, \frac{1}{f(x)}) : 0 = x^2 + f(x)f(\frac{1}{f(x)} - x) where x,f(x)≠0x, f(x) \neq 0, then there exists tt such that f(t)<0f(t) < 0.

P(t,x):f(xf(t))=t2+f(t)f(x−t)P(t, x) : f(xf(t)) = t^2 + f(t)f(x-t), since f(t)f(x−t)f(t)f(x-t) can take any negative value, all negative reals are in the range of ff.

Hence, ff is surjective.


Suppose u,v∈Ru, v \in \mathbb{R} so that f(u)=12f(u) = \frac{1}{2} and f(v)=−1f(v) = -1.

Claim 2: If f(x)=f(y)f(x) = f(y) for some x,y∈Rx, y \in \mathbb{R}, then x2=y2x^2 = y^2.

Proof.

P(v,−x):f(−x−v)=v2−f(x)P(v, -x) : f(-x-v) = v^2 - f(x).

P(x,−v):f(−vf(x))=x2+f(x)(v2−f(x))P(x, -v) : f(-vf(x)) = x^2 + f(x)(v^2 - f(x)).

Comparing P(x,−v)P(x, -v) and P(y,−v)P(y, -v) gives our desired result.


Claim 3: f(12)=12f(\frac{1}{2}) = \frac{1}{2}.

Proof.

P(v,−x):f(−x−v)=v2−f(x)P(v, -x) : f(-x-v) = v^2 - f(x).

P(v,v2):f(−v2)=v22P(v, \frac{v}{2}) : f(-\frac{v}{2}) = \frac{v^2}{2}.

P(u,−v):f(−v2)=u2+12(v2−12)=v22+u2−14⟹u=12P(u, -v) : f(-\frac{v}{2}) = u^2 + \frac{1}{2}(v^2 - \frac{1}{2}) = \frac{v^2}{2} + u^2 - \frac{1}{4} \Longrightarrow u = \frac{1}{2} or u=−12u = -\frac{1}{2}.

Assume f(−12)=12f(-\frac{1}{2}) = \frac{1}{2}. Then,

P(−12,−12):f(−14)=34P(-\frac{1}{2}, -\frac{1}{2}) : f(-\frac{1}{4}) = \frac{3}{4}.

P(12,−12:f(14)=14P(\frac{1}{2}, -\frac{1}{2} : f(\frac{1}{4}) = \frac{1}{4}.

P(−14,1):f(34)=14P(-\frac{1}{4}, 1) : f(\frac{3}{4}) = \frac{1}{4}.

contradicting Claim 2, so f(12)=12f(\frac{1}{2}) = \frac{1}{2}.


Now, we have

P(12,12):f(14)=34P(\frac{1}{2}, \frac{1}{2}) : f(\frac{1}{4}) = \frac{3}{4}.

P(12,x):f(12x)=12f(x−12)+14P(\frac{1}{2}, x) : f(\frac{1}{2}x) = \frac{1}{2}f(x - \frac{1}{2}) + \frac{1}{4}.

P(14,x):f(14x)=14f(x−34)+916P(\frac{1}{4}, x) : f(\frac{1}{4}x) = \frac{1}{4}f(x - \frac{3}{4}) + \frac{9}{16}.

⟹14f(x−34)+916=f(14x)=12f(12x−12)+14=14f(x−32)+38\Longrightarrow \frac{1}{4}f(x - \frac{3}{4}) + \frac{9}{16} = f(\frac{1}{4}x) = \frac{1}{2}f(\frac{1}{2}x - \frac{1}{2}) + \frac{1}{4} = \frac{1}{4}f(x - \frac{3}{2}) + \frac{3}{8}.

⟹f(x+34)=f(x)−34\Longrightarrow f(x + \frac{3}{4}) = f(x) - \frac{3}{4}.

Finally,

P(x,34):f(34f(x))=x2+f(x)f(34−x)=(x2+f(x)f(−x))−34f(x)=1−34f(x)P(x, \frac{3}{4}) : f(\frac{3}{4}f(x)) = x^2 + f(x)f(\frac{3}{4} - x) = (x^2 + f(x)f(-x)) - \frac{3}{4}f(x) = 1 - \frac{3}{4}f(x).

and since ff is surjective, f(x)=1−xf(x) = 1 - x for all x∈Rx \in \mathbb{R}. After removing our assumption, we get two solutions, f(x)=x+1f(x) = x + 1 and f(x)=1−xf(x) = 1 - x.