In Quauntum Field Theory in a Nutshell by A. Zee, Section 1.9, about the Casimir Effect he introduces a regulator $e^{-an/d}$ where $a$ has units of length in natural units and $d$ is the space between two conducting plates. The energy at $d$ is given by:
$$ f(d) = \frac{\pi}{2d} \sum_{n=1}^{\infty} e^{-an/d}= -\frac{\pi}{2\color{red}{d}} \frac{\partial}{\partial a} \sum_{n=1}^{\infty} e^{-an/d} = -\frac{\pi}{2\color{red}{d}} \frac{\partial}{\partial a} \frac{1}{1-e^{-a/d}} = \frac{\pi}{2d} \frac{e^{a/d}}{(e^{a/d}-1)^{2}}$$
Should not the third equality be
$$ -\frac{\pi}{2\color{red}{d}} \frac{\partial}{\partial a} \frac{e^{-a/d}}{1-e^{-a/d}} $$
Also he says that since we want $a^{-1}$ to be large, we take the limit $a$ small so that:
$$f(d) = \frac{\pi d}{2a^{2}} - \frac{\pi}{24 d} + \frac{\pi a^{2}}{480 d^{3}} +O(a^{4}/d^{5})$$
I tried Taylor expanding the last equality but did not work out. Any hints?