Find all functions $f:\Bbb{R}\to \Bbb{R}$ such that $f$ is continuous and $ f(f(x+y)) = f(x)+f(y)$
My steps: By inspection, $f(x)=x+c$ and $f(x)\equiv 0$ works, while $y=mx \,\,(m\neq1)$ and $y=mx+c\,\,(m\neq1)$ do not.
Setting $x=y=0$ gives $f(f(0))=2f(0)$
Setting $y=-x$ leads to $f(f(0)) = 2f(0) = f(x)+f(-x) \implies f(0) = \frac{f(x)+f(-x)}{2}$
However I am stuck here. Any suggestions?
Hint: Whenever $x+y=z+w$, we have $$f(x)+f(y)=f(f(x+y))=f(f(z+w))=f(z)+f(w).$$ Taking $g(x)=f(x)-f(0)$, see what you can deduce from this about $g$.
A full solution is hidden below.