I have a function:
$$f(z) = \frac{e^{\frac{1}{z}}}{(z+2)^2}$$
do I understand correctly that I have to find singular points in the numerator as well as denumerator? Also how am I supossed to find residues of the given function if it has different singularity types? Should I rewrite it like this?
$$f(z) = e^{\frac{1}{z}}\cdot\frac{1}{(z+2)^2}$$
and therefore $e^{\frac{1}{z}}$ can be treated as especial singularity and be expanded to the laurent series with $\frac{1}{z} = t$ and see then which summand triggers $z^{-1}$ after expansion?
and $\frac{1}{(z+2)^2}$ should be treated as a part that has second-order pole and therefore standard formula should be applied here?
The function is not defined at $0$ and $-2$; it is otherwise holomorphic in a neighborhood of all other points.
Since $e^{1/z}$ is holomorphic in a neighborhood of $-2$, we clearly have that $-2$ is a pole of order $2$ for $f$
Since $(z+2)^{-2}$ is holomorphic in a neighborhood of $0$ and $e^{1/z}$ has an essential singularity at $0$ (your justification is good), $0$ is also an essential singularity for $f$.
In order to find the residue at $-2$, it's better to consider $w=z+2$ and find the residue of $g(w)=w^{-2}e^{1/(w-2)}$ at $0$. If $$ e^{1/(w-2)}=\sum_{k\ge0}a_nw^k $$ then $$ g(w)=\sum_{k\ge-2}a_{k+2}w^k $$ and therefore the residue is $a_1$; can you compute it?
For the residue at $0$, consider $u=2/z$, and $$ h(u)=\frac{1}{4}e^{u/2}\frac{u^2}{(1+u)^2} $$ which has a zero of order $2$ at $0$, so it can be written as $$ \sum_{k\ge2}b_ku^k $$ What can you derive from this about the Laurent series for $f$?