I solved 5.16
$$\int_{\infty}^{\infty} \frac{dz}{z^4 + 1}$$ can be solved by considering first the integral about a semicircle of radius $R$ centered at $0$ where $R > 1$ and the path is counterclockwise starting at $R$. Thus we have
$$\int_{S_r(0)} \frac{dz}{z^4 + 1} = \int_{\gamma}\frac{dz}{z^4 + 1} + \int_{\infty}^{\infty} \frac{dz}{z^4 + 1} $$
Here $\gamma$ denotes the semicircular arc from $R$ and ending at $-R$. We can attain a bound on it by using the following inequality. We have
$$\int_{\gamma} \frac{dz}{z^4 + 1} \leq max_{z \in \gamma} | {\frac{1}{z^4 + 1}}|\pi R $$ We know that $$max_{z \in \gamma} | {\frac{1}{z^4 + 1}} | \leq \frac{1}{min (|z^4 +1|)} \leq \frac{1}{min(|z|^4 - 1)}= \frac{1}{R^4 - 1}$$ therefore we have $$\int_{\gamma} \frac{dz}{z^4 + 1} \leq \frac{\pi R}{R^4 - 1}$$ which tends to $0$ as $R$ tends to infinity. Thus we know that the contribution of this integral to the integral about the semicircle tends to $0$. Thus, as $R$ gets large we have
$$\int_{S_r(0)} \frac{dz}{z^4 + 1} = \int_{\infty}^{\infty} \frac{dz}{z^4 + 1}$$
The left hand side can be solved as
$$\int_{S_r(0)} \frac{dz}{z^4 + 1}dz = \int_{S_r(0)} \frac{\frac{1}{(z-e^{3/4 \pi i})((z-e^{5/4 \pi i})(z-e^{7/4 \pi i})}}{(z-e^{\pi i / 4})}dz + \int_{S_r(0)} \frac{\frac{1}{(z-e^{ \pi i / 4})((z-e^{5/4 \pi i})(z-e^{7/4 \pi i})}}{(z-e^{ 3 \pi i / 4})}dz$$
Now, applying the Cauchy integral formula
$$ \frac{2 \pi i}{\sqrt{2}(2+2i)}+ \frac{2 \pi i}{\sqrt{2}(-2 + 2i)} = \frac{\pi}{\sqrt{2}}$$
So we have, $$\int_{- \infty}^{\infty} \frac{1}{z^4 + 1} dz = \frac{\pi}{\sqrt{2}}$$