We have, f(x)=max.[(1−x),(1+x),2] for x∈(−∞,∞)
or f(x)=<br/><br/>⎩⎨⎧<br/><br/>1+x<br/><br/>2<br/><br/>1−xx>1−1≤x≤1x<−1<br/><br/>
Since, f(x) is a polynomial and constant function which is defined for every values of x,
therefore f(x) is continuous for all values of x∴f(x) is differentiable for all values of x except at x=1 and −1. Alternate Solution :
We have, f(x)=<br/><br/>⎩⎨⎧<br/><br/>1+x<br/><br/>2<br/><br/>1−xx>1−1≤x≤1x<−1<br/><br/>
It is clear from the figure that f(x) is continuous everywhere and f(x) is differentiable everywhere except at x=1,−1. Note : Every differentiable function is continuous but every continuous function is not differentiable.