Assume $f$ is a function over $\mathbb{R}$ satisfying $f(x+y) = f(x)+f(y)$ for all $x,y \in \mathbb{R}$. Show that if $f$ is continuous, then $f(x) = cx$ for all $x \in \mathbb{R}.$
I find it hard to use the definition of continuity to derive anything from the equation. I think we could write the definition of the limit in terms to get $$\forall \epsilon,\exists \delta \quad 0<|x-a|<\delta \quad \implies \quad |f(x)-L| < \epsilon.$$ I am not sure where to go from here.
Hint: $f(0+0)=f(0)+f(0)$. This implies that $f(0)=0$.
Write $f(1)=c$, let $n>0$ be an integer, recursively, show that $f(n)=nc$.
This implies that $f(n-n)=0=f(n)+f(-n)$. Deduce that $f(-n)=c(-n)$. Thus, $n\in Z$ implies $f(n)=cn$.
$f(q(1/q)=qf(1/q)=c$ thus $f(1/q)=c/q$, $f(p/q)=pf(1/q)=cp/q, p,q\in Z$.
If you want the result for $R$, every real $x$ is a limit of a sequence $(x_n)$ of rational, since $f$ is continuous, $f(x)=lim_nf(x_n)=lim_ncx_n=cx$.