In this week's lecture we discussed L'Hopital's Rule and that it can be used to determine the type of singularity. Judging from the examples shown I assume that when after applying L'Hopital's Rule one gets 0, then it's a pole of some degree. If it's $\neq 0$, but still finite, then it's a removable singularity.
Is that really the case? Because I have been doing some workbook exercises and $\frac{sin(z)-tan(z)}{z^2}$ is supposed to have a removable singularity at z=0, and after applying L'Hopital's Rule twice I land on $\frac{-sin(z)-2sec^2(z)tan(z)}{2}$ which is clearly 0 for z=0, meaning it would be a pole of degree 2 (because I had to use L'Hopital's Rule twice).
Any help would be appreciated.
(I)...Let $U$ be a nbhd of $0.$ Let $f$ and $g$ be analytic and not constant on $U$ with $f(0)=g(0)=0,$ and let $g(z)\ne 0$ for $z\in U$ \ $\{0\}.$ For $z\in U$ we have $f(z)=z^af_1(z)$ and $g(z)=z^bg_1(z),$ where $a,b$ are positive integers, and $f_1,g_1$ are analytic on $U$ with $f_1(0)\ne 0\ne g_1(0).$
So $f(z)/g(z)=z^{a-b}f_1(z)/g_1(z)$ for $z\in U$ \ $\{0\}.$ Therefore we have
(i). If $a>b$ then $\lim_{z\to 0}f(z)/g(z)=0.$
(ii).If $a=b$ then $\lim_{z\to 0}f(z)/g(z)=f_1(0)/g_1(0)\ne 0.$
(iii).If $a<b$ then $\lim_{z\to 0}f(z)/g(z)$ does not exist.
In (i) and (ii) the point $0$ is a removable singularity of $f/g$ . In (iii), $f/g$ has a pole of order $b-a$ at $0.$
(II)...Let $h^{(0)}=h$ and let $h^{(j)}$ be the $j$-th derivative of $h$ for $j>0.$ Applying the rule $$(z^ch(z))^{(n)}=\sum_{j=0}^n\binom {n}{j}(z^c)^{(j)}(h(z))^{(n-j)}$$ with $h=f_1$ and with $h=g_1,$ we see that if you need l'Hopital $m$ times ($m>0$), but not less than $m$ times, to find that $\lim_{z\to 0} f(z)/g(z)$ exists, then $m=b=a$ if the limit is non-zero, while $m=b<a$ if the limit is $0.$
In particular, with $f(z)=\sin z - \tan z$ and $g(z)=z^2$ then for $z\ne 0$ we have $$f(z)/g(z)=(\;(z-z^3/6+...)-(z+z^3/3+...)\;)/z^2=(-z^3/4+... )/z^2.$$ And $f'(z)/g'(z)=(-3z^2/4+...)/2z.\quad$ And $f''(z)/g''(z)=(-3z+...)/2.$