Let $\gamma$ be a simple, closed loop in the top half of the plane enclosing the point $1+i$. I am asked to compute
$$
\int_\gamma\frac{1}{z^4+1} \ dz.
$$
Using the Cauchy integral formula (evaluating at $z_0=1+i$), I get that this integral evaluates to $\pi/8+(\pi/8)i$.
Now, supposing that $\gamma$ is a semicircular arc, we are asked to compute
$$
\int_{-\infty}^\infty\frac{1}{x^4+1} \ dx.
$$
I was unable to do the integral, but Mathematica tells me it equals $\pi/\sqrt{2}$.
Are these the correct answers? And if not, can anybody tell me why?