Prove that the function $f(x)=\frac{\cos^2x}{\sqrt{x^4+1}}$ is improperly integrable on $(0,\infty)$.
My attempt: We know $f(x)=\frac{\cos^2x}{\sqrt{x^4+1}}$ (or rather, I am just assuming) is locally integrable and positive, and $$0\leq f(x)\leq\frac{1}{\sqrt{x^4+1}}\leq\frac{1}{x^2},$$ and we know that $\frac{1}{x^2}$ is improperly integrable on $(0,\infty)$, so by the comparison theorem for improper integrals, $f(x)$ is improperly integrable.
I am fairly sure that I am supposed to use the comparison theorem for improper integrals, and that this is roughly the argument that I was supposed to make, but I am not completely sure if I correctly made my argument.
For $01$, bound the integrand by $1/x^2$, which is integrable.