Chapter 4
Chapter 4
Chapter 4 INTEGRATION
4.1 Areas under Curves
4.2 The Definite Integral
4.3 Properties of the Definite Integral
4.4 The Fundamental Theorem of Calculus
4.5 Integration by Substitution
4.6 Integration by Parts
4.7 Additional Techniques of Integration.
Partial Fractions
4.8 Integration Using Tables and Computer
Algebra Systems
4.9 Numerical Integration
4.10 Improper Integrals
1
Introduction
In Chapter 2 we learnt about differentiation.
Given a quantity, differentiation allows us to find its
rate of change. It is related to finding the tangent.
3
DISTANCE PROBLEM: Constant velocity
distance traveled
= area under the graph.
6
Example 1
• S is contained within a square with side length 1, so
clearly 0 < S < 1. But we can get a better estimate…
• Suppose we divide S into four strips as shown.
• Approximate each strip by a rectangle whose height
is the same as the right edge of the strip.
7
Example 1, cont.
15
The area
32 A of S is less than R4, so A < 0.46875
8
Example 1, cont.
Alternatively, we could
draw rectangles using
left-hand endpoints.
10
Example 1, cont.
Using a
computer we
get these
results:
12
Example 2, cont.
Divide the interval into n strips.
Each rectangle has width 1/n
The heights are the values of
f(x) = x2 at the points 1/n, 2/n,
3/n, …, n/n.
That is, the heights are
(1/n)2, (2/n)2, (3/n)2, … , (n/n)2.
2 2 2 2
11 12 13 1n
So, Rn ...
nn nn nn nn
n
1 2 1
3 (1 22 32 ... n 2 ) 3 i 2
n n i 1
13
Example 2, cont.
Using the formula given, we have
1 n
1 n(n 1)(2n 1) (n 1)(2n 1)
Rn 3
n
i 1 i n3
2
6
6n 2
1 1 1 1 1
So, lim R n lim 1 2 1 2
n n 6
n n 6 3
We have proved the required result.
Notes
• It can similarly be shown that lim Ln 13 .
n
• As n increases, Rn and Ln become better and better
approximations to the area A.
We can say A lim R lim L 1
n n 3
n n 14
AREA PROBLEM - Generalised
Let’s apply the ideas above to the more general
problem of finding the area under a curve.
What is the area A of region S, the area under the
positive function y = f(x) between x = a and x = b ?
15
AREA PROBLEM - generalised
• Subdivide S into n
strips of equal width
• Interval [a, b] has
width b – a.
• Each strip has
width x b a
n
• The strips divide [a, b] into n subintervals:
[x0, x1], [x1, x2], [x2, x3], . . . , [xn-1, xn] where x0 = a, xn = b.
19
Note:
The Riemann sum is the sum of the areas above the
x-axis minus the sum of the areas below the x-axis
20
Definite Integral - Definition
• It can be shown that for a given function f(x)
continuous on [a, b], however we choose the
partition P and sample points xi*, the limit is always
the same real number, I. (See Stewart for proof.)
• I is called the definite integral of f on [a, b].
n
I f ( x )dx Lim R( f , P) Lim f ( xi *)xi
b
a n n
i 1
(provided also that as n , max xi 0)
23
5
Example 3 Consider the integral I (3x 2)dx.
1
(a) Write the integral as the limit of a Riemann sum, and
thus evaluate it. You may use the result n n(n 1)
i 1
i
2
.
24
(b) Confirm your answer to part (a) by sketching a graph of
the area represented by the integral, and using geometry
to evaluate it.
25
4.3 Properties of the Definite Integral
If f and g are integrable on an interval containing a, b and c,
a
a f ( x)dx 0
b a
a f ( x)dx b f ( x)dx
b b b
a [f ( x) g ( x)]dx a f ( x)dx a g ( x)dx
b c c
a f ( x)dx b f ( x)dx a f ( x)dx
a
If fo is an odd function then
a
f o ( x)dx 0
a a
If fe is an even function then a
f e ( x)dx 2 f e ( x)dx
0
26
Comparison Properties
b
If f(x) ≥ 0 for a ≤ x ≤ b then a
f ( x )dx 0.
b b
If f(x) g(x) and a b then
a
f ( x )dx g ( x )dx.
a
b b
If a b then a
f ( x )dx f ( x ) dx.
a
27
Example 5
1
e
x2
Show that dx 1
0
and find a lower limit to the value of the integral.
28
4.3 A Mean Value Theorem for Integrals
If f is continuous on [a, b] then there exists
b
c [a, b] such that f ( x)dx f (c)(b a)
a
1 b
That is, there exists c [a, b] such that f (c)
ba a
f ( x)dx
31
4.4 The Fundamental Theorem
of Calculus
33
Revision: Antiderivatives
From Chapter 3, recall that:
• On an interval J, an antiderivative F of function f
is such that F(x) = f(x) for all x in J.
34
FTC – Part A
I.e. d x
dx a
f (t )dt f ( x)
1
Lim f (c)h for some c between x and x + h
h 0 h
Lim f (c) f ( x)
h0
since c x as h 0.
36
Example 7 Find the derivative of
x
a) F ( x) e dt
t 2
3
x2
b) G( x) t 2
e dt
1
x2
c) H ( x) e dt t 2
x
20
d) F ( x) sin t 2 dt
2x
37
FTC – Part B
a f ( x)dx f ( x)dx a
b b (Newton Leibnitz
formula.)
38
Example 8
1
2
Evaluate (a) x dx
0
/2
(b) 0
cos x dx
x
From Part A, F ( x) a f (t )dt is an antiderivative of f on J
41
Example 10
a) Find the area under the curve y = sin 2x, above y = 0
between x = 0 and x = /2.
42
Practical Application: Finding Net Change
• From the FTC we know that
dF b
if f ( x)
dx
then
a
f ( x)dx F (b) F (a)
• If F(x) is a quantity, f = dF/dx is its rate of change.
dN
A population is growing at rate R(t ) .
t2 dt
What does
R(t ) dt represent?
t1
44
Example 11
At 7 a.m. water begins flowing into a tank at a rate of
10 + 2t litres/hour, where t is time in hours after 7 a.m..
By 11 a.m. how much water has flown in?
45
Total and Marginal Cost
The cost function C(x) is the total cost a company incurs
in producing x units of a certain product.
The marginal cost is the derivative dC/dx: it represents
how the cost of production changes as the amount
produced changes.
46
Example 12
The marginal cost in producing x computer chips (in units
of 1000) is C( x) 150 x 2 3000 x 17500 ($ per 1000 chips).
a) Find the cost of increasing production from 10,000 to
15,000 chips.
b) Assuming C(0) = 35,000 (i.e. set up costs were
$35,000), find the total cost of producing 15,000 chips.
47
Practical Application: Distance Traveled
Earlier we said that the area under a velocity-time graph
(for positive velocities) represents distance travelled.
Now we can prove this.
Let s(t) be the position and v(t) the velocity of a particle
at time t. v(t ) ds t
v(t )dx s(t ) s(t )
2
dt
so t1
2 1
49
4.5 Integration by Substitution
• By the FTC, we can evaluate an integral if we can find
an antiderivative of the integrand.
• Sometimes we can find an antiderivative by inspection.
To be able to do this, you should memorize elementary
derivatives and integrals.
• But many integrals cannot be solved by inspection. In
general, finding antiderivatives is not as easy as finding
derivatives – indeed sometimes it is very difficult or even
impossible!
• We will study two techniques. These will enable us to
evaluate many common integrals.
• The substitution rule (section 4.5)
• The method of integration by parts (section 4.6)
50
The Substitution Rule for Indefinite Integrals
Let f and g be functions and let F be an antiderivative of f.
The Chain Rule of differentiation (2.3.2). can be written
F g ( x) F g ( x) g ( x) f g ( x) g ( x)
d
dx
Integrating both sides we get
f g ( x)g ( x)dx F g ( x) C
Using the substitution u = g(x), so du = g(x)dx, we can
rewrite this: f (u) du F (u) C
Substitution Rule:
xe
x2
a) Find dx
b) Find
3 7 2
( 2 x 1) x dx
1)dx
2
a) Find x sin( x
2
x
b) Find
x3 1 dx
c) Find tan x dx
53
The Substitution Rule for Definite Integrals
55
Example 17
3
Find the area under the curve y on [1, 2].
5x 1
56
Example 18
Prove that for all positive integers n,
/2 /2
cos x dx
n
sin n x dx
0 0
Solution
/ 2 / 2 / 2 n
0 cos x dx sin ( x) dx sin ( x) d ( x)
n n
I=
0 2 0 2 2
Let u = /2 – x . Then u(0) = /2 , u(/2) = 0, so
0 / 2 / 2
I=
/ 2 sin u du sin u du
n n
sin n x dx
0 0
57
Inverse Substitution
• So far we have used direct substitutions: we have
replaced a function in the integrand with a new variable.
• Sometimes it is more helpful to do inverse substitution:
replace the variable of integration with a function of a
new variable.
Example 19
dx
Find 1 / 2 using the inverse substitution x = u 6.
x (1 x1 / 3 )
58
4.6 Integration by Parts
Suppose U(x) and V(x) are two differentiable functions.
The Product Rule of differentiation is:
d
U ( x)V ( x) U ( x) V ( x)
dV dU
dx dx dx
This can be rearranged:
U ( x)
dV
d
U ( x)V ( x) V ( x) dU
dx dx dx
Integrating both sides w.r.t. x gives
dV dU
U ( x) dx
dx U ( x)V ( x) V ( x)
dx
dx
or more simply,
UdV UV VdU
59
This method is called ‘integration by parts’ because we
replace the integral with the sum of an integrated term UV
and another integral which remains to be evaluated – so
we accomplish only “part” of the original integration.
Example 20
Find the following integrals:
(a) x tan 1 x dx
60
3
(b) ln x dx
1
Hint: We don’t know how to integrate ln x … but we do know
how to differentiate it!
e
(c) x 6 ln x dx
1
61
Using integration by parts we can sometimes obtain what
are called reduction formulae.
Example 21 Find a reduction formula for I n sin n x dx
Solution Use integration by parts, with
n 1 n 2
U sin x , dU (n 1) cos x sin x dx
dV sin x dx , V cos x dx
I n sinn1 x cos x (n 1) sinn2 x cos 2 x dx
sinn1 x cos x (n 1) sinn2 x(1 sin2 x) dx
sinn1 x cos x (n 1) I n2 (n 1) I n
So nI sin n 1 x cos x (n 1) I
n n 2
1 n 1 n 1
Hence I n sin x cos x I n 2 .
n n 62
A formula like that found in Example 20, expressing In
as a function of integral(s) involving lower power(s), is
called a reduction formula.
We can easily see that I0 = dx = x + C
and I1 = sinx dx = – cosx + C,
Then by repeated application of the formula, we can
find In for all higher n.
63
4.7 Additional Techniques of
Integration
Integrals of Trigonometric Functions (1)
Integrals of tanx, cotx, secx and cosecx.
• Integral of tanx was found in Example 11b
• Can similarly show cot x dx = ln |sinx| + C
• By differentiation we see
d sec x tan x sec x
2
ln | sec x tan x | sec x
dx sec x tan x
Thus
sec xdx ln sec x tan x C
• It can similarly be shown that
cosec x dx ln cosec x cot x C 64
Integrals of Trigonometric Functions (2)
Integrals of form
m n
sin x cos xdx (m,n +ve integers)
m 2 k
Let u = sinx, so du = cosx dx , gives u (1 u ) du
which is easily found.
• If m and n are both even, use the formulae
sin2x = ½(1 – cos 2x)
cos2x = ½(1 + cos 2x).
65
Example 22
3 8
a) Find sin x cos x dx
x dx
4
b) Find sin
66
Trigonometric Inverse Substitutions
If we need to integrate functions containing expressions
such as a2 x2 , a 2 x2 , or x2 a 2 ,
sometimes the easiest way is using an trigonometric
(inverse) substitution that gets rid of the square root sign.
67
Example 23
Prove that the area of a circle of radius r is r2.
68
Example 24 dx
Evaluate I
(5 x 2 )3 / 2
69
Trigonometric Inverse Substitutions (cont.)
71
Example 26 dx
Evaluate x2 a2
Solution
72
4.7 Partial Fractions
In this section we learn how to evaluate integrals of
the form P( x) dx where P and Q are polynomials.
Q( x)
73
Introduction to Partial Fractions
In a fraction p/q, p is called the numerator, q is the
denominator.
To add or subtract fractions, we use a common
denominator. For example,
2 1 2( x 2) 1( x 1) x5
2
x 1 x 2 ( x 1)( x 2) x x2
Using this result in reverse enables us to integrate
the function on the RHS above:
x5 2 1
x 2 x 2 dx x 1 x 2 dx = 2ln|x – 1| – ln|x + 2| + C
This is the idea of the method of partial fractions.
To integrate a rational function, P(x) / Q(x), we first
express it as a sum of simpler terms. 74
Theory of Partial Fractions: Case 1
Case 1: Degree of P degree of Q
A theory states:
Any rational function P(x) / Q(x) can be
expressed in the form P( x) P ( x) R( x)
1
Q( x) Q( x)
where P1 is a polynomial and R is a polynomial
of degree less than that of Q.
Given a rational function with degree of P degree of Q,
first we use long division, or some similar procedure,
to simplify the expression – to get a polynomial P1
(which can be easily integrated) plus a new rational
function R(x)/Q(x) (which can be handled as
described in Case 2, below). 75
x 3
x
Example 27 Find
x 1 dx
x x
3
2
By long division we find x x2
2
x 1 x 1
x3 x 2
x 1 dx x x 2 x 1 dx
2
3 2
x x
2 x 2ln | x 1| C
3 2
76
Theory of Partial Fractions: Case 2
Method
1. Factorise Q as far as possible.
2. Decompose P/ Q into simpler fractions:
For each factor (x – a)n in Q, write fractions
A1 A2 An
...
x a ( x a) 2
( x a) n
For each factor (x2 + bx + c)n in Q which has no real
roots, write fractions
B1 x C1 B2 x C 2 Bn x C n
...
x bx c
2
( x bx c)
2 2
( x 2 bx c) n
3. Find the constants A, B, C, etc. (see example below).
78
Case 2, cont.
Examples of Step 2
Factorized form of P/Q Partial Fractions
1
( x 1)(2 x 3)
2x2 3
x(3x 4)( x 1)
2x2 3
x( x 1) 2
5x3 7 x 3
( x 2 2) 2
79
Example 28 ( x 4) dx
Find I 2
x 5x 6
The denominator can be factorised as follows:
x4 x4
x 5 x 6 ( x 2)( x 3)
2
82
( x 2)
x 4 x 2 dx
Example 30 Find
83
Final note
Any rational function P/Q can be integrated using the
methods above.
However sometimes a different approach is quicker!
2
For example, consider x
dx
( x 1) 5
84
4.8 Integration Using Tables
Inside the back cover of Stewart is a table of 120
common integrals. More extensive tables may be
found in other books. In practice, scientists often
refer to such tables of intervals.
85
Example 31
Find I x 2 2 x 4 dx.
You may use the following result (where a is a constant):
2
u a
)C
2 2 2 2 2 2
a u du a u ln( u a u
2 2
86
Integration Using Computer
Algebra Systems
Nowadays there are also computer programs which can
do integration, such as Derive, Mathematica and Maple.
These programs can evaluate a wide range of integrals.
However sometimes they give their answers in a less
convenient form than one could find by hand.
For example, consider I = x (x2 + 5)8 dx
By hand, using the substitution u = x2 + 5, we find:
x (x2 + 5)8 dx = (x2 + 5)9 /18 + C
Meanwhile Maple and Mathematica give:
x18/18 + 5x16/2 + 50x14 + 1750x12/3 + 4375x10 + 21875x8
+ 218750x6/3 + 156250x4 + 390625x2.
87
4.9 Numerical Integration
There are two situations in which it is impossible to find
analytically the exact value of a definite integral.
b
1) We may want to find a f ( x)dx … but be unable to do
so by any analytical techniques. Even many common
functions do not have antiderivatives, for example
1 1
1 x3 dx
x2
e dx
0 1
2) If a function is defined by experimental data then there
may be no exact formula for the function.
In both these cases we cannot find exact values of
integrals, but we can find approximate values by
numerical methods.
88
Numerical Integration by Riemann Sums
We already know one method for finding an approximate
value of an integral: we can use any Riemann Sum.
Revision If interval [a, b] is divided into n subintervals of equal
n
b a b
length x
n
, then
a
f ( x) dx
i 1
f ( xi *) x
where xi* is any point in the ith subinterval [xi-1, xi]
89
In Section 4.1 we met two common types of Riemann Sum.
90
Example 32
The table below gives the values of a function f(x) on [0, 30].
30
Estimate the value of the integral f ( x) dx using (a) left
0
endpoints, (b) right endpoints.
x 0 5 10 15 20 25 30
f(x) 1 1.7 2.2 1.9 1.6 1.1 0.7
91
Trapezoidal Rule
• A more accurate estimate is often obtained by taking the
average of Ln and Rn:
b 1 n n
x n
a f ( x ) dx
2 i 1
f ( xi 1 )x f ( xi )x
i 1
2 i 1
f ( xi 1 ) f ( xi )
x
So
f ( x0 ) f ( x1 ) f ( x1 ) f ( x2 ) f ( xn1 ) f ( xn )
2
1 x
Tn ( Ln Rn ) f ( x0 ) 2 f ( x1 ) 2 f ( x2 ) 2 f ( xn1 ) f ( xn )
2 2
where x b a and xi a i x
n
This is known as the trapezoidal rule
because x
[ f ( xi 1 ) f ( xi )]
2
is the area of the trapezoid that lies
above the ith subinterval.
92
Midpoint Approximation
• Another good approximation is
obtained by choosing xi* to be
the midpoint of [xi-1, xi]:
xi * xi 12 ( xi 1 xi )
This is called the midpoint rule:
M n x [ f ( x1 ) f ( x 2 ) ... f ( x n )] with x b a
n
Example 32, cont. x 0 5 10 15 20 25 30
30
Estimate 0
f ( x) dx using f(x) 1 1.7 2.2 1.9 1.6 1.1 0.7
(d) midpoints.
93
Example 33
2
Find an approximate value of the integral (1/ x) dx using
1
n = 5 and (a) the midpoint rule, (b) the trapezoidal rule.
95
Simpson’s Rule
Another approximation, which is much better than either the
Trapezoidal or Midpoint Rules, is known as Simpson’s Rule.
In this case we again divide the interval into n strips of equal
width x = (b – a)/n, but this time n must be even. Then,
b x
a
f ( x)dx S n [ f ( x0 ) 4 f ( x1 ) 2 f ( x2 ) 4 f ( x3 ) 2 f ( x4 )
3
2 f ( xn 2 ) 4 f ( xn 1 ) f ( xn )]
97
Example 33, cont.
2
(c) Approximate
1
(1/ x) dx using Simpson’s Rule with n = 10.
Putting f(x) = 1/x, n = 10, and ∆x = 0.1 in Simpson’s Rule,
we have:
2 1 x
1 x
dx S10
3
[ f (1) 4 f (1.1) 2 f (1.2) 4 f (1.3)
99
t (hours) t (seconds) D(t) Let A(t) be the total amount of
0 0 3.2 data (in Mb) transmitted by time t.
1 3600 2.7 Then A’(t) = D(t). So by the Total
2 7200 1.9 Change Theorem (p.45) the
3 10800 1.7 amount of data transmitted over
4 14400 1.3 the period is:
21,600
5 18000 1.0 A(21,600) D(t ) dt
6 21600 1.1 0
2x
(b) e dx
1
(c) 0
cos x dx
104
Example 37
dx
Find the integral 2 or show that it does not exist.
1 x
105
The following is a well-known result:
dx
1 xp
is convergent for p > 1 and divergent for p 1.
Example 39
Find the area A of the region lying under y = 1/ x and
above the x-axis between x = 0 and x = 1.
Solution
As x 0+, y , i.e. y is unbounded, so we cannot
use the earlier definition of the definite integral.
But consider the area between x = t and x = 1:
1 dx 1
A(t ) 2 x 2(1 t )
t x t
t
• If a f ( x)dx exists for every t [a, b) and f is possibly
b t
unbounded near b, then a f ( x)dx Lim a f ( x)dx
t b
provided this limit exists as a finite number.
b
• If t f ( x)dx exists for every t (a, b] and f is possibly
b b
unbounded near a, then a f ( x)dx Lim t f ( x)dx
t a
provided this limit exists as a finite number.
b c b
then we define:
a
f ( x)dx a
f ( x)dx
f ( x)dx
c
108
Example 40
dx
3
Find I 0
x 1
110
A Comparison Test for Improper Integrals
Sometimes we cannot find the exact value of an improper
integral but we can find whether or not it is convergent.
112