For each of the following two functions f:R→R, determine the set of points at which f is continuous, and also the set of points at which f is differentiable.
(i) f(x)={x−x if x∈Q if x∈/Q (ii) f(x)={xsin(1/x)0 if x=0 if x=0
By modifying the function in (i), or otherwise, find a function (not necessarily continuous) f:R→R such that f is differentiable at 0 and nowhere else.
Find a continuous function f:R→R such that f is not differentiable at the points 1/2,1/3,1/4,…, but is differentiable at all other points.