Define $h(x) = 1$ except at $1$ where $h(1) = 0$. Also define $H(x) = \int_0^x h(t)$. Now I tried to show that $H$ is differentiable at $1$. My proof is to compute $$ \lim_{x \to 1^-} {H(1) - H(x)\over 1-x} = 1$$ and $$ \lim_{x \to 1^+} {H(x) - H(1)\over x-1} = 1$$
Hence $H$ is differentiable at $1$ and $H'(1) = 1$. Is it correct?