You are on page 1of 7

®

 

Integration by Parts 13.4


 

Introduction
Integration by Parts is a technique for integrating products of functions. In this Section you will learn
to recognise when it is appropriate to use the technique and have the opportunity to practise using
it for finding both definite and indefinite integrals.

' $
• understand what is meant by definite and
indefinite integrals
Prerequisites • be able to use a table of integrals
Before starting this Section you should . . .
• be able to differentiate and integrate a range
of common functions
& %
' $
• decide when it is appropriate to use the
method known as integration by parts

Learning Outcomes • apply the formula for integration by parts to


definite and indefinite integrals
On completion you should be able to . . .
• perform integration by parts repeatedly if
appropriate
& %

HELM (2008): 33
Section 13.4: Integration by Parts
1. Indefinite integration
The technique known as integration by parts is used to integrate a product of two functions, such
as in these two examples:
Z Z 1
(i) 2x
e sin 3x dx (ii) x3 e−2x dx
0

Note that in the first example, the integrand is the product of the functions e2x and sin 3x, and in
the second example the integrand is the product of the functions x3 and e−2x . Note also that we
can change the order of the terms in the product if we wish and write
Z Z 1
(i) 2x
(sin 3x) e dx (ii) e−2x x3 dx
0

What you must never do is integrate each term in the product separately and then multiply - the
integral of a product is not the product of the separate integrals. However, it is often possible to
find integrals involving products using the method of integration by parts - you can think of this as
a product rule for integrals.
The integration by parts formula states:

Key Point 5
Integration by Parts for Indefinite Integrals
For indefinite integrals, given functions f (x) and g(x):
Z Z Z  Z 
df
f · g dx = f · g dx − · gdx dx
dx

Alternatively, given functions u and v:


Z Z
dv du
u dx = u.v − v dx
dx dx

Study the formula carefully and note the following observations. Firstly, to apply the formula we must
df
be able to differentiate the function f to find , and we must be able to integrate the function, g.
dx
Secondly the formula replaces one integral, the one on the left, with a different integral, that on the
far right. The intention is that the latter, whilst it may look more complicated in the formula above,
is simpler to evaluate. Consider the following Example:

34 HELM (2008):
Workbook 13: Integration
®

Example 15 R
Find the integral of the product of x with sin x; that is, find x sin x dx.

Solution
Compare the required integral with the formula for integration by parts: we choose
f =x and g = sin x
It follows that
Z Z
df
=1 and g dx = sin x dx = − cos x
dx
(When integrating g there is no need to worry about a constant of integration. When you become
confident with the method, you may like to think about why this is the case.)
Applying the formula we obtain
Z Z Z  Z 
df
x sin x dx = f · g dx − · gdx dx
dx
Z
= x(− cos x) − 1(− cos x) dx
Z
= −x cos x + cos x dx = −x cos x + sin x + c

Task Z
Find (5x + 1) cos 2x dx.

Z
df
Let f = 5x + 1 and g = cos 2x. Now calculate and g dx:
dx

Your solution

Answer Z
df 1
= 5 and cos 2x dx = sin 2x.
dx 2
Substitute these results into the formula for integration by parts and complete the Task:

Your solution

HELM (2008): 35
Section 13.4: Integration by Parts
Answer Z
1 1 1 5
(5x + 1)( sin 2x) − 5( sin 2x)dx = (5x + 1) sin 2x + cos 2x + c
2 2 2 4

Sometimes it is necessary to apply the formula more than once, as the next Example shows.

Example
Z 16
Find 2x2 e−x dx

Solution
Z
df
2
We let f = 2x and g = e . Then −x
= 4x and gdx = −e−x
dx
Using the formula for integration by parts we find
Z Z Z
2x e dx = 2x (−e ) − 4x(−e )dx = −2x e + 4xe−x dx
2 −x 2 −x −x 2 −x

We now need to find 4xe−x dx using integration by parts again. We get


R

Z Z
4xe dx = 4x(−e ) − 4(−e−x )dx
−x −x

Z
= −4xe + 4e−x dx = −4xe−x − 4e−x
−x

Altogether we have
Z
2x2 e−x dx = −2x2 e−x − 4xe−x − 4e−x + c = −2e−x (x2 + 2x + 2) + c

Exercises
In some questions
Z below it will be necessary
Z to apply integration
Z by parts more than once.
3t
1. Find (a) x sin(2x)dx, (b) te dt, (c) x cos x dx.
Z
2. Find (x + 3) sin x dx.
Z
3. By writing ln x as 1 × ln x find ln x dx.
Z Z Z
−1
4. Find (a) tan x dx, (b) −7x cos 3x dx, (c) 5x2 e3x dx,
Z Z
5. Find (a) x cos kx dx, where k is a constant (b) z 2 cos kz dz, where k is a constant.
Z Z
−st
6. Find (a) te dt where s is a constant, (b) Find t2 e−st dt where s is a constant.

36 HELM (2008):
Workbook 13: Integration
®

Answers
1 1 1 1
1. (a) sin 2x − x cos 2x + c, (b) e3t ( t − ) + c, (c) cos x + x sin x + c
4 2 3 9
2. −(x + 3) cos x + sin x + c.
3. x ln x − x + c.
1 7 7 5
4. (a) x tan−1 x − ln(x2 + 1) + c, (b) − cos 3x − x sin 3x + c, (c) e3x (9x2 − 6x + 2) + c,
2 9 3 27
cos kx x sin kx 2z cos kz z 2 sin kz 2 sin kz
5. (a) + + c, (b) + − + c.
k2 k k2 k k3
−e−st (st + 1) −e−st (s2 t2 + 2st + 2)
6. (a) + c, (b) + c.
s2 s3

2. Definite integration
When dealing with definite integrals the relevant formula is as follows:

Key Point 6
Integration by Parts for Definite Integrals
For definite integrals, given functions f (x) and g(x):
Z b  Z b Z b  Z 
df
f · g dx = f · g dx − · gdx dx
a a a dx
Z b  b Z b
dv du
Alternatively, given functions u and v: u dx = uv − v dx
a dx a a dx

Example 17
Z 2
Find xex dx.
0

Solution
Z
df
We let f = x and g = e . Then = 1 and g dx = ex . Using integration by parts we obtain
x
dx
Z 2  2 Z 2  2
x x
xe dx = xe − 1.e dx = 2e − ex = 2e2 −[e2 −1] = e2 +1
x 2
(or 8.389 to 3 d.p.)
0 0 0 0

Sometimes it is necessary to apply the formula more than once as the next Example shows.

HELM (2008): 37
Section 13.4: Integration by Parts
Example 18 Z 2
2 x
Find the definite integral of x e from 0 to 2; that is, find x2 ex dx.
0

Solution
Z
df
2
We let f = x and g = e . Then x
= 2x and g dx = ex . Using integration by parts:
dx
Z 2  2 Z 2 Z 2
2 x 2 x x 2
x e dx = x e − 2xe dx = 4e − 2 xex dx
0 0 0 0

The remainingZ integral must be integrated by parts also but we have just done this in the example
2
above. So x2 ex dx = 4e2 − 2[e2 + 1] = 2e2 − 2 = 12.778 (3 d.p.)
0

Task Z π/4
Find (4 − 3x) sin x dx.
0

What are your choices for f, g?

Your solution

Answer
Take f = 4 − 3x and g = sin x.
Now complete the integral:

Your solution
Z π/4
(4 − 3x) sin x dx =
0

Answer
Z π/4  π/4 Z π/4
(4 − 3x) sin x dx = (4 − 3x)(− cos x) −3 cos x dx
0 0 0
 π/4  π/4
= (4 − 3x)(− cos x) −3 sin x
0 0
= 0.716 to 3 d.p.

38 HELM (2008):
Workbook 13: Integration
®

Exercises
Z 1 Z π/2 Z 1
1. Evaluate the following: (a) x cos 2x dx, (b) x sin 2x dx, (c) te2t dt
Z 2 0 0 −1

2. Find (x + 2) sin x dx
1
Z 1
3. Find (x2 − 3x + 1)ex dx
0

Answers
1. (a) 0.1006, (b) π/4 = 0.7854, (c) 1.9488.
2. 3.3533.
3. −0.5634.

HELM (2008): 39
Section 13.4: Integration by Parts

You might also like