I understand the concept behind this and it is quite obvious to me as to why but I am having problems proving this rigorously. To make things more "simple," imagine that there is function $f: [-2,2] \rightarrow \mathbb{R}$ and I must prove that $\lim_{x\rightarrow0}{f(x)}=L$ is true if and only if $\lim_{x\rightarrow0^+}{f(x)}=L$ and $\lim_{x\rightarrow0^-}{f(x)}=L$. Here is my attempt:
Using the definition, let there be set $[-2,2] \subseteq \mathbb{R}$ and $0$ be a cluster point of $[-2,2] \cap (0,\infty)$. Then let $f:[-2,2] \rightarrow \mathbb{R}$. Thus, $\lim_{x\rightarrow0^+}{f(x)}=L$ if for all $\epsilon > 0$, there is $\delta > 0$ such that for all $x \in [-2,2], 0 < x < 0 + \delta$, we have $|f(x)-L| < \epsilon$. In addition, $\lim_{x\rightarrow0^-}{f(x)}=L$ if for all $\epsilon > 0$, there is $\delta > 0$ such that for all $x \in [-2,2], 0 - \delta < x < 0$, we have $|f(x)-L| < \epsilon$. Then, since $-\delta < x < \delta$ and $|f(x)-L| < \epsilon$, we get that $\lim_{x\rightarrow0}{f(x)}=L$.
But I am not sure how to start the converse of this to finish the proof.