In a follow up computation to a previous question I stumbled across the following integral.
$$ \int_{-\infty}^\infty \frac{\text{sech}^3(z)}{\pi + 2 i z} \,dz \ .$$
First thing I did to solve it was to consider only the even part since the odd part will vanish over the given interval. This left me with
$$\int_{-\infty}^{\infty} \underbrace{\frac{\pi \text{sech}^3(z)}{\pi^2 + 4 z^2}}_{=:f(z)} \,dz \ .$$
I tried to solve it using the methods of contour integration with the positively oriented simple closed contour $\gamma: \ $ $-R \to R \to R+ i \pi \to -R + i \pi \to -R$ ,encircling a pole of order 4 at $z = i \pi/2$. With the residue theorem, I got
$$ \oint_\gamma f(z) \,dz = 2 \pi i \ \text{Res}\left( f(z), z = \frac{i \pi}{2} \right) = \frac{2 + \pi^2}{4 \pi^2} \ .$$
Next, I evaluated the integrals along the "edges" (line segments) of $\gamma$. For reasons of simplicity, let's call them $$ \gamma_1: -R \leq z \leq R, z \in \mathbb{R} \ ,$$ $$ \gamma_2: R \leq z \leq R + i \pi, z \in \mathbb{C} \ ,$$ $$ \gamma_3: R + i \pi \leq z \leq -R + i \pi, z \in \mathbb{C} \quad \text{and}$$ $$ \gamma_4: -R + i \pi \leq z \leq -R, z \in \mathbb{C} \ .$$
The integral $\lim_{R\to \infty} \int_{\gamma_1} f(z) \,dz$ is the target integral. Using the subsequent changes of the integration variable given by $z \to t + i \pi$ and $t \to - z$ gives that
$$ \int_{\gamma_1} f(z) \,dz = \int_{\gamma_3} f(z) \,dz \ .$$
For the other two integrals I found with the change of variables $z \to R + i t$, $\,dz \to i \,dt$ and integration over the interval $[0,\pi]$ (for $\gamma_4$, I used an additional change $t \to - t$), that
$$ \left|\int_{\gamma_{2,4}} f(z) \,dz\right| = 0 \ .$$
To get there I used the Riemann integral inequality (Is there a proper name for this?) $|\int_a^b f(x) \,dx| \leq \int_a^b |f(x)| \,dx$, the expansion of $\text{sech}^3(z)$ in terms of exponential functions, the reversed triangle inequality $\frac{1}{|a-b|} \leq \frac{1}{||a|-|b||}$ and took the limit $\lim_{R\to \infty} f(z)$. I arrived at
$$\oint_\gamma f(z) \,dz = 2 \int_{\gamma_1} f(z) \,dz = \frac{2 + \pi^2}{4 \pi^2} $$
and thus
$$ \int_{-\infty}^{\infty} f(z) \,dz = \frac{2 + \pi^2}{8 \pi^2} \approx 0.15033 \ . $$
Unfortunately, this does not coincide with the numeric result (with interval for integration $-200 \leq z \leq 200$) where I get
$$ \int_{-\infty}^{\infty} f(z) \,dz \approx 0.437919 \ .$$
Can anyone help me find the mistake, I made? Thanks in advance :)
