Evaluate the following integrals:

∫ x2 e–x dx

Let


Using integration by parts,



We know that,



Using integration by parts in second integral,





6