Hello and a Happy New Year!!
Let $f:[-1,1]\rightarrow \mathbb{R}$ be defined by $f(x)=\begin{cases}\frac{1}{k} & \text{ for } x\in \left (\frac{1}{k+1}, \frac{1}{k}\right ], \ k \in \mathbb{N}\\ 0 & \text{ for } x=x_0=0 \\ \frac{1}{k} & \text{ for } x\in \left [\frac{1}{k}, \frac{1}{k-1}\right ), \ k \in \mathbb{Z}\setminus \mathbb{N}_0, \ \text{ i.e. } (-k)\in \mathbb{N}\end{cases}$
I want to examine the existence of $f'(x_0), \ \ f_+'(x_0), \ \ f_-'(x_0), \ \ \lim_{\substack{x\rightarrow x_0+0, \\ x\in D}}f'(x), \ \ \lim_{\substack{x\rightarrow x_0-0\\ x\in D}}f'(x)$.