$f(x) = \begin{cases} 2x-1 & \text{when }x<2 \\ 5 & \text{when }x=2 \\ \frac{1}{2}x + 2 & \text{when }x>2 \end{cases}$
I am learning Calculus But I can't seem to understand why this function has a removable discontinuity at $x=2$.
So far I have solved functions like this:
$f(x) = \frac{x^2-5x+6}{x-3} $
In such cases, I can clearly see that by factoring discontinuity at $x=3$ can be removed. But unfortunately, in the case of piecewise function above, I am not able to understand why discontinuity is removable at x = 2.
Removable discontinuity means that $\lim_{x\rightarrow 2^-}f(x)=\lim_{x\rightarrow 2+} f(x) $.
$\lim_{x\rightarrow 2^-}f(x)=2(2)-1=3$ and $\lim_{x\rightarrow 2^+}f(x)=2/2+1=3$.