Find the points where $f(x)=1-|x|$ is not differentiable in the interval $[-1,1]$
My solution goes like this:
We claim that the function $f(x)=1-|x|$ is not differentiable at $x=0.$ Thus is true indeed, since $f'(0)=\lim_{\Delta x\to 0}\frac{f(\Delta x)-1}{\Delta x}=\lim_{\Delta x\to 0}\frac{1-|\Delta x|-1}{\Delta x}=\lim_{\Delta x\to 0}\frac{-|\Delta x|}{\Delta x}.$ Now, if $\Delta x>0$ then $f'(0)=-1$ and if $\Delta x>0$ then $f'(0)=1.$ Thus, $f'(0)$ does not exist. Next, we claim $x=1$ is also such a point where $f(x)$ is non-differentiable. Now, $$f'(1)=\lim_{\Delta x\to 0}\frac{f(1+\Delta x)-f(1)}{\Delta x}=\lim_{\Delta x\to 0}\frac{f(1+\Delta x)}{\Delta x}$$ If $1+\Delta x>0$, then $f(1+\Delta x)$ does not exist, since $1+\Delta x\notin [-1,1]$ and thus the Right -Hand Limit does not exist or rather can'tbe calculated. Thus, the limit $f'(1)$ doesnot exist at all. Hence, $f(x)$ is not differentiable at $1.$ Similarly, we can prove $f(x)$ is not differentiable at $x=1.$
Is the above solution correct? If not, where is it going wrong?
First summarize some comments (now deleted, though useful).
Now, a complete answer to your question "Is the above solution correct? If not, where is it going wrong?"
Edit, upon request per comments: My summary of the unfortunately deleted comments above was not complete. It should include a third point: your prefered definition of $\lim_{t\to a}g(t)=L$ (different from Hardy's and Stewart's one quoted in the second point) implicitely requires $g$ to be defined on both sides of $a$ (i.e. on $(a-\varepsilon,a)\cup(a,a+\varepsilon)$ for some $\varepsilon>0$). If you submit to this restriction, limits (hence also derivatives) at end points of a domain are not defined (better said than "cannot be calculated"), not in the sense "undefined" like an indeterminate form, but simply voluntarily excluded from the definitions. With this convention, the poor $f'(\pm1)$ in your example are de facto deprived of a definition, so that the correct answer to "is $f$ differentiable at $\pm1$?" is not "no" but "this question does not make sense, by lack of a definition". It is even a waste of time, for such an answer, to talk about left and right limits and derivatives (invoking the theorem that when you stick to functions $g$ defined on both sides of $a,$ $\lim_ag$ exists iff $\lim_{a^+}g$ and $\lim_{a^-}g$ exist and are equal).
Edit: related post: Differentiability at endpoints