I am trying to prove continuity of the function
$$\text{Let } f(x)=\begin{cases} f_1(x) = \frac{1}{x} & \text{if }x\in (0,\frac{1}{2}] \\ f_2(x) = 2 & \text{if }x\in(\frac{1}{2},1) \end{cases}$$
I have proved the continuity of $f_1$ and $f_2$ over their respective intervals but I am now stuck at the left continuity of $f$ at point $c=\frac12$.
So far I have, where for $x<\frac12$ for all $\epsilon>0$ there exists a $\delta>0$ such that $\vert x-\frac12\vert<\delta$ implies:
$$\vert f(x)-f(\frac12)\vert=\vert\frac1x-2\vert$$ from here I am pretty sure this is wrong but I tried doing: $$\vert\frac1x-2\vert=\vert\frac{2}{2x}-\frac{4x}{2x}\vert=\frac{2}{x}\vert\frac12-x\vert=\frac{2}{x}\vert x-\frac12\vert$$ and if this somehow worked, I don't really know what I should choose my $\delta$ to be.
Thanks in advance.