I'm trying to prove that the function $\cot\left(z\right)=i\frac{e^{iz}+e^{-iz}}{e^{iz}-e^{-iz}}$ is uniformly bounded in the complex plane outside $\varepsilon$ neighborhoods of the poles (with the bound depending on $\varepsilon$). The suggested method in my text is to first show that if $z=x+iy$ and $y>0$ then: $$\frac{e^{-2y}}{1+e^{-2y}}<\left|\cot\left(x+iy\right)+i\right|<\frac{e^{-2y}}{1-e^{-2y}}$$ And if $y<0$ then:$$\frac{e^{2y}}{1+e^{-2y}}<\left|\cot\left(x+iy\right)+i\right|<\frac{e^{2y}}{1-e^{-2y}}$$ The calculations are a bit tedious and they aren't coming out right for me for some reason: \begin{align*} \left|\cot\left(x+i\cdot y\right)+i\right| &=\left|i\cdot\frac{e^{iz}+e^{-iz}}{e^{iz}-e^{-iz}}+i\right| \\ &=\left|i\cdot\frac{e^{2iz}+1}{e^{2iz}-1}+i\right| \\ &=\left|\frac{i\cdot\left(e^{2iz}+1\right)+i\left(e^{2iz}-1\right)}{e^{2iz}-1}\right| \\ &=\left|\frac{2ie^{2i\left(x+i\cdot y\right)}}{e^{2i\left(x+i\cdot y\right)}-1}\right| \\ &=\left|2i\right|\cdot\left|e^{2iz}\right|\left|\frac{1}{e^{2iz}-1}\right|=2\cdot e^{-2y}\cdot\left|\frac{1}{e^{2iz}-1}\right| \\ &=2\cdot e^{-2y}\cdot\left|\frac{e^{2y}}{e^{2ix}-e^{2y}}\right| \\ &=2\left|\frac{1}{e^{2ix}-e^{2y}}\right| =2\frac{1}{\left|e^{2ix}-e^{2y}\right|} \\ &=2\cdot\frac{1}{\left|e^{ix}-e^{y}\right|\left|e^{ix}+e^{y}\right|} \\ &=\frac{2}{\sqrt{\left(e^{y}+\cos\left(x\right)\right)^{2}+\sin^{2}\left(x\right)}\cdot\sqrt{\left(e^{y}-\cos\left(x\right)\right)^{2}+\sin^{2}\left(x\right)}} \\ &=\frac{2}{\sqrt{e^{2y}+2e^{y}\cos\left(x\right)+1}\cdot\sqrt{e^{2y}-2e^{y}\cos\left(x\right)+1}} \\ &=\frac{2}{\sqrt{e^{4y}+2e^{2y}-4e^{2y}\cos^{2}\left(x\right)+1}} \\ &=\frac{2}{\sqrt{\left(1+e^{2y}\right)^{2}-4e^{2y}\cos^{2}\left(x\right)}} \end{align*} The denominator is maximal when $\cos^{2}\left(x\right)=1$ and minimal when $\cos^{2}\left(x\right)=0$ and thus: $$\frac{2e^{-2y}}{1+e^{-2y}}=\frac{2}{1+e^{2y}}\leq\left|\cot\left(x+i\cdot y\right)+i\right|\leq\frac{2}{\sqrt{\left(e^{2y}-1\right)^{2}}}=\frac{2}{\left|1-e^{2y}\right|}=\frac{2e^{-2y}}{1-e^{-2y}}.$$ I can't figure out whether I made an error in the calculations or whether there was an error in the suggested bound. I'm also not sure how to use these bounds in order to reach the required conclusion.
Regardless of this method I'm also curious whether someone has an alternative and perhaps less technical method of proving the claim.
Thanks in advance!