f(x)=⎧⎪
⎪⎨⎪
⎪⎩x2x≤010<x≤11xx>1
f(x)=x2 for x<0 is continuous, being a polynomial function.
f(x)=1 for x∈(0,1) is continuous, being a constant function.
f(x)=1x for x>1 , again a part of reciprocal function, so continuous.
We need to check continuity at x=0 and x=1
At x=0
LHL=limx→0−f(x)
=limh→0f(0−h)
=limh→0(−h)2
⇒LHL=0
RHL=limx→0+f(x)
=limh→0f(0+h)
⇒RHL=1
f(0)=1
Since, LHL≠RHL.
So, the function is discontinuous at x=0
At x=1
LHL=limx→1−f(x)
=limh→0f(1−h)
⇒LHL=1
RHL=limx→1+f(x)
=limh→0f(1+h)
=limh→011+h
⇒RHL=1
f(1)=1
Since, LHL=RHL=f().
So, the function is continuous at x=1
Since, f(x) is not continuous at x=0
So, f(x) is also not differentiable at x=0
Now, we will check differentiability at x=1
Rf′(1)=limh→0f(1+h)−f(1)h
=limh→011+h−1h
⇒Rf′(1)=0
Since, Lf′(1)=Rf′(1)
Hence, f(x) is differentiable at x=1