Does ‘derivative exists at a point’ imply ‘derivative is continuous at the point’

derivatives

The condition of a derivative existing at a point is that slopes to the curve drawn from the left hand side of the point, and the slopes drawn from right hand side of the point must approach the same value. The condition for continuity at a point is that the value of a function must must approach the same value from both sides as we approach the point from both sides.

The value of the derivative function is the slope itself, and the derivative function exists at a point only when the slope approaches the same value from both sides (left hand derivative = right hand derivative condition). That means it's at the point continuous too right? Is there anything wrong with this reasoning?

Best Answer

Consider the function:

g(x) := \begin{array}{rl} x^2 \sin(1/x), & x \ne 0 \\ 0, & x = 0 \\\end{array}.

Then, we have:

g'(x) = \begin{array}{rl} 2x \sin(1/x) - \cos(1/x) & x \ne 0 \\ 0, & x = 0 \\\end{array}

Observe that $g'$ is not continuous at $0$ but $g'(0)=0$.