Here f(0)=0. For h<0,f(h)=0, and for h>0,f(h)=2h.
Left: h0−0Right: h2h−0=h0=0=h2h=2
Both quotients are constant (h=0 cancels), so the limits are 0 and 2.
Lf′(0)=Rf′(0), so f is not differentiable at x=0.
Why?
Watch out: f is continuous at 0, since both pieces give 0 there. It is still not differentiable: the graph has a corner at the origin, with slope 0 on the left and slope 2 on the right.
For x>0,f(x)=2x (linear) and for x<0,f(x)=0 (constant), so f is differentiable at every x=0.
So f is differentiable exactly on (−∞,0)∪(0,∞). Options (a) and (b) leave out half of these points, and (d) wrongly includes 0.
Answer: (c) (−∞,0)∪(0,∞)
Where this comes from
Chapter 5, Continuity and Differentiability: Differentiability of x + |x|.