The general form is
Let and . What does this give you?
Notice that if you work this problem this way, you do not have to know what the integral of is! Instead you only need to know the derivative of to compute . That is the reason for using the method.