# MATH 1241 S2 2011: Calculus

For use in Dr Chris Tisdell’s lectures

Section 2: Techniques of integration.
Created and compiled by Chris Tisdell

S1:
S2:
S3:
S4:
S5:
S6:
S7:
S8:
S9:

Motivation
Integrals of trig functions
Reduction formulae
Trig & hyperbolic substitutions
Partial fractions
Rationalising substitutions
Weierstrass substitutions
Appendix (more on what you should already know)

Images from“Thomas’ calculus”by Thomas, Wier, Hass & Giordano, 2008, Pearson Education, Inc.
1

1. Motivation.
Why study integration?
The theory of integration is a cornerstone of calculus. Integration finds
a useful place in many disciplines, such as: engineering; physics; biology;
economics and beyond.
Where are we going?
We will develop a number of important integration techniques that will
be useful in the study of applied problems.
Throughout our discussions we will see HOW integration naturally arises
in the analysis of applied problems and in modelling. This is critical to
motivate the ideas and also to build the intuition.

2

2. What you should already know.
You studied integration at school and in MATH 1131. You should be
comfortable with:
• using a table of integrals
• integrating by inspection
• integration by parts
• integration by simple substitution.
Just in case you’ve forgotten these techniques, I have included some
examples to refresh your memory and to test your skills in the Appendix.
You will find this course much easier if you can integrate with ease. Your
hard work will pay–off later in the session!!
3

4

5

3. Integrals of trig functions.
You should be familiar with:

The above integrals are derived by using the “double angle formulas”:
cos 2x = cos2 x − sin2 x
= 2 cos2 x − 1
= 1 − 2 sin2 x
and for future reference
sin 2x = 2 sin x cos x.
6

Integrals of products of sin and/or cos.
We first discuss how such integrals naturally arise.

Applications matter! So–called “Fourier series” play an important role
in the study of heat flow.
A finite Fourier series of a function f is given by the sum
f (x) :=
=

N
X

an sin nx

(1)

n=1
a1 sin x + a2 sin 2x + · · · aN sin N x

where the an are some numbers that are to be determined. That is, we
aim to write f (x) as a sum of sin functions.

7

8

We now see how integration of trig functions is central to the method.
We claim that the mth coefficient am is given by
Z
1 π
am =
f (x) sin mx dx.
(2)
π −π
If we multiply both sides of (1) by sin mx and then integrate over
[−π, π] we obtain
Z

f (x) sin mx dx =

Z π X
N

an sin nx sin mx dx
−π n=1 

N Z π
X
=
an sin nx sin mx dx .
−π
n=1

Thus we have obtained an integral that involves a product of sin functions.
How do we evaulate such an integral?

9

Integrals of products of sin and/or cos
These are done using the so–called product to sum formulae:
sin A cos B = [sin(A − B) + sin(A + B)]/2
sin A sin B = [cos(A − B) − cos(A + B)]/2
cos A cos B = [cos(A − B) + cos(A + B)]/2
Ex:

R

sin 4x cos 2x dx =

10

Integrals of the form

R

cosm x sinn x dx

If m or n are odd then our aim is to transform the integral into one of
the types:
1
sink+1 x + C
k+1
Z
1
k
cos x sin x dx = −
cosk+1 x + C.
k+1
At the heart of the approach is to factor out a sin x or cos x from the
odd power term and then use the identity
Z

sink x cos x dx =

cos2 x + sin2 x = 1
to transform the integral into one which can be directly evalutated.

Q: How can you verify the above integrals?
11

Ex. Evaluate
I :=

Z

cos4 x sin3 x dx.

12

Ex: Evaluate
I :=

Z

cos5 x sin5 x dx

13

If both m and n are even, then the integral is slightly harder. We will
see shortly a recursive method for dealing with such an integral, but for
smaller values of m and n one can use the identities
1 − cos 2x
1 + cos 2x
2
2
cos x =
sin x =
.
2
2
Ex. Evaluate I :=
I =
=
=
=

1
8

Z

Z

R

cos4 x sin2 x dx.

We have

(cos2 x)2 sin2 x dx 
 

1 + cos 2x 2 1 − cos 2x
dx
2
2
Z

Z 

1
8

1 + cos 2x − cos2 2x − cos3 2x dx

1 + cos 2x − cos2 2x − (1 − sin2 2x) cos 2x dx
=
=

Z
1
1 − cos2 2x + sin2 2x cos 2x dx
8 

