This is the general form of the integral:
Here is another method, without using integration by parts:
You use integration by parts if two situations hold...
1. One of the functions in the product should be easy to differentiate and one should be easy to integrate.
2. By integrating and differentiating the correct functions, the new integral is reduced to something easier to integrate.