Question: what is the difference between u substitution and integration by parts?
Answer: Always do a u-sub if you can; if you cannot, consider integration by parts. A u-sub can be done whenever you have something containing a function (we'll call this g), and that something is multiplied by the derivative of g. That is, if you have ∫f(g(x))g′(x)dx, use a u-sub.