Show that the function $g(x) = x^2 \sin(\frac{1}{x}) ,(g(0) = 0)$ is everywhere differentiable and that $g′(0) = 0$
Show that the function $g(x) = x^2 \sin\left(\frac{1}{x}\right) ,(g(0) = 0)$ is everywhere differentiable and that $g′(0) = 0$.
Solution 1:
HINT 1
The only problematic point is at $x=0$. (Why?)
Move your cursor over the gray area below for the next hint.
HINT 2 Use the definition of the derivative at a point i.e. $$f'(x) = \lim_{h \to 0} \dfrac{f(x+h) - f(x)}{h}$$
Move your cursor over the gray area below for the next hint.
HINT 3 Recall that $\vert \sin(y) \vert$ is bounded by $1$.
Move your cursor over the gray area below for the next hint.
HINT 4 Use the above to sandwich the desired limit to give the answer.
Move your cursor over the gray area below for the complete solution.
Solution $$\lim_{h \to 0} \dfrac{g(0+h) - g(0)}{h} = \lim_{h \to 0} \dfrac{h^2 \sin(1/h) - 0}{h} = \lim_{h \to 0} h \sin(1/h)$$ Now note that $$\vert h \sin(1/h) \vert \leq \vert h \vert$$ Hence, we have that $$-\lim_{h \to 0} \vert h \vert \leq \lim_{h \to 0} h \sin(1/h) \leq \lim_{h \to 0} \vert h \vert$$ Hence, we get that $$\lim_{h \to 0} h \sin(1/h) = 0$$ Therefore, $$g'(0) = 0$$
Solution 2:
We need to check differentiality only at $x=0$ since $x^2$ is differential everywhere and $\sin(\frac{1}{x})$ is differential everywhere except at $x=0$.
Now L.H.D.$= \lim_{h\to 0}\frac{h^2\sin(\frac{1}{h})-0}{h}=\lim_{h\to 0}h\sin(\frac{1}{h})=0$
Similarly, R.H.D.$=\lim_{h\to 0}\frac{(-h)^2\sin(\frac{1}{-h})-0}{-h}=\lim_{h\to 0}h\sin(\frac{1}{h})=0$
Since, L.H.D.=R.H.D., therefore, $g'(0)$ exists and equal to $0$.