thanks mate i didnt carefully read the other posts. This means if u r integrating by parts u should always differentiate e^-x^2.