First observe that since \(f(x)\) is irreducible, we have \(f(x)\ne 0\) for all \(x\in \R\text{.}\) Thus the given integral is improper only on account of the infinite interval. Furthermore, since \(a> 0\text{,}\) it follows that \(f(x)\) is positive eventually; since \(f(x)\) is never equal to zero, it must always be positive; this means we are in a situation where we can apply the limit comparison test. As usual, we consider the two improper integrals \(\int_{-\infty}^0 \frac{1}{f(x)}\, dx\) and \(\int_0^\infty \frac{1}{f(x)}\, dx\) separately. In both cases our intuition tells us that the \(ax^2\) term will dominate as \(x\to \pm \infty\text{,}\) and thus that the \(\frac{1}{f(x)}\) is limit-comparable to \(\frac{1}{x^2}\) as \(x\to -\infty\) and as \(x\to \infty\text{.}\) We confirm both these suspicions simultaneously below:
\begin{align*}
\lim_{x\to -\infty} \frac{1/f(x)}{1/x^2} \amp = \lim_{x\to -\infty}\frac{x^2}{ax^2+bx+c} \amp
\lim_{x\to \infty} \frac{1/f(x)}{1/x^2} \amp = \lim_{x\to \infty}\frac{x^2}{ax^2+bx+c} \\
\amp = \lim_{x\to -\infty}\frac{1}{a+b/x+c/x^2} \amp \amp = \lim_{x\to \infty}\frac{1}{a+b/x+c/x^2}\\
\amp =\frac{1}{a} \amp \amp =\frac{1}{a}\text{.}
\end{align*}
Now consider first the improper integral
\begin{equation*}
\int_0^\infty \frac{1}{f(x)}\, dx=\int_0^1\frac{1}{f(x)}\, dx +\int_1^\infty \frac{1}{f(x)}\, dx\text{.}
\end{equation*}
The first integral \(\int_0^1 1/f(x)\, dx\) is not improper at all (\(1/f\) is continuous on \([0,1]\)) and so converges. Since \(\int_1^\infty 1/x^2\, dx\) converges and \(1/f\) is limit-comparable to \(1/x^2\) as \(x\to \infty\text{,}\) we see by the direct limit comparison test that the second integral \(\int_1^\infty 1/f(x)\, dx\) converges. We conclude that \(\int_0^\infty 1/f(x)\, dx\) converges.
A very similar analysis shows that \(\int_{-\infty}^{0}1/f(x)\, dx\) also converges. Note, however, that technically we cannot use the type-I \(p\)-test, since it is only stated for integrals over intervals of the form \([a,\infty)\text{.}\) Instead we must show directly that \(\int_{-\infty}^1 \frac{1}{x^2}\, dx\) converges, which is not hard to do.
In all, we see that both \(\int_{-\infty}^0 \frac{1}{f(x)}\, dx\) and \(\int_0^\infty \frac{1}{f(x)}\, dx\) converge, and hence \(\int_{-\infty}^{\infty}\frac{1}{f(x)}\, dx\) converges.