Wolfram alpha computes that $\int_0^\infty \frac{2 \cos(x) + x^2 - 2}{x^4}dx = \frac{\pi}{6}$.
Why is this true? I thought this looked like something which could be justified with contour integrals, but I wasn't able to find a contour (or at least an easy contour) which gives the result.
What's a technique that can be used to compute this integral?

You can also use a well known property of the Laplace transform $$\int_{0}^{+\infty}f\left(x\right)g\left(x\right)dx=\int_{0}^{+\infty}\left(\mathcal{L}f\right)\left(y\right)\left(\mathcal{L}^{-1}g\right)\left(y\right)dy$$ where $\left(\mathcal{L}f\right),\,\left(\mathcal{L}^{-1}g\right)$ is the Laplace and the inverse Laplace transform, respectively. Hence $$\int_{0}^{+\infty}\frac{2\cos\left(x\right)-x^{2}+2}{x^{4}}dx=\frac{1}{3}\int_{0}^{+\infty}\frac{y^{3}}{y^{5}+y^{3}}dy=\frac{1}{3}\int_{0}^{+\infty}\frac{1}{y^{2}+1}dy=\color{red}{\frac{\pi}{6}}.$$