I'm sorry if my title sounds misleading, I don't know a better way to word my question briefly. But I have the following question about functions.
First, as long as $A$ is a dense subset of $\mathbb{R}$, note that we can still make sense of a derivative of a function $f : A \rightarrow \mathbb{R}$. It is also possible for the derivative to exist on removable discontinuities of $f$ that are outside of $A$, if the limit of the differential quotient exists.
With this in mind, for any function $f : \mathbb{R} \rightarrow \mathbb{R}$, we can define the following sets inductively:
- $D_0 := \mathbb{R}$
- $D_{n+1} := \{x \in \mathbb{R} : f^{(n)} : D_n \rightarrow \mathbb{R} \text{ is differentiable at } x \}$
My question is whether it is possible for $D_n$ to be a dense subset of $\mathbb{R}$ for all $n \in \mathbb{N}$, but any particular point stops being in these derivative sets eventually. More formally, is it possible that:
- $D_n$ is dense in $\mathbb{R}$ for all $n \in \mathbb{N}$
- $\bigcap_{n=0}^\infty \bigcup_{k=n}^\infty D_k = \emptyset$