Let $f:\mathbb R\to \mathbb R$ and $f(f(x)) = x + f(x)$, $x\in\mathbb R$
Prove that:
a) $f$ is injectiveb) $f(0) = 0$
c) $f(\mathbb R) = \mathbb R$
My solution:
a) Let $x_1, x_2 \in \mathbb R$ and $f(x_1) = f(x_2)$ then
$f(f(x_1)) = f(f(x_2))$
$x_1 + f(x_1) = x_2 + f(x_2)$
$x_1 = x_2$ therefore $f$ is injective.
b) Let $x=0$ then $f(f(x)) = x + f(x)$
$f(f(0)) = 0 + f(0)$
$f(f(0)) = f(0)$ but $f$ is injective therefore
$f(0) = 0$
c) Here is the point where I get stuck. How do I solve this?
I think I have to begin saying, let $y\in\mathbb R$ and prove that there is a $x\in\mathbb R$ for which $f(x) = y$.
The solution (given by my teacher).
Let $y\in \mathbb R$ I'll prove that there is a $x \in \mathbb R$ for which $f(x) = y$
$f(x) = y$
$f(f(x)) = f(y)$
$x + f(x) = f(y)$
$x + y = f(y)$
$x = f(y) - y$
therefore $f(\mathbb R) = \mathbb R$