Give an example of a continuous strictly increasing function $g\colon \Bbb R\to \Bbb R$ which is differentiable at every $x$ not belonging to $\Bbb Z$ and not differentiable at any $x$ belonging to $\Bbb Z$.
Could I use a piecewise function to show this?
Best Answer
Here is a way to construct such a function.
EDIT v2 I've edited to use a strictly increasing function.
Here is a graphical depiction of the concept: