Well, that's a problem. Differentiating the function where x is not 0 then evaluating that at x= 0 does not necessarily give the derivative at x= 0.
For x not 0,
f(x)=x3sin(1/x2) so
f′(x)=3x2sin(1/x2)−x3cos(1/x2)(−2/x3)=3x2sin(1/x2)+2cos(1/x2).
Yes, that is not defined at x= 0 but, since that is the derivative only for h not x, it does not tell us anything about the derivative AT x= 0.
For h not 0,
f(h)=h3sin(1/h2) while f(0)= 0 so
hf(h)−f(0)=hh3sin(1/h2)=h2sin(1/h2)
To take the limit as h goes to 0, write it as
1/h2sin(1/h2) and let
u=1/h2. As h goes to 0, u goes to infinity so this limit is
u→∞limusin(u). As u goes to infinity, sin(u) always lies between -1 and 1 while the denominator, u, goes to infinity so this limit is 0.
The function is differentiable at x= 0 and the derivative there is 0.
Since the limit, as x goes to 0, of f' is not 0 (does not exist) f' is not continuous at 0 so can't be differentiable at x= 0. Therefore f itself is not twice differentiable at x= 0.