1 x
1
1
− sin 4x + sin3 2x + C.
8 2
8
6
14

Applications matter! An important problem in applied math, engineering and physics is to calculate the total mass of an given object.
Consider a thin plate occupying the unit quarter–disk in the first quadrant.

If the density δ(x, y) of the plate at any point (x, y) is given by
δ(x, y) = x2y 4 then the total mass of the plate is given by
 √

Z 1 Z 1−x2

M =
x2y 4 dy  dx.
0
0

15

To make this integral easier, we switch to polar co–ordinates: x =
r cos θ; y = r sin θ; dy dx = r dr dθ with a substitution giving
M =

Z π/2 Z 1
0

=

0

Z 1
0

(r2 cos2 θ)(r4 sin4 θ) rdrdθ

r7 dr

Z π/2
0

(cos2 θ)(sin4 θ) dθ.

16

4. Reduction formulae
Repeated integration by parts can be a long process! We can shorten
the process by applying so–called “reduction formulae”.
Ex: The reduction formula
Z

1
tann x dx =
tann−1 x −
n−1

Z

can be used in an iterative fashion to calculate

R

If In :=

R

tann−2 x dx

(∗)

tan5 x dx.

tann x dx then (*) may be compactly written as
In :=

1
tann−1 x − In−2 ,
n−1

n ≥ 2.
17

R π/2

Ex. Let In := 0

sinn x dx. Use the reduction formula

n−1
In :=
In−2,
n

n≥2

to calculate I7.

18

Ex: Construct a reduction formula for
In :=

Z

xnex dx.

19

Ex: Find the reduction formula for
In :=

Z π/2
0

sinn x dx.

The reduction formula for the integral of cosn x is similar.

20

Ex: Construct a reduction formulae from
In :=

Z π/4
0

secn x dx.

A similar method is used to obtain the reduction formula for the integral
R π/4
In := 0 tann x dx.
21

Ex. [Q1, Class Test 1, 2002] Let
In :=

Z π/4
0

tann θ sec θ dθ.

Show that 

1 √
2 − (n − 1)In−2 ,
In :=
n

for n ≥ 2.

Note that
d
sec θ = sec θ tan θ.

22

A Two parameter recurrence:
Consider
Im,n =
=

Z π/2
0
Z π/2
0

cosm x sinn x dx
[cosm−1 x][sinn x cos x] dx

and use integration by parts. Choose u = cosm−1 x and v 0 =
sinn x cos x. Thus,
u0 = −(m − 1) sin x cosm−2 x, v =

1
sinn+1 x.
n+1

Integration by parts then leads to
Im,n =

m−1
Im−2,n,
m+n

m ≥ 2.

23

In a similar way, one could also obtain the recurrence
Im,n =

n−1
Im,n−2. n ≥ 2.
m+n

1, I
In applying the above formulae we must reach one of I1,1 = 2
1,0 =
I0,1 = 1 or I0,0 = π2 .

You are not expected to memorise this formula.

24

5. Trig & Hyperbolic Substitutions.
You will have already seen integration by simple substitution.

With integrals involving square roots of quadratics, the idea is to make
a suitable trigonometric or hyperbolic substitution that greatly simplifies
the integral.

25

Integrals involving square roots of quadratics can be worked out using
the following trigonometric or hyperbolic substitutions.

q

a2 − x2

try x = a sin θ

a2 + x2

try x = a tan θ or x = a sinh θ

q

q

x2 − a2

try x = a sec θ or x = a cosh θ

26

27

Ex: Evaluate
I=

Z 4
0

q

x2 16 − x2 dx.

28

Ex: Evaluate
I :=

Z

dx
(a2 + x2)3/2

.

29

Ex: Evaluate
I :=

Z

dx
q

x2 x2 − 1
via the substitution x = sec θ

(This last integral can also be done using a cosh θ substitution but it
is not easy.)
30

Applications matter! An important problem in applied math, engineering and physics is to calculate the total mass of an given object.
Consider a thin wire of constant density δ (mass per unit length) that
lies in the XY –plane along the curve
y = f (x) := x2/2,

a ≤ x ≤ b.

It can be shown that the total mass M of the wire is
M =

Z b q

= δ
See how an integral of

q

δ 1 + [f 0(x)]2 dx

a
Z bq
a

1 + x2 dx.

1 + x2 naturally arises?

31

6. Partial Fractions.
A rational function is a function of the form

f (x)
where f and g are
g(x)

polynomials.
Ex: Which of the following are rational functions?
(a)

2x + 1
3x2 − 4

x2
(c)
x−1

cos x
(b) 2
x +1
ex
(d)
.
x+1

For the purpose of integration, we ensure that the degree of the numerator is less than the degree of the denominator. If not then we may need
to divide.

32

Building the intuition.
An integral like
Z

dx
x(1 − x)

cannot be easily computed directly, however, we know that the integrals
dx
,
x
can both be directly evaluated.
Z

Z

dx
1−x

1
1 ?
as some linear combination of 1
Thus, can we write x(1−x)
and
x
1−x

33

34

35

Heaviside proved important results in electromagnetism and vector calculus. He reduced Maxwell’s 20 equations in 20 variables to 4 equations
in 2 variables.
”Mathematics is an experimental science, and definitions do not come
first, but later on.“
“Why should I refuse a good dinner simply because I don’t understand
the digestive processes involved.” [reply when criticised for his daring use
of operators before they could be justified formally.]
36

Factors are Linear:
Ex. Evaluate
I :=

Z

2x − 1
dx =
2
x + 5x + 6

Z

2x − 1
dx.
(x + 3)(x + 2)

37

Ex. Evaluate
Z

2x2 + 2x + 6
dx.
(x − 1)(x + 1)(x − 2)

38

Repeated Linear Factors:
Ex: Evaluate
I :=

Z

x+3
dx.
3
(x + 2)

39

In general, each factor in the denominator of the form (x − a)k gives
rise to an expression of the form
A1
A2
Ak
+
+
.....
+
.
2
k
x−a
(x − a)
(x − a)
Ex: Evaluate
I :=

Z

dx
.
3
x(x + 1)

40

Ex: [Q2, Class Test 1, 2003] Calculate
Z

8x + 9
dx.
(x − 2)(x + 3)2

41

Suppose the denominator of our rational function is a quadratic which
does not factor (over the real numbers). For example,
2x + 1
f (x) = 2
.
x + 4x + 5
To find the integral of such a function, we manipulate the integrand so
that
the numerator equals the derivative of the denominator.
This leads to a logarithm and complete the square on the denominator
of the remaining term leading to an inverse tangent function.

42

Ex: Evaluate
I :=

Z

2x + 1
dx.
x2 + 4x + 5

43

If the quadratic does have real but irrational roots, one can use this same
method to avoid nasty partial fractions. The second factor will then lead
to an inverse tanh.
e.g.
2x + 1
dx
x2 + 4x − 6
Z
3
2x + 4
+
=
dx
2
2
x + 4x − 6
10 − (x + 2)
!
3
x+2
2
−1

= ln |x + 4x − 6| + √ tanh
+ C.
10
10
Z

44

Ex: [Q1, Class Test 1, 2002] Calculate
Z

x
dx.
x2 + 2x + 10

You are given that
Z

du
u
1
−1
+ C.
= tan
u2 + a2
a
a

45

Combinations of the Rules:
These rules can be combined to cover a variety of situations.
Ex: Calculate
I :=

Z

x+6
dx.
x(x2 + 2x + 3)

46

In general, an irreducible quadratic factor
x2 + ax + b
in the denominator will give rise to a term of the form
Ax + B
x2 + ax + b
and more generally again, a factor
(x2 + ax + b)k
in the denominator will give rise to terms of the form
A 1 x + B1
A 2 x + B2
A k x + Bk
+ 2
+ ... + 2
.
x2 + ax + b
(x + ax + b)2
(x + ax + b)k

47

Ex. Evaluate
I :=

Z

x
dx.
(x + 1)2(x2 + 1)

48

Applications matter! Where does an integral involving partial fractions arise? Let P = P (t) denote the population size of a species
at time t. It can be shown that P and dP/dt satisfy the “differential
equation”  

dP
P
=P 1−
(3)
dt
M
where M > 0 is a constant.
The challenge is to determine the unknown function P from (3) and
hence predict what will happen to the population over time.
If we rearrange (3) and integrate both sides w.r.t t then we obtain
Z

dP  

dt =
P
dt
P 1−M
1

Z

1dt

which becomes
M

Z

dP
= t + K.
P (M − P )
49

Applying partial fractions we obtain
M

Z

dP
=
P (M − P )

Z

dP
+
P

Z

dP
M −P

which can be integrated to form
P
= Cet.
|M − P |
By considering two separate cases M − P > 0 and M − P < 0 we
can rearrange, solve for P and plot the following graph.

50

51

7. Rationalising substitutions
The above methods using partial fractions allow us to integrate (in principle) any rational function, so we often make a change of variable in an
integral that will lead us to some rational function.
Ex: Evaluate
I :=

Z

dx
1 + x1/4

.

52

Ex: Calculate
I :=

dx

Z
q

.

e2x − 1

53

8. Weierstrass’ substitution.
Weierstrass’ substitution is very useful for integrals involving a rational
expression in sin x and/or cos x.
x.
Weierstrass’ substitution is t = tan 2

2t
1 − t2
2 dt
Recall, that sin x =
, cos x =
, and that dx =
.
1 + t2
1 + t2
1 + t2
You should know how to derive these formulae. For example, if t =
tan(x/2) then
2 tan(x/2)
2t
=
1 + t2
1 + tan2(x/2)
[sin(x/2)]/[cos(x/2)]
= 2
1 + [sin2(x/2)]/[cos2(x/2)]
= 2 sin(x/2) cos(x/2) = sin x.
Who was Weierstrass??
54

Ex: Calculate
I :=

Z

dx
.
1 + cos x + sin x

55

R π/2

Ex: Show that I = 0

dx
π .

=
2+cos x
3 3

We let t = tan(x/2), so that
1 − t2
cos x =
1 + t2
2 dt
1 + t2
in a similar way to the previous example. Substitution then leads to
dx =

Z 1

2
I =
dt
0 3 + t2
"
#1
2
t
= √ tan−1 √
3
3 0
π
= √ .
3 3

56

Applications matter! Where does an integral like

1 + cos θ + sin θ
arise? Consider a thin plate in the XY –plane that occupies the region
(in polars)
Z

1 ≤ r ≤ 2,

0 ≤ θ ≤ π/2.

Suppose at each point (x, y) 6= (0, 0) the plate has density function
1
δ(x, y) = q
.
x2 + y 2 + x + y
To evaluate the total mass M of the plate we consider
 √

Z
Z
1

M =

0

 √

4−y 2

1−y 2

δ(x, y) dx dy.

Now, making substitutions: x = r cos θ; y = r sin θ; dx dy =
r dr dθ we obtain
M =

Z 2
1

dr

Z π/2
0

.
1 + cos θ + sin θ
57

9. APPENDIX
MAPLE
The following examples show how to use MAPLE to perform partial
fraction decompositions.
> convert(x^2/(x+2), parfrac, x);

4
x−2+
x+2
> convert(x/(x-b)^2, parfrac, x);

b
1
+
(x − b)2
x−b
58

Integration by Parts.

The analysis requires you to:
choose functions f and g 0 ;
then calculate f 0 and g from your above choices;
and then apply the above formula.

Ex: Evaluate I =

R

xex dx.

We choose f = x and g 0 = ex. Thus, f 0 = 1 and g = ex. Using
our IBP formula
I=

Z

xex dx = xex −

Z

1ex dx

= xex − ex + C.
59

Integration by inspection.
When confronted by an integral, you should always see if the integral
can be ‘guessed’ and then fine–tuned by multiplying or dividing by a
constant.
Alternatively, multiply and divide the integral by a particular constant to
put it into a useful form.
Ex: Evaluate

R

x(x2 + 1)10 dx.

See that x is “almost” the derivative of (x2 + 1).
We make the guess (x2 +1)11 and then check our guess by evaluating
d
[(x2 + 1)11] = 11 · 2x(x2 + 1)10 = 22x(x2 + 1)10.
dx
See that we have an unwanted 22 in the above. Thus, we divide our
initial guess by 22 to obtain our answer
Z

x(x2 + 1)10 dx =

1 2
(x + 1)11 + C.
22
60

Observe that this method ONLY works for integrals of the form
Z

f (g(x))g 0(x) dx

when the derivative g 0(x) is present in the integrand up to a constant.
"

− cos6 t

#

d
dt
dt
6
− cos6 t
.
=
6
The above methods should remind you of the chain rule!
Z

sin t cos5 t dt =

Z

Z

x4(x3 + 1)10 dx

cannot be ‘guessed’ and fine tuned since the derivative of x3 + 1 is not
in the integrand.

61

Other useful integrals.
1

Z
q

a

a2 − x2
1

Z

x
−1
dx = sin

x
−1
dx = sinh

q

a2 + x2

Z

x
1
1
−1
tan
dx =
2
2
a +x
a
a

Z

1
1
−1 x
dx
=
tanh
a2 − x2
a
a

a

These four should be learnt carefully.
62