How do I integrate by parts?
Choose u that simplifies when differentiated, use the formula, and get an easier integral.
Example
∫xexdx
Answer: xex−ex+C
Try it yourself: ∫xcosxdx
Why do I need this?
There is no product rule for integrals, so a product like x times e to the x needs another method.
The idea
The product rule says how to differentiate a product. Read backwards, it gives a way to integrate some products.
Step by step
Think first
Which factor gets simpler when we differentiate it, and which one stays the same?
Why? x becomes 1 when differentiated, and e to the x stays the same.
Choose u and dv
The factor that simplifies when differentiated is u, and the rest is dv.
u=x,dv=exdxdu=dx,v=exUse the formula
Write u times v minus the integral of v times du.
xex−∫exdxFinish
The remaining integral is easy, and we add a constant at the end.
xex−ex+CWhy? Check: the derivative of the result is x times e to the x.
More cases and examples
A definite integral
Put the limits into the finished result.
∫01xexdx=[xex−ex]01=(e−e)−(0−1)=1
The rule
Integration by parts
When to use it: The integrand is a product of two kinds of functions, like x and a power of e.
- uthe factor we differentiate
- dvthe factor we integrate
- v,duthe results of integrating and differentiating
Watch out: If a function and its derivative sit inside, substitution is simpler.
Common mistakes
- Wrong∫udv=uv+∫vduRight∫udv=uv−∫vdu
The formula has a minus.
- Wrong∫xexdx=x22·exRight∫xexdx=xex−ex+C
We cannot integrate each factor on its own.