How can we solve
$\lim_{h\rightarrow0}{\frac{|x+h|-|x|}{h}}$ with $x,h \in \mathbb{R}$, and similar limit problems with absolute values?
Note that although this represents $\frac{d}{dx}|x|$, I would like learn to solve this without any kind of differentiation/integration rules.
$\endgroup$ 02 Answers
$\begingroup$Besides Thomas's nice answer, you can use another way for finding what did you asked about. If $f(x)=|x|$ then $$f'^+(0)=\lim_{x\to 0^+}\frac{f(x)-f(0)}{x-0}=\lim_{x\to 0^+}\frac{|x|-|0|}{x}=\lim_{x\to 0^+}\frac{|x|}{x}=\lim_{x\to 0^+}\frac{+x}{x}=1$$ and $$f'^-(0)=\lim_{x\to 0^-}\frac{f(x)-f(0)}{x-0}=\lim_{x\to 0^-}\frac{|x|-|0|}{x}=\lim_{x\to 0^-}\frac{|x|}{x}=\lim_{x\to 0^-}\frac{-x}{x}=-1$$. This can show that $f(x)$ is not differentiable at $x=0$. I want to remark you in Thomas's first sentence. We can not write a general solving way for every absolute functions without knowing the function and the given point.
$\endgroup$ 3 $\begingroup$One approach to absolute values is to consider different cases.
If $x>0$, then for $h$ small enough, you will have $x + h > 0$, so $\lvert x\lvert = x$ and $\lvert x+h\lvert = x + h$, so $$ \lim_{h\to 0} \frac{\lvert x+h\lvert - \lvert x\lvert}{h} = \lim_{h\to 0} \frac{x+h - x}{h} = 1 $$
If $x<0$, then likewise $\lvert x\lvert = -x$ and $\lvert x+h\lvert = -(x+h)$.
If $x = 0$, you can consider the two limits where $h$ approaches $0$ from the left and from the right. For example: for $h$ approaching $0$ from the right, you have $h>0$, so $\lvert h\lvert = h$ and $$ \lim_{h\to 0^+} \frac{\lvert 0 + h\lvert - \lvert 0 \lvert}{h} = \lim_{h \to 0^+}\frac{h}{h} = 1. $$ Likewise you get $$ \lim_{h\to 0^-} \frac{\lvert 0 + h\lvert - \lvert 0 \lvert}{h} = \lim_{h \to 0^+}\frac{-h}{h} = -1. $$ What you have actually then shown is that the limit does not exist for $x=0$ since the right hand and the left hand limits to not equal. Hence $y = \lvert x\lvert$ is not differentiable at $x=0$.
$\endgroup$ 4