Let $k \in \mathbb{N}$ and let $f_{k}$ be a function $f_{k}: \mathbb{R} \rightarrow \mathbb{R}$ with $f_{k}(x)= \begin{cases} x\neq 0 \ f_{k}(x)=\ x^{k} \sin(\frac{1}{x}) \\ x=0 \ \ f_{k}(x)=0 \end{cases}$ For which $k$ is the function differentiable?
Hey guys I'm preparing for exams and I'm trying to improve my proof-writing. Is this one correct?
By definition the derivative is characterized as $\lim_{h \rightarrow 0} \frac{f_{k}(h)-f(0)}{h}$. Thus the the question is equivalent to: For which $k$ does the limit $\lim_{h \rightarrow 0} h^{k-1} \sin(\frac{1}{h})$ exist?
Let $k>1$. Notice that the exponent in the expression $h^{k-1}$ is positive due to our assumption. Further notice that $-1 \leq \sin(\frac{1}{h}) \leq 1$. We multiply the inequality with $h^{k-1}$ and find $h^{k-1} \leq h^{k-1} \sin(\frac{1}{h}) \leq h^{k-1}$. Since $\lim_{h \rightarrow 0} -h^{k-1}=0$ and $\lim_{h \rightarrow 0} h^{k-1}=0$ we know by using the squeeze theorem that $\lim_{h \rightarrow 0} h^{k-1} \sin(\frac{1}{h})=0$. Not only have we shown the existance, we even calculated the limit explicitly. Thus for $k>1$ the function is differentiable.
Let $k=1$ and one can check by using this that the limit becomes $\lim_{h \rightarrow 0} f_k(h)=\lim_{h \rightarrow 0} \sin(\frac{1}{h})$. Assume the limit existed and take the two sequences $x_n:=\frac{1}{2 \pi n+ \pi/2}$ and define $y_n:=\frac{1}{2 \pi n}$ with $x_n, y_n \rightarrow 0$ for $n \rightarrow \infty$. then we find $\sin(\frac{1}{x_n})=\sin(2 \pi n+ \pi/2)=1$ but also $\sin(\frac{1}{y_n})=\sin(2 \pi n)=0$. But if the limit existed the values should match, but they don't. So for $k=1$ not differentiable.
Let $k < 1$. Now notice that we can rewrite the limit $\lim_{h \rightarrow 0} \frac{\sin(\frac{1}{h})}{h^{1-k}}$. Our assumption assures that the exponent $1-k$ is always postitive. Assume the limit existed . Thus we find by substituting $x_n$ that $\frac{\sin(\frac{1}{x_n})}{x_n^{1-k}}=\sin(2 \pi n + \pi/2)(2 \pi n + \pi /2)^{1-k}$. But $\sin(2\pi n + \pi/2)=1$ and thus we find that the limit with the sequence doesn't even exist. So for $k < 1$ not differentiable.
So the function $f_k$ is differentiable if and only if $k>1$