Determine all singularites of function in $\bar{\mathbb{C}}$ and question its character:
$$f(z) = z^{3}e^{1/(2z)} + \frac{z + 2\pi}{z-2\pi}\,\cot (z).$$
It seems to me that singularities are $z =k\pi, k \in \mathbb{Z}$ and $z=\infty$. Now, I'm having trouble with determining its character. At first, I was thinking of developing to Laurent's series, but I got stuck at the $\cot (z)$ part. Are there any other ways to solve this problem, and can you help me with $\cot (z)$?
Recalling that $\cot z = \cos z / \sin z$, we see $f(z)$ is not defined in all $z_k = k\pi$, $k \in \mathbb Z$. However, $f(z)$ is defined for all $z$ with $0 < \lvert z - z_k \rvert < \pi$, hence the $z_k$ are isolated singularities. Let us study first the singularities of $$g(z) = \frac{z + 2\pi}{z-2\pi}\,\cot (z).$$ $\sin z$ has zeros of order $1$ at all $z_k$, hence $\cot z$ has poles of order $1$ at all $z_k$. Thus $g(z)$ has poles of order $1$ at all $z_k$, $k \ne 2,-2$. At $z_2$ it has a pole of order $2$ and at $z_{-2}$ it has a removable singularity (because $\sin z /(z + 2 \pi)$ has a removable singularity at $z_{-2}$).
Thus the same is true for $f(z)$ except at $z_0 = 0$. Note that $e^{1/2z}$ has an essential singularity at $0$, thus the same is true for $f$.
What about $\infty$? It depends on the definition of a singularity. In my interpretation a singularity of a function $\phi$ is a point $\zeta$ at which $\phi$ is not defined, but for which we have an open neighborhood $U$ such that $\phi(z)$ is defined for all $z \in U \setminus \{ \zeta \}$. If you agree with this, then $\infty$ is no singularity of $f$ because there does not exist a neighborhood $U$ of $\infty$ such that $f(z)$ is defined for all $u \in U \setminus \{ \infty \}$. This comes from the fact that each $U$ contains almost all $z_k$.