differentiate x^2*e^x
Let's differentiate: (x2ex)'
We differentiate U1 = x2 and V2 = ex using: (U1·V2)' = (U1)'·V2 + U1·(V2)'
Let's differentiate U1: (x2)'
2x
Let's perform the differentiation V2: (ex)'
ex
Then you can resume the differentiation:
2xex + x2ex
exx2 + 2exx
You can factorize this expression into: exx·(x + 2)
Answer:   exx·(x + 2)