Let $f:\Bbb R\rightarrow \Bbb R\;$ s.t. $f(x) =x\sin{1\over x}$
Q1 : Is the $f$ continuous at $x=0$ ? If so, what is the value of $f(x)$ at $x =0$ ?
My Solution : Since $\sin{1\over x}$ trapped in a range of $-1 \text{ to } 1$, when $x$ goes to 0, $\lim\limits_{x\to 0} x\sin{1\over x} = 0$. Thus it's continuous and the value is $0$.
Q2: To check the Local linearity at $x =0$, we need to check whethere there exists derivative of $x\sin{1\over x}$ at $x =0$.
Firstly, we need to check whether $\lim\limits_{h\to0+}{f(x+h)-f(x)\over h} = \lim\limits_{h\to0-}{f(x+h)-f(x)\over h} $ when $x=0$
So by applying $f(0) = 0$ to both sides, we get:
$\lim\limits_{h\to0+}{f(h)\over h} = \lim\limits_{h\to0-}{f(h)\over h}$
but ${f(h)\over h} = \sin{1\over h}$ does not converge and keep moving between $-1$ and $1$. Thus it is not locally linear.
How's my reasoning? If true, leave some elaboration, else please denote the logical error.