Professional Documents
Culture Documents
Maths Tutor PDF
Maths Tutor PDF
by parts
A special rule, integration by parts , is available for integrating products of two functions.
This unit derives and illustrates this rule with a number of examples.
In order to master the techniques explained here it is vital that you undertake plenty of practice
exercises so that they become second nature.
After reading this text, and/or viewing the video tutorial on this topic, you should be able to:
Contents
1. Introduction 2
© s k illb a n k s o lu t io n s lim it e d 2 0 1 0
A ll r e fe r e n c e s t o © m a t h t u t o r o n s u b s e q u e n t p a g e s s h o u ld b e r e a d a s © s k illb a n k s o lu t io n s lim it e d 2 0 1 0
1. Introduction
Functions often arise as products of other functions, and we may be required to integrate these
products. For example, we may be asked to determine
x cos x dx .
Here, the integrand is the product of the functions x and cos x. A rule exists for integrating
products of functions and in the following section we will derive it.
y = uv
then
dy d(uv) dv du
= =u +v .
dx dx dx dx
Rearranging this rule:
dv d(uv) du
u = −v .
dx dx dx
Now integrate both sides:
dv d(uv) du
u dx = dx − v dx .
dx dx dx
The first term on the right simplifies since we are simply integrating what has been differentiated.
dv du
u dx = u v − v dx .
dx dx
This is the formula known as integration by parts.
Key Point
Integration by parts
dv du
u dx = u v − v dx
dx dx
The formula replaces one integral (that on the left) with another (that on the right); the intention
is that the one on the right is a simpler integral to evaluate, as we shall see in the following
examples.
mathtutor project: 2
September 21, 2004
3. Using the formula for integration by parts
Example
Find x cos x dx.
Solution
Here, we are trying to integrate the product of the functions x and cos x. To use the integration
dv
by parts formula we let one of the terms be and the other be u. Notice from the formula
dx
du
that whichever term we let equal u we need to differentiate it in order to find . So in this
dx
du
case, if we let u equal x, when we differentiate it we will find = 1, simply a constant. Notice
dx
that the formula replaces one integral, the one on the left, by another, the one on the right.
Careful choice of u will produce an integral which is less complicated than the original.
Choose
dv
u=x and = cos x .
dx
With this choice, by differentiating we obtain
du
= 1.
dx
dv
Also from = cos x, by integrating we find
dx
v = cos x dx = sin x .
(At this stage do not concern yourself with the constant of integration). Then use the formula
dv du
u dx = u v − v dx :
dx dx
x cos x dx = x sin x − (sin x) · 1 dx
= x sin x + cos x + c
In the next Example we will see that it is sometimes necessary to apply the formula for integra-
tion by parts more than once.
Example
Find x2 e3x dx.
3 mathtutor project:
September 21, 2004
Solution
dv
We have to make a choice and let one of the functions in the product equal u and one equal .
dx
As a general rule we let u be the function which will become simpler when we differentiate it.
In this case it makes sense to let
dv
u = x2 and = e3x .
dx
Then
du 1
= 2x and v= e3x dx = e3x .
dx 3
Then, using the formula for integration by parts,
2 3x 1 3x 2 1 3x
x e dx = e ·x − e · 2x dx
3 3
1 2 3x 2 3x
= xe − xe dx .
3 3
The resulting integral is still a product. It is a product of the functions 23 x and e3x . We can use
the formula again. This time we choose
2 dv
u= x and = e3x .
3 dx
Then
du 2 1
= and v= e3x dx = e3x .
dx 3 3
So
2 3x 1 2 3x 2 3x
x e dx = xe − xe dx
3 3
1 2 3x 2 1 3x 1 3x 2
= xe − x· e − e · dx
3 3 3 3 3
1 2 3x 2 3x 2 3x
= x e − xe + e + c
3 9 27
where c is the constant of integration. So we have done integration by parts twice to arrive at
our final answer.
dv
Remember that to apply the formula you have to be able to integrate the function you call .
dx
This can cause problems — consider the next Example.
Example
Find x ln |x| dx.
mathtutor project: 4
September 21, 2004
Solution
Remember the formula:
dv du
u dx = u v − v dx .
dx dx
du
It would be natural to choose u = x so that when we differentiate it we get = 1. However
dx
dv
this choice would mean choosing = ln |x| and we would need to be able to integrate this.
dx
This integral is not a known standard form. So, in this Example we will choose
dv
u = ln |x| and =x
dx
from which
du 1 x2
= and v= x dx = .
dx x 2
Then, applying the formula
2
x2 x 1
x ln |x| dx = ln |x| − · dx
2 2 x
x2 x
= ln |x| − dx
2 2
x2 x2
= ln |x| − +c
2 4
where c is the constant of integration.
Example
Find ln |x|dx.
Solution
We can use the formula for integration by parts to find this integral if we note that we can write
ln |x| as 1 · ln |x|, a product. We choose
dv
=1 and u = ln |x|
dx
so that
du 1
v= 1 dx = x and = .
dx x
Then,
1
1 · ln |x|dx = x ln |x| − x · dx
x
= x ln |x| − 1 dx
= x ln |x| − x + c
5 mathtutor project:
September 21, 2004
Example
Find ex sin x dx.
Solution
dv
Whichever terms we choose for u and it may not appear that integration by parts is going
dx
to produce a simpler integral. Nevertheless, let us make a choice:
dv
= sin x and u = ex
dx
so that
du
v= sin x dx = − cos x and = ex .
dx
Then,
x x
e sin x dx = e · − cos x − − cos x · ex dx
x
= − cos x · e + ex cos xdx .
mathtutor project: 6
September 21, 2004
Exercises
1
(e) x tan−1 x dx
0
Answers
1.
1 1
(a) −x cos x + sin x + C (b) 4
x sin 4x + 16
cos 4x + C
2.
15 π 1 π 1
(a) 2π − 4 (b) e − 2 (c) 4 ln 2 − (d) − (e) −
16 8 4 4 2
7 mathtutor project:
September 21, 2004