So I know how to calculate this, and in doing so showing that it converges: $\int_0^\infty{x^2e^{-x}dx}$. However, I’m not sure how to show that it converges by using series and comparison tests etc.
I figure I’ll have to split it up, $\int_0^\infty{x^2e^{-x}dx} = \int_0^1{x^2e^{-x}dx} + \int_1^\infty{x^2e^{-x}dx}$. And then I suppose the Taylor expansion of $e$ will become important. I’m just not sure where to go from here.
Call the left side $I_0$ and the two parts $I_1$ and $I_2$ respectively, for convenience. I have tried to solve $I_1$ as follows.
\begin{equation} x \rightarrow 0 \Rightarrow e^{x} = 1 + x + \frac{x^2}{2!} + O(x^3) \rightarrow 1 \end{equation} \begin{equation} x \rightarrow 0 \Rightarrow \frac{x^2}{e^{x}} = \frac{x^2}{1} = \frac{1}{x^{-2}} \end{equation}
And so by comparison with $\int_0^1{\frac{1}{x^p}dx}$, $I_1$ converges. Does this work?
I’m not sure how to do $I_2$.
There is no need to split. Compare $x^2e^{-x} $ with $\frac{1}{1+x^2}$ (which is integrable in $[0,+\infty)$) as $x\to +\infty$. We have that $$\lim_{x\to +\infty}\frac{x^2e^{-x}}{1/(1+x^2)}=\lim_{x\to +\infty}\frac{x^2(1+x^2)}{e^{x}}=0$$ which implies that there is $C>0$ such that for $x\geq 0$, $$0\leq x^2e^{-x}\leq \frac{C}{(1+x^2)}.$$