Let $I$ be an open interval, $f:I\rightarrow \mathbb{R}$ be a convex function and $g:I\rightarrow \mathbb{R}$ increasing. Then, $g(x^-), g(x^+)$, $f'_-(x)$ and $f'_+(x)$ exist, for all $x\in I$. Now, assume that the following inequalities hold \begin{equation} g(x^-)\leq f'_-(x)\leq g(x)\leq f'_+(x)\leq g(x^+)\;\; ;\;\; x \in I. \end{equation} For example, the functions $f(x)=|x|$ and $g(x)=\mbox{sgn}(x)$ satisfy all the above conditions ($I=\mathbb{R}$).
Putting $I_g:=\{x\in I: g\mbox{ is continuous at } x\}$ and $I_f:=\{x\in I: f\mbox{ is differentiable at } x\}$ we have $I_g\subseteq I_f$ and $f'(x)=g(x)$ on $I_f$.
Now, we are looking for such functions $f$ and $g$ such that $I_f\neq I_g$.
Also, some examples such that $g(x^+)\neq f'_+(x)$ but $g(x^-)= f'_-(x)$, for some $x\in I$ (and similarly $g(x^-)\neq f'_-(x)$ but $g(x^+)=f'_+(x)$, for some $x\in I$).
Thanks in advance.