I am trying to find the residue of $\frac{e^z-1-z}{\sin z -z}$ at $z=0$. What I have done so far is to taylor expand the numerator and denominator:
$$\frac{\frac{1}{2}z^2+O(z^3)}{-\frac{1}{6}z^3+O(z^5)}$$
However, I am now stuck and dont see how to divide this rational function to find the coefficient of the $z^{-1}$ term.
Any tips? Any other methods to suggest?
You can notice that $0$ is a zero of order $2$ of the numerator and of order $3$ of the denominator. Hence it is a simple pole and the residue is simply given by $$\text{Res}_0(f) = \lim_{z\to 0} zf(z).$$ In your case \begin{align*}\lim_{z\to 0} z\frac{e^z-1-z}{\sin z -z}&=\lim_{z\to 0}\frac{(e^z-1-z)+z(e^z-1)}{\cos(z)-1}\\ & = \lim_{z\to 0} \frac{e^z-1+ze^z+e^z-1}{-\sin(z)}\\ & = \lim_{z\to 0} \frac{3e^z+ze^z}{-\cos(z)}\\ & = -3 \end{align*}
where I have applied multiple times the complex version of De l'Hospital theorem.