The correct option is D f(x) is not differentiable at x=0,1
f(x) is defined as f(x)=⎧⎪⎨⎪⎩−x,x<0x2,0≤x≤1x2−x+1,x>1
limx→0f(x)=f(0),limx→1f(x)=f(1)
So, f(x) is continuous function
Now, f′(x)=⎧⎪⎨⎪⎩−1,x<02x,0<x<12x−1,x>1
At x=0, f′(0−)=−1,f′(0+)=2(0)=0
At x=1,f′(1−)=2(1)=2,f′(1+)=2(1)−1=1
Hence we find that f′(0−)≠f′(0+),f′(1−)≠f′(1+)
∴f(x) is not differentiable at x=0,1.