$$\require{cancel}$$ I want to study the singularities of the function
$$f(z)=z^{n}\sin\left ( \frac{1}{z} \right )$$ for $$n\in \mathbb{N}-\{0\}$$ and $$z\in \mathbb{C}$$
I don't understand how to grasp that the function has a essential singularity in $$z=0$$
From real analysis I remember that $$\lim_{x\to0}x^{n}\sin\left ( \frac{1}{x} \right )=0$$
I know that for essential singularities in $$z=z_{k}$$ $$\lim_{z\to z_{z}}\left | f(z) \right |=\cancel{\exists}$$
Where is the mistake or the contradiction? What about the residue?
Thank u so much.
If the singularity would be non-essential, the function $f(z)=z^m\sin \frac{1}{z}$ would be holomorphic for $m$ large enough. But this contradicts the identity theorem, because this function has infinitely many zeros in any neighborhood of $0$, because $f\Bigg(\cfrac{1}{\pi l}\Bigg)=0$ for any $l \in \mathbb Z$.