f(x) = sin, f(0) = 0
Continuity at 0: |f(x)| <= -> 0. Yes, continuous.
Differentiability at 0: f'(0) = lim [ sin]/h = lim h*sin = 0. Yes, differentiable.
But f' is discontinuous at 0: For x != 0: f'(x) = 2x sin - cos. As x->0, the -cos term oscillates between -1 and 1. So lim f'(x) does not exist.
Lesson: f'(a) can exist even when f' is discontinuous at a. The derivative exists via the limit definition, but f' is not continuous.
Contrast with x*sin, f(0)=0: f'(0) = lim sin = DNE. So f is continuous but NOT differentiable at 0.
Rule of thumb: * sin: differentiable at 0 if n >= 2, not differentiable if n = 1.