#396

solved

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

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

for any reals x,yx,y.

Solution

This is a trivial problem.


We claim the only solution is f(x)≡xf(x)\equiv x, which obviously works. We now show it is the only solution.


It is easy to check that the only linear function is f(x)=xf(x)=x.

We now prove a more general statement.


Statement: Suppose f,g,h:R→Rf,g,h:\mathbb{R}\rightarrow\mathbb{R} are functions such that for any reals x,yx,y, f(yf(x)+g(x))=yf(x)+h(x)f(yf(x)+g(x))=yf(x)+h(x). Show that ff is linear.


Proof. Let P(x,y)P(x,y) denote the assertion that f(yf(x)+g(x))=yf(x)+h(x)f(yf(x)+g(x))=yf(x)+h(x).

Obviously, ff cannot be constantly 00. Hence, there exists some real constant uu such that f(u)≠0f(u)\ne 0.

Now P(u,y−g(u)f(u)):f(y)=f(u)⋅y−g(u)f(u)+h(u)P(u,\frac{y-g(u)}{f(u)}):f(y)=f(u)\cdot \frac{y-g(u)}{f(u)}+h(u) which is linear, as desired.