f(0−0)=limh→01=1
and f(0+0)=limh→0[1+sin(0+h)]=1.
Since f(0+0)=f(0−0)=f(0), the function is continuous at x=0.
Now Lf′(0)=limh→01−1−h=0
and Rf′(0)=limh→01+sin(0+h)−1h=limh→0sinhh=1.
Since Lf′(0)≠Rf′(0), the function is non-differentiable at x=0.
At x=π/2, we have f(π/2)=2+(π/2−π/2)2=2, f(π/2−0)=limh→→0{1+sin(π/2−h)}=limh→0(1+cosh)=2,f(π2+0)=limh→0{2+(π2+h−π2)2}=2,
Since f(π/2+0)=f(π/2−0)=f(π/2), the function is continuous at x=π/2.
Now Lf′π2=limh→01+sin(π/2−h)−2−h =limh→01−coshh[form00]=limh→0sinh1=0
And Rf′π2=limh→02+(π/2+h−π/2)2−2h=limh→0h=0.
Since Rf′(π/2)=Lf′(π/2), the function is differentiable at x=π/2.