Extend the displayed function by . Its difference quotient at zero is , which tends to zero. Away from zero its derivative is . At this derivative equals , whereas at it equals . Thus differentiability implies continuity of the function but does not imply continuity of its derivative.
A real function is differentiable at an interior point when the finite limit
exists, with restricted so lies in its domain. In quantified form, for every there is such that implies that the difference quotient differs from by less than .
To prove differentiability implies continuity, the convergent difference quotient is bounded by for sufficiently small nonzero . Thus . This is exactly continuity at .
At zero, the particular function has difference quotient . The bound and the squeeze theorem give
For , the product rule and chain rule give
At this equals , although and . At it equals . Hence the derivative has no limit at zero and is not continuous there. This demonstrates that differentiability does not imply continuity of the derivative, even though the function itself is continuous.
On the nonzero axis the function equals one, whereas its assigned value at the origin is zero. Therefore does not tend to as . It is not a continuous function there, and differentiability implies continuity shows
A function is a differentiable function at if there is a linear map with
The map is its derivative; equivalently for fixed constants. Since every such linear map is bounded, . This proves differentiability implies continuity, not merely continuity along each coordinate axis.
By differentiability implies continuity, . Add and subtract in the difference quotient:
The two quotient limits exist by the given differentiability. Taking the limit and using continuity yields the product rule:
Thus the product is differentiable at the specified point; differentiability elsewhere is not needed.
At zero, , so the function is continuous. At a nonzero , approach along rational and irrational sequences; density of the rational numbers and density of the irrational numbers give limiting values and , which are different. Thus the continuity set is .
At zero, the difference quotient is one for rational nonzero increments and minus one for irrational increments, so the derivative does not exist. Elsewhere differentiability implies continuity, and continuity already fails. Thus the differentiability set is .