Given that $f:[-1,0]\to\Bbb{R},\;\;g:[0,1]\to\Bbb{R},$ $f,g$ continuous with $f(0)=g(0).$
Let $h:[-1,1]\to\Bbb{R}$ be defined as
$$h(x)=\begin{cases}f(x)& -1\leq x\leq 0,\\g(x), &\;\;\;\;\;\;\;\;\;x>0.\end{cases}$$
How do I show that this $h(x)$ is continuous? That is:
$$\lim\limits_{x\to 0^+}h(x)=g(0)=f(0)=h(0)=\lim\limits_{x\to 0^-}h(x).$$
$``\epsilon-\delta"$ or "limit" approaches will be highly appreciated.
1) $f$ is left continuous at $x=0$.
Let $\epsilon >0$ be given.
There is a $\delta_1 >0$ such that for $x \in [-1,0]$
$|x| \lt \delta_1$ implies $|f(x)|\lt \epsilon.$
2) $g$ is right continuos at $x=0$.
There is a $\delta_2 >0$ such that for $x \in [0,1]$
$|x| \lt \delta_2$ implies $|g(x)|< \epsilon.$
Choose $\delta =\min(\delta_1,\delta_2)$.
Then for $x \in [-1,1] $:
$|x| \lt \delta$ implies $|h(x)| \lt \epsilon.$