f(x)=1−xx if x≤0 and f(x)=1+xx if x≥0
At x = 0, left handed derivative =limh→0−hf(0−h)−f(0) =limh→0−hf(−h)−f(0)=limh→0−h1+h−h−0 =limh→01+h1=1
and right handed derivative =limh→0hf(0+h)−f(0) =limh→0hf(h)−f(0)=limh→0h1+hh−0 =limh→01+h1=1 ∴l.h.derivative = r.h. derivative at x = 0
Hence f(x) is differentiable at x = 0
Further f′(x)=(1−x)21 , where x≤0
and f′(x)=(1+x)21, where x≥0
Thus f′(x) exists for all values of x in the interval (−∞,∞)