For the absolute value function: $y = |x|$, how does the definition of limit apply:
The derivative of the function doesn't exist because the right hand derivative and the left hand derivative are not equal:
Right-hand derivative of $|x|$ at zero =
$$\lim_{x\to0^+} \frac{|0+h| - |0|}{h}$$
$$\lim_{x\to0^+} \frac{|h|}{h}$$
$$\lim_{x\to0^+} \frac{h}{h} = 1$$
Left-hand derivative of $|x|$ at zero =
$$\lim_{x\to0^+} \frac{|0+h| - |0|}{h}$$
$$\lim_{x\to0^+} \frac{|h|}{h}$$
$$\lim_{x\to0^-} \frac{-h}{h} = -1$$
My question is when h approaches $x$ from the negative part, why doesn't $h$ become negative in the denominator? If it is because, the denominator was formed by:
$$\lim_{x\to 0^+} \frac{f(x+h) - f(x)}{(x-h) - x}$$, and since $h$ approaches from the negetive side, it becomes positive, then, how would this justify the following function:

Where the function is defined only on the positive side.