For some $a\in \Bbb{R}$ define a function $f_{a}(x) = \begin{cases} {x^{a}\cos{1\over x}}, & \text{if $x$ $\ne$ 0} \\[2ex] 0, & \text{if $x=0$} \end{cases}$. Hints firstly are preferred.
b. For what values of $a$ is $f_{a}(x)$ continuous at $\Bbb{R}$?
$Attempt$: $\lim_\limits{x\to 0}\cos{1\over x}$ does not exist. Hence, $\cos{1\over x}$ is not continuous at 0. In order for $f$ to be continuous at $\Bbb{R}$, $f$ has to be continuous at $0$. Let us look at $\lim_\limits{x\to 0}x^{a}\cos{1\over x}$. Where $a\ge0$ $\lim_\limits{x\to 0}x^{a}\cos{1\over x}=\lim_\limits{x\to 0}x^{a}\lim_\limits{x\to 0}\cos{1\over x}=0$ But when $a<0$, $\lim_\limits{x\to 0}x^{a}\cos{1\over x}=\lim_\limits{x\to 0}x^{a}\lim_\limits{x\to 0}\cos{1\over x}=\lim_\limits{x\to 0}{1\over x^{-a}}\lim_\limits{x\to 0}\cos{1\over x}$ does not exist. So $f$ is continuous everywhere when $a>0$.
c. For what values of $a$ is $f_{a}(x)$ differentiable at $\Bbb{R}$?
d. For what values of $a$ is $f'_{a}(x)$ continuous at $\Bbb{R}$?