Let $f$ be a function from defined on subset of a closed inteveral $[a, b]$ to the real line $\mathbb{R}$, such that $f$ has finite or infinite derivative everywhere in $(a, b)$ and $f$ has finite or infinite one-side derivative in the border.
Let $\overline{\mathbb{R}}=\mathbb{R} \cup \{+\infty, -\infty\}$ be the extended real line, i.e. $\mathbb{R}$ with the usual topology basis extedend with the open rays $(+\infty, r)$ and $(r, -\infty)$ for every $r \in \mathbb{R}$.
In other words we're asking that for every $c \in [a, b]$ it must be possible to define a funcion $g_c(x)$ in a neighborhood $U(c)$ of $c$ in $[a, b]$ such that $g_c(x)$ is continuous in $c$, $g_c(x)$ defined in this way:
$g_c:U(c) \rightarrow \overline{\mathbb{R}} \\ g_c(x)=\frac{f(x) - f(c)}{x-c}$
My question is about the set $S=\{c \ \ |\ \ g_c(c) \in \{+\infty, -\infty \}\}$, what can we say about $S$? Is this set compact? Is totally disconnected? Every point of $S$ is isolated?
.