$\newcommand{\bbx}[1]{\,\bbox[15px,border:1px groove navy]{\displaystyle{#1}}\,}
\newcommand{\braces}[1]{\left\lbrace\,{#1}\,\right\rbrace}
\newcommand{\bracks}[1]{\left\lbrack\,{#1}\,\right\rbrack}
\newcommand{\dd}{\mathrm{d}}
\newcommand{\ds}[1]{\displaystyle{#1}}
\newcommand{\expo}[1]{\,\mathrm{e}^{#1}\,}
\newcommand{\ic}{\mathrm{i}}
\newcommand{\mc}[1]{\mathcal{#1}}
\newcommand{\mrm}[1]{\mathrm{#1}}
\newcommand{\pars}[1]{\left(\,{#1}\,\right)}
\newcommand{\partiald}[3][]{\frac{\partial^{#1} #2}{\partial #3^{#1}}}
\newcommand{\root}[2][]{\,\sqrt[#1]{\,{#2}\,}\,}
\newcommand{\totald}[3][]{\frac{\mathrm{d}^{#1} #2}{\mathrm{d} #3^{#1}}}
\newcommand{\verts}[1]{\left\vert\,{#1}\,\right\vert}$
Lets $\ds{\mc{C}_{R}}$ a quarter circumference in the first quadrant with radius $\ds{R > 1}$ and vertex at the origin. Such contour 'encloses' a single pole $\ds{p \equiv \expo{\ic\pi/4}}$.
\begin{align}
\Re\oint_{\mc{C}_{R}}{z^{2} \over z^{4} + 1}\,\dd z & =
\Re\pars{2\pi\ic\,\lim_{z \to p}{\bracks{z - p}z^{2} \over z^{4} - 1}} =
-2\pi\,\Im\pars{3p^{2} - 2p^{2} \over 4p^{3}}
\\[5mm] & =
-\,{1 \over 2}\,\pi\,\Im\pars{1 \over p} =
-\,{1 \over 2}\,\pi\,\Im\pars{\expo{-\ic\pi/4}} =
{\root{2} \over 4}\,\pi\label{1}\tag{1}
\\[1cm]
\Re\oint_{\mc{C}_{R}}{z^{2} \over z^{4} + 1}\,\dd z & =
\int_{0}^{R}{x^{2} \over x^{4} + 1}\,\dd x
\\[3mm] & +\
\underbrace{\Re\pars{\int_{0}^{\pi/2}{R^{2}\expo{2\ic\theta} \over R^{4}\expo{4\ic\theta} + 1}\,R\expo{\ic\theta}\ic\,\dd\theta}}
_{\ds{\to\ 0\ \mrm{as}\ R\ \to\ \infty}}\ +\
\underbrace{%
\Re\pars{\int_{R}^{0}{-y^{2} \over y^{4} + 1}\,\ic\,\dd y}}_{\ds{=\ 0}}
\label{2}\tag{2}
\end{align}
\eqref{1} and \eqref{2} lead, in the $\ds{R \to \infty}$ limit, to
$$
\bbx{\int_{0}^{\infty}{x^{2} \over x^{4} + 1}\,\dd x = {\root{2} \over 4}\,\pi}
$$
ANOTHER METHOD:
\begin{align}
\int_{0}^{\infty}{x^{2} \over x^{4} + 1}\,\dd x & =
\int_{0}^{\infty}{\dd x \over x^{2} + 1/x^{2}} =
\int_{0}^{\infty}{\dd x \over \pars{x - 1/x}^{2} + 2}
\\[5mm] & =
{1 \over 2}\bracks{%
\int_{0}^{\infty}{\dd x \over \pars{x - 1/x}^{2} + 2} +
\int_{\infty}^{0}{1 \over \pars{1/x - x}^{2} + 2}\pars{-\,{\dd x \over x^{2}}}}
\\[5mm] & =
{1 \over 2}
\int_{0}^{\infty}{1 + 1/x^{2} \over \pars{x - 1/x}^{2} + 2}
\,\dd x \,\,\,\stackrel{t\ =\ x - 1/x}{=}\,\,\,
{1 \over 2}\int_{-\infty}^{\infty}{\dd t \over t^{2} + 2}
\\[5mm] & =
{1 \over \root{2}}\int_{0}^{\infty}{\dd t \over t^{2} + 1} =
{\root{2} \over 2}\,{\pi \over 2} = \bbx{{\root{2} \over 4}\,\pi}
\end{align}