D[Piecewise[{{xsin(1/x), x < 0 || x > 0 }, {0, x = 0}}], x]