Integration by parts: the formula and when to use it
∫ u'v = [uv] − ∫ uv'. The trick that cracks ∫ x·ln(x), ∫ x·eˣ, ∫ x·cos(x).
The formula
∫abu′(x)v(x)dx=[u(x)v(x)]ab−∫abu(x)v′(x)dx
Version without bounds (antiderivative):
∫u′vdx=uv−∫uv′dx
When to use it?
When the integrand is a product of two functions where one differentiates nicely (polynomial → constant) and the other integrates nicely (ex,sin,cos,ln).
The “LIATE” choice
To pick v (the one we differentiate): priority to the first appearing in LIATE.
Logarithm
Inverse trig (arctan, …)
Algebraic (polynomial)
Trigonometric (sin, cos)
Exponential
The rest becomes u′ (we integrate it).
Example 1: ∫xexdx
v=x (polynomial), u′=ex.
So v′=1, u=ex.
∫xexdx=xex−∫exdx=xex−ex+C=(x−1)ex+C
Example 2: ∫ln(x)dx
Trick: write ln(x)=1×ln(x).
v=ln(x) (logarithm), u′=1.
v′=1/x, u=x.
∫ln(x)dx=xln(x)−∫x⋅x1dx=xln(x)−x+C
Example 3: ∫xcos(x)dx
v=x, u′=cos(x).
v′=1, u=sin(x).
∫xcos(x)dx=xsin(x)−∫sin(x)dx=xsin(x)+cos(x)+C
Two successive IBPs (∫x2ex)
Sometimes you must redo IBP:
∫x2exdx=x2ex−2∫xexdx=x2ex−2(x−1)ex+C
Common mistakes
Sign error in the formula.
Choosing v=ex in ∫xex (makes the integral harder).