#654

solved

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

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

for any reals x,yx,y.

Solution

Solution by benjaminchew13.


Let P(x,y)P(x, y) be the given assertion.

P(1,y):f(f(y)f(1)+f(1))=y+1P(1, y) : f(f(y)f(1) + f(1)) = y + 1, so ff is bijective.

P(0,0):f(f(0)2+f(0))=0P(0, 0) : f(f(0)^{2}+f(0))=0.

P(0,y):f(f(0)f(y)+f(0))=0P(0, y):f(f(0)f(y)+f(0)) = 0.

So f(0)f(y)=f(0)2f(0)f(y) = f(0)^{2} for all yy. Since ff is bijective, taking f(y)≠f(0)f(y) \neq f(0) gives f(0)=0f(0) = 0.

P(x,0):f(f(x2))=x2P(x, 0) : f(f(x^{2})) = x^{2}.

P(x,−x):f(x2)=−f(x)f(−x)P(x, -x) : f(x^{2}) = -f(x)f(-x).

f(1)≠f(0)f(1) \neq f(0), so P(1,−1):f(−1)=−1P(1, -1) : f(-1) = -1.

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

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

So −f(y)f(1)=f(−y)-f(y)f(1) = f(-y).

f(y)=−f(−y)f(1)=f(y)f(1)2f(y) = -f(-y)f(1) = f(y)f(1)^{2}.

Since f(1)≠f(−1)=−1f(1) \neq f(-1) = -1, we have f(1)=1f(1) = 1.

So f(−y)=−f(y)f(-y) = -f(y), and so ff is odd.

But since f(f(x))=xf(f(x)) = x for all positive xx, we have that this holds for negative xx, and so f(f(x))=xf(f(x)) = x for all xx.

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

f(x2)=−f(x)f(−x)=f(x)2f(x^{2}) = -f(x)f(-x) = f(x)^{2}, so we have P(x,y):f(f(x)(f(y)+f(x)))=x2+xyP(x, y) : f(f(x)(f(y) + f(x))) = x^{2} + xy.

x→f(x),y→f(y)x\to f(x),y\to f(y) gives f(x2+xy)=f(x)2+f(x)f(y)f(x^{2} + xy) = f(x)^{2} + f(x)f(y).

Let this be the new P(x,y)P(x, y) (because it is equivalent to the original equation as f(f(x))=xf(f(x)) = x).

P(x,1x):f(1x)=1f(x)P\left( x, \frac{1}{x} \right) : f\left( \frac{1}{x} \right) = \frac{1}{f(x)} for all x≠0x \neq 0.

P(−x−y,y):f(x)2+f(x)f(y)=f(−(x+y))2+f(−(x+y))f(y)P(-x-y, y) : f(x)^{2} + f(x)f(y) = f(-(x + y))^{2} + f(-(x + y))f(y).

If x≠−x−yx \neq -x-y, then we have f(−(x+y))=−(f(x)+f(y))  ⟹  f(x+y)=f(x)+f(y)f(-(x + y)) = -(f(x) + f(y)) \implies f(x + y) = f(x) + f(y).

If x=−x−yx = -x-y, then we have y=−2xy = -2x, then since we have P(2,y):f(2y)=2f(y)P(2, y) : f(2y) = 2f(y) as f(1)=1  ⟹  f(2)=2f(1) = 1 \implies f(2) = 2, we have that f(x+y)=f(−x)=−f(x)=f(x)+(−2f(x))=f(x)+f(−2x)=f(x)+f(y)f(x + y) = f(-x) = -f(x) = f(x) + (-2f(x)) = f(x) + f(-2x) = f(x) + f(y).

So we have that ff is additive for both cases.

So ff is additive.

Then f(x)2+f(x)f(y)=f(x)2+f(xy)f(x)^{2} + f(x)f(y) = f(x)^{2} + f(xy), so ff is multiplicative.

Since ff is both additive and multiplicative, we have that f(x)≡0f(x) \equiv 0 and f(x)≡xf(x) \equiv x as the solutions.

But obviously f(x)≡0f(x) \equiv 0 doesn’t work, and so f(x)≡xf(x) \equiv x is the only solution, which is true as the plugging into the original equations give x2+xy=x2+xyx^{2} + xy = x^{2} + xy.