Primitive of x squared by Exponential of x

Theorem

 * $\ds \int x^2 e^x \rd x = e^x \paren {x^2 - 2 x + 2} + C$