The integral I'd like to solve with contour integration is $\int^{\infty }_{0}\dfrac {dx}{x^{4}+1}$ and I believe the simplest way to do it is using the residue theorem. I know the integrand has four simple poles at ${\dfrac {\pi}{4}}$,${\dfrac {3\pi}{4}}$, ${\dfrac {-\pi}{4}}$,${\dfrac {-3\pi}{4}}$ but I am stumped on how to calculate the residues at those poles. Since my contour is in the y>0 space I only need the poles at $\dfrac{\pi}{4}$ and $\dfrac{3\pi}{4}$
I know that the integrand $f(z)=\dfrac{p(z)}{q(z)}$ where $q(z_{0})=0$, $q'(z_{0})\neq0$, $p(z_{0})\neq0$ so the Residue of $f(z)$ at $z=z_{0}$ is $\dfrac {p(z_{0})}{q'(z_{0})}=\dfrac {1}{4z^3}$. How do I calculate the integral using the residue theorem?