The function f(x)=|x|+|x−1| is not differentiable at
0,1
f(x)=|x|+|x−1|=⎧⎪⎨⎪⎩2x−1x>110<x≤11−2xx≤0⎫⎪⎬⎪⎭
limx→1+f(x)−f(1)x−1=2x−1−1x−1=2
limx→1−f(x)−f(1)x−1=1−1x−1=0
limx→0+f(x)−f(1)x−0=1−1x=0
limx→0−f(x)−f(1)x−0=1−2x−1x=−2
∴ Function is not differentiable at x=0, 1