Here is a flowchart about the integrals, and why are integrals used by parts. It allows to calculate the integral of a product of two functions by applying the formula, we recognize who is U and DU to be able to replace, and to calculate DU you have to derive U. Learn more details from this flowchart, or try to make yours with ease.