How would one find whether the following improper integral converge or diverge.
$\int_{-\infty}^{0}xe^{x}$
I did the following.
$t\rightarrow\infty$
$\int_{t}^{0}xe^x$
I did the integration by parts.
$u=x$
$dv=e^x$
$xe^x-\int 1e^x$
$xe^x-1xe^x$
$(0)(e^0)-e^0(0)-te^t-te^t$
$0-\infty-\infty$
would this mean there is a divergence.
You've made an error in your integration by parts. $$xe^x-\int 1e^x=xe^x-e^x=(x-1)e^x$$
It can be shown that $$\lim_{x\to-\infty}(x-1)e^x=0,$$ so the improper integral converges.
As a side note, we also have that $$\lim_{x\to-\infty}xe^x=0,$$ so even if your integration by parts hadn't been erroneous, your evaluation of the limit would have been.