∫ u dv = uv − ∫ v du.Unlike integration by substitution, you don't rewrite the problem in terms of u (nor v). Instead, you identify suitable u and v and their differentials and then write out the equation above in terms of x (or whatever your variable is).
You want to pick u and v so that ∫ u dv is the integral that you care about, which means splitting up the factors of the integrand, some into u and some into dv. Once you know u and dv, you can find du and v, at least if you know how to integrate whatever dv is. (When you do this integration of dv to get v, you have a choice up to a local constant; you're deciding what v is, so just pick the simplest expression.) If you split things up well, then ∫ v du will be simpler than what you started with.
Here is my advice on how to split factors into u and dv so that integration by parts will make the next integral easier. The items on the top of the list are the best choices for dv, and the items on the bottom are the best choices for u. Put as many factors as you can into dv, starting at the top of this list and working your way to the bottom, as long as you still have something that you know how to integrate to get v. Then put whatever factors are left over into u.
In complicated cases, you may have to use integration by parts more than once. Just keep going until either you get something that you can handle or you get back to where you started.
The permanent URI of this web page
is
http://tobybartels.name/MATH-1700/2016WN/parts/
.