Let $f(x) = \begin{cases} 0 &\text{ if $x=0$}\\ \sin(1/x) &\text{ otherwise} \end{cases}$. Prove that $f$ is discontinuous at $0$
My proof goes like this: for the function to be continuous at 0, the following limit:
$\lim_{x\to 0}(\sin(1/x))$ needs to exist and be equal to 0.
Let $1/x=k$, I rewrite the limit expression as: $\lim_{k\to\infty}(\sin(k))$.
And since this limit oscillates, the limit does not exist. Therefore f(x) is not continuous at 0.
Am I correct?
I think you could be more explicit. By writing for example, as $k \to \infty$, $$ \frac1x=(4k+1)\frac \pi2 \implies \sin \left( (4k+1)\frac \pi2\right)=1\neq f(0)=0 $$ it is clearer.