We have the function $$f(x)=\begin{cases}x^2 , & x\geq 1 \\ x-1 , & x<1\end{cases}$$ Is the function continuous at $x_0=1$ ?
To check that using the $\epsilon$-$\delta$ criterion we have the following :
Let $\epsilon>0$ arbitrarily.
$$|f(x)-f(x_0)|=|f(x)-f(1)|=|f(x)-1|$$ Do we take cases if $x<1$ and if $x>1$ ?
I mean do we do the following ?
For $x<1$ : $$|f(x)-f(x_0)|=|f(x)-f(1)|=|f(x)-1|=|x-1-1|=|x-2|$$ For $x>1$ : $$|f(x)-f(x_0)|=|f(x)-f(1)|=|f(x)-1|=|x^2-1|=|x+1|\cdot |x-1|$$ For this one we cannot find an upper bound since $|x+1|$ is not bounded, right?
$f$ is discontinuous at $1$ if $\exists\epsilon>0$ such that $\forall \delta>0, \exists x_0\in \Bbb{R} $ with $|x_0-1|<\delta$ but $|f(x_0)-1|\ge \epsilon$
Let $\delta>0$ be given. Now by Archimedean property of Real numbers, we can choose $n\in\Bbb{N}$ such that $\frac{1}{n}<\delta$
Let $x_0=1-\frac{1}{n}$ , then $|x_0-1|=|1-\frac{1}{n}-1|=\frac{1}{n}<\delta$
But
$\begin{align}|f(x_0) -1|&=|1-\frac{1}{n}-1-1|\\&=1+\frac{1}{n}>1\end{align}$
Choose $\epsilon=1$ , then $\forall\delta>0, \exists x_0=1-\frac{1}{n}\in (1-\delta, 1+\delta) $ but $|f(x_0)-1|>\epsilon$