#257

solved

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

f(x2+yf(x))=x2+f(xy)f(x^2 + yf(x)) = x^2 + f(xy)

for any reals x,yx,y.

Solution

Solution by primenumbersfun.


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

Plugging P(0,y)P(0, y) gives f(f(0)y)=f(0)f(f(0)y)=f(0). Suppose FTSOC f(0)≠0f(0) \ne 0. Then by varying yy we see that ff is constant, so f(x)=cf(x)=c for all xx. Then P(x,y)P(x,y) gives c=x2+cc=x^2+c so x=0x=0 but this is not true for all xx. Thus f(0)=0f(0)=0.

Plugging P(x,0)P(x,0) gives f(x2)=x2f(x^2)=x^2 so f(x)=xf(x)=x for all x≥0x \ge 0. Then P(1,y)P(1,y) gives f(y+1)=f(y)+1f(y+1)=f(y)+1.

Now we induct on intervals of length 11. Suppose for an integer kk, all numbers xx in the interval (−k−1,−k](-k-1, -k] satisfy f(x)=xf(x)=x. Then for any number yy in the range (−k−2,−k−1](-k-2, -k-1] we have f(y+1)=1+f(y)f(y+1)=1+f(y) so y+1=1+f(y)y+1=1+f(y) so f(y)=yf(y)=y, completing the inductive step. The base case is just k=−1k=-1. Thus the only solution is f≡xf \equiv x.