Indefinite integral - example 7

Calculation a indefinite integral of function f(x)=x2·ex. In example theorem about integration by parts is used twice. At the end of integration, a derivative of integrated function is calculated in purpose to check integration correctness.