# Local Linearity and Continuity of $x\sin{1\over x}$

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.

• You have to define $g(x)=f(x)$ when $x\neq 0$, and $g(0)=0$. Then $g$ is continuous. $f$ cannot be continuous at $x=0$ because it is not defined there. Your argument showing that $g$ is not differentiable at $x=0$ is correct. – uniquesolution Jun 26 '17 at 16:43
• Your reasoning is great (+1) But I don't like the term "local linear" at $x = 0$, it makes me think of some functions that are really linear in some neighborhood of $0$, and they have some nice property: math.stackexchange.com/questions/116964/… – Li Chun Min Jun 26 '17 at 17:07
• @LiChunMin your critics actually have some similarity with mine. One thing I feel curious is that.. my book denotes "local linear at x" is a equal term with "differentiable at x". But I've never seen this "local linear" description nowhere except this book – Beverlie Jun 26 '17 at 17:10

To prove that $$\lim_0\sin (\frac 1h)$$ doesn't exists, it is equivalent to show that $$\lim_{+\infty}\sin (x)$$ doesn't exist since it is an odd function.
$$\lim_{n\to+\infty}\sin (n\pi )=0$$ and $$\lim_{n\to+\infty}\sin (\frac \pi 2+2n\pi)=1.$$