Let $f:[0, \pi] \rightarrow \mathbb{R}$ be defined by $f(0)=0$ and $f(x)=x \sin \frac{1}{x}-\frac{1}{x} \cos \frac{1}{x}$ for $x \neq 0$. Is $f$ continuous ?
my method was that x $\sin \frac{1}{x}$ has limit value as zero as x tends to zero . So we can focus on just the $\frac{1}{x} \cos \frac{1}{x}$ , that term is having the form if infinity * some number between -1 and 1 , both inclusive , so we can say its indeterminate hence limit doesnt exist ? Or we cannot do this method as when we apply partwise limit check we need to ensure both limit exists?