2.3 Integration by parts
From Förberedande kurs i matematik 2
| Theory | Exercises |
Contents:
- Integration by parts.
Learning outcomes:
After this section, you will have learned to:
- Understand the derivation of the formula for integration by parts.
- Solve problems about integration that require integration by parts, followed by a substitution (or vice versa).
Integration by parts
To integrate products, one sometimes can make use of a method known as integration by parts. The method is based on the reverse use of the rules for differentiation of products. If
v+uv . |
Now if one integrates both sides one gets
(u v+uv )dx= u vdx+ uv dx |
which, after re-ordering, becomes the formula for integration by parts.
Integration by parts:
uv dx=uv− u vdx. |
This means in practice that one integrates a product of functions by calling one factor 
uv
dx
u
vdx, 

It is important to note that the method does not always lead to an integral that is easier than the original. It may also be crucial how one chooses the functions 
Example 1
Determine the integral
xsinxdx
If one chooses
=x
=cosx
2
xsinxdx=2x2sinx− 2x2cosxdx. |
The new integral on the right-hand side in this case is not easier than the original integral.
If, instead, one chooses
=sinx
=1
xsinxdx=−xcosx− −1 cosxdx=−xcosx+sinx+C. |
Example 2
Determine the integral
x2lnxdx
Put
=x2
=1
x
3
x2lnxdx=3x3lnx− 3x3x1dx=3x3lnx−31 x2dx=3x3lnx−313x3+C=31x3(lnx−31)+C. |
Example 3
Determine the integral
x2exdx
Put
=ex
=2x
x2exdx=x2ex− 2xexdx. |
This requires further integration by parts to solve the new integral
2xexdx
=ex
=2
2xexdx=2xex− 2exdx=2xex−2ex+C. |
The original integral thus becomes
x2exdx=x2ex−2xex+2ex+C. |
Example 4
Determine the integral
excosxdx
In the first integration by parts, we have chosen to integrate the factor
excosxdx=excosx− ex(−sinx)dx=excosx+ exsinxdx. |
The result of this is that we essentially have replaced the factor
exsinxdx=exsinx− excosxdx. |
Thus the original integral appears here again. Summarising we have:
excosxdx=excosx+exsinx− excosxdx |
and collecting the integrals to one side gives
excosxdx=21ex(cosx+sinx)+C. |
Although integration by parts in this case did not lead to an easier integral, we arrived at an equation in which the original integral could be ”solved for”. This is not entirely unusual when the integrand is a product of trigonometric functions and / or exponential functions.
Example 5
Determine the integral
01ex2xdx
The integral can be rewritten as
01ex2xdx= 012xe−xdx. |
Substitute
=e−x
012xe−xdx= −2xe−x 10+ 012e−xdx= −2xe−x 10+ −2e−x 10=(−2e−1)−0+(−2e−1)−(−2)=−e2−e2+2=2−e4. |
Example 6
Determine the integral
ln
x dx
We start by performing a substitution
x
2
x=dx
2u
ln xdx= lnu 2udu. |
Then we integrate by parts. Put
=2u
lnu 2udu=u2lnu− u2u1du=u2lnu− udu=u2lnu−2u2+C=xln x−x2+C=x ln x−21 +C. |
Note. An alternative approach is to rewrite the initial integrand as
x=21lnx





