Proving that an additive function $f$ is continuous if it is continuous at a single point

Fix $a\in \mathbb{R}.$

Then

$\begin{align*}\displaystyle\lim_{x \rightarrow a} f(x) &= \displaystyle\lim_{x \rightarrow x_0} f(x - x_0 + a)\\ &= \displaystyle\lim_{x \rightarrow x_0} [f(x) - f(x_0) + f(a)]\\& = (\displaystyle\lim_{x \rightarrow x_0} f(x)) - f(x_0) + f(a)\\ & = f(x_0) -f(x_0) + f(a)\\ & = f(a). \end{align*}$

It follows $f$ is continuous at $a.$


Let's examine your situation. You have that $\lim_{x\rightarrow a} f(x) = f(a)$ for some $a\in \mathbb{R}$ and that for any $x,y\in \mathbb{R}, f(x)+f(y)=f(x+y)$. You want to prove that for any $c\in \mathbb{R}, \lim_{x\rightarrow c} f(x) = f(c)$. The key step here is to realize that $$\lim_{x\rightarrow c} f(x) = \lim_{x\rightarrow a} f(x-a+c)$$ because $|(x-a+c)-c| = |x-a|$, so in plain english $x$ is close to $a$ if and only if $x-a+c$ is close to $c$. We can then complete the proof as follows: $$\lim_{x\rightarrow a} f(x-a+c) = \lim_{x\rightarrow a} (f(x) + f(c-a)) = f(a) + f(c-a) = f(c)$$


Suppose $x=x_0, f(x_0) + f(y) = f(x_0 + y)$ taking limit as $y$ tends to $0$, we get $\lim_{y\rightarrow 0} (f(x_0) + f(y)) = \lim_{y\rightarrow 0} f(x_0 + y)$ From the continuity at $x_0$, we know that RHS of the above equation is $f(x_0)$ which means that $\lim_{y\rightarrow 0} f(y) =0$

Next bit it simple. For any $x,y$ in the domain, $f(x+y)=f(x)+f(y)$ continuity can be established by checking whether $\lim_{y\rightarrow 0} f(x+y) =f(x)$ which is true since $f(x+y)=f(x)+f(y)$ and $\lim_{y\rightarrow 0}f(y)=0$. Hence $f(x)$ is continuous everywhere in the domain.

I'm new here so I don't know how to input equations using latex. Pls bear with it.