Q: Does $f'(0)$ exist?
$ f(x) = \begin{cases} 0 & x= 0 \\ x\sin(\frac{9}{x}) & x\ne 0 \end{cases} $
Why or why not?
How about if the $x$ in front of sine changes to $x^3$ or $x^2$ ?
Q: Does $f'(0)$ exist?
$ f(x) = \begin{cases} 0 & x= 0 \\ x\sin(\frac{9}{x}) & x\ne 0 \end{cases} $
Why or why not?
How about if the $x$ in front of sine changes to $x^3$ or $x^2$ ?
Hint: If $f(x)=x^a\sin\frac{9}{x}$ for $x\neq 0$, then $$\frac{f(x)-f(0)}{x-0}=x^{a-1}\sin\frac{9}{x},$$ from which you can deduce that the limit as $x\longrightarrow 0$ exists if and only if $a>1$.
You can compute the derivative of each possibility in the piecewise function and check for consistency at $x=0$
$$ f'=\left\{ \begin{array}{ll} 0 & \quad x=0 \\ \sin\left(\frac{9}{x}\right)-\frac{9}{x}\cos\left(\frac{9}{x}\right) & \quad x \neq 0 \end{array} \right. $$ If both approach the same value as $x \to 0$ then the derivative exists.
For different $x^a$ you have:
$$ f'=\left\{ \begin{array}{ll} 0 & \quad x=0 \\ ax^{a-1}\sin\left(\frac{9}{x}\right)-9x^{a-2}\cos\left(\frac{9}{x}\right) & \quad x \neq 0 \end{array} \right. $$
Again, check if the limits are equal.