The question is:
Given the function $f:[-1,1]\to\Bbb R$, defined by $$f(x)= \begin{cases}x\sin\frac{1}{x},& \text{for }x\neq 0\\ 0,&\text{for }x=0. \end{cases}$$
Prove that the function admits maximum and minimum in its domain (Note that you are not required to compute the maximum and minimum only to prove their existence).
I've started off using $$|f(x) - f(x_0)| < \varepsilon {\ } \forall x\in[-1,1]{\ } \text{ and }{\ }|x-x_0|<\delta$$
This gives me $$|f(x)-f(x_0)| = \left|x\sin\left(\frac{1}{x}\right) - 0\right| = \left|x\sin\left(\frac{1}{x}\right)\right| < \varepsilon{\ } \text{ as } {\ }f(x_0)=f(0)=0$$
However I don't know where to go from here so any suggestions would be really useful. Thank you!