📖 Explanation
Continuity and differentiability are assessed by evaluating the limits of the function at the transition points of its piecewise definition. Simplifying the expression, f(x)=x+2sin(x+2) for x∈(−2,−1), f(x)=0 for x∈(−1,0], f(x)=2x for x∈(0,1), and f(x)=1 for all other values of x.
We identify points of discontinuity by examining the behavior at the interval boundaries. Approaching −1 from the left yields a limit of sin(1), while the limit from the right is 0 and the function value at −1 is 1; thus, x=−1 is a point of discontinuity. Similarly, approaching 1 from the left results in a limit of 2, but the function value at 1 and the limit from the right are both 1, making x=1 another point of discontinuity. This confirms there are m=2 points of discontinuity.
Because a function must be continuous to be differentiable, the points x=−1 and x=1 are automatically points of non-differentiability. At x=0, where the function is continuous, we evaluate the left-hand and right-hand derivatives. The left-hand derivative, calculated as the limit of −hf(0−h)−f(0), is 0, while the right-hand derivative, hf(0+h)−f(0), is 2. Since these derivatives are unequal, x=0 is a third point of non-differentiability, resulting in n=3 total points where the function is not differentiable.