Given the function $ f(n) = \begin{cases} x\sin (1/x), & x \neq 0 \\ 0, & x=0 \end{cases} $
describe the interval on which the function is continuous.
This function is a similar one to the one I asked about recently but the oscillations are damped by a factor of x
The solution says that you use the sandwich theorem to get:
$-|x| \leq x\sin (1/x) \leq |x|$, where $x\neq 0$
I was confused on where it got the $|x|$ in the inequality.
Notice that $$ -1 \le \sin(\theta) \le 1, $$ regardless of the value of $\theta$. This means that for any value of $x$ (other than zero), we have $$ -1 \le \sin\left(\frac{1}{x}\right) \le 1. $$ We would like to hit this inequality with a factor of $x$, but there is a slight problem: multiplication by a negative number reverses the direction of the inequalities. So, we can work in cases:
In either case, we obtain the desired result, and can apply the Squeeze (Sandwich) Theorem at zero.