Professional Documents
Culture Documents
W W L CHEN
c
This chapter is available free to all individuals, on the understanding that it is not to be used for financial gain,
and may be downloaded and/or photocopied, with or without permission from the author.
However, this document may not be kept on any information storage and retrieval system without permission
from the author, unless such system is not accessible to any individuals other than its owners.
Chapter 6
THE RIEMANN INTEGRAL
6.1. Introduction
Suppose that a function f (x) is bounded on the interval [A, B], where A, B R and A < B. Suppose
further that
: A = x0 < x1 < x2 < . . . < xn = B
is a dissection of the interval [A, B].
Definition. The sums
s(f, ) =
n
X
(xi xi1 )
i=1
inf
f (x)
and
S(f, ) =
x[xi1 ,xi ]
n
X
(xi xi1 )
i=1
sup
f (x)
x[xi1 ,xi ]
are called respectively the lower Riemann sum and the upper Riemann sum of f (x) corresponding to
the dissection .
Example 6.1.1. Consider the function f (x) = x2 in the interval [0, 1]. Suppose that n N is given and
fixed. Let us consider a dissection
n : 0 = x0 < x1 < x2 < . . . < xn = 1
of the interval [0, 1], where xi = i/n for every i = 0, 1, 2, . . . , n. For every i = 1, 2, . . . , n, we have
inf
x[xi1 ,xi ]
f (x) =
inf
i1
n
i
x n
x2 =
(i 1)2
n2
and
sup
x[xi1 ,xi ]
f (x) =
sup
i1
i
n x n
x2 =
i2
.
n2
page 1 of 14
Fundamentals of Analysis
It follows that
s(f, n ) =
n
X
(xi xi1 )
i=1
inf
f (x) =
x[xi1 ,xi ]
n
X
(i 1)2
i=1
n3
(n 1)n(2n 1)
6n3
and
n
X
S(f, n ) =
(xi xi1 )
i=1
n
X
n(n + 1)(2n + 1)
i2
=
.
sup f (x) =
3
n
6n3
x[xi1 ,xi ]
i=1
1
3
as n .
THEOREM 6A. Suppose that a function f (x) is bounded on the interval [A, B], where A, B R and
A < B. Suppose further that 0 and are dissections of the interval [A, B], and that 0 . Then
s(f, 0 ) s(f, )
and
S(f, ) S(f, 0 ).
Proof. Suppose that x0 < x00 are consecutive dissection points of 0 , and suppose that
x0 = y0 < y1 < . . . < ym = x00
are all the dissection points of in the interval [x0 , x00 ]. Then, drawing a picture if necessary, it is easy
to see that
m
X
(yi yi1 )
i=1
inf
f (x)
x[yi1 ,yi ]
m
X
(yi yi1 )
i=1
inf
f (x) = (x00 x0 )
sup
f (x) = (x00 x0 )
x[x0 ,x00 ]
inf
f (x)
sup
f (x).
x[x0 ,x00 ]
and
m
X
i=1
(yi yi1 )
sup
f (x)
x[yi1 ,yi ]
m
X
(yi yi1 )
x[x0 ,x00 ]
i=1
x[x0 ,x00 ]
The result follows on summing over all consecutive points of the dissection 0 .
THEOREM 6B. Suppose that a function f (x) is bounded on the interval [A, B], where A, B R and
A < B. Suppose further that 0 and 00 are dissections of the interval [A, B]. Then
s(f, 0 ) S(f, 00 ).
Proof. Consider the dissection = 0 00 of [A, B]. Then it follows from Theorem 6A that
s(f, 0 ) s(f, )
and
S(f, ) S(f, 00 ).
(1)
(2)
and
where the supremum and infimum are taken over all dissections of [A, B], are called respectively the
lower integral and the upper integral of f (x) over [A, B].
Chapter 6 : The Riemann Integral
page 2 of 14
Fundamentals of Analysis
Remark. Since f (x) is bounded on [A, B], it follows that s(f, ) and S(f, ) are bounded above and
below. This guarantees the existence of I (f, A, B) and I + (f, A, B).
THEOREM 6C. Suppose that a function f (x) is bounded on the interval [A, B], where A, B R and
A < B. Then I (f, A, B) I + (f, A, B).
Proof. Suppose that 0 is a dissection of [A, B]. Then it follows from Theorem 6B that
s(f, 0 ) S(f, )
for every dissection of [A, B]. Keeping 0 fixed and taking the infimum over all dissections of
[A, B], we conclude that
s(f, 0 ) inf S(f, ) = I + (f, A, B).
Taking now the supremum over all dissections 0 of [A, B], we conclude that
I + (f, A, B) sup s(f, 0 ) = I (f, A, B).
0
Example 6.1.2. Let us return to Example 6.1.1, and consider again the function f (x) = x2 in the
interval [0, 1]. Recall that both s(f, n ) and S(f, n ) converge to 31 as n . It follows that
I (f, 0, 1)
1
3
and
I + (f, 0, 1)
1
.
3
1
,
3
so that
Z
0
x2 dx =
1
.
3
We can establish the following characterization of Riemann integrable functions in terms of Riemann
sums.
THEOREM 6D. Suppose that a function f (x) is bounded on the interval [A, B], where A, B R and
A < B. Then the following two statements are equivalent:
(a) f R([A, B]).
(b) Given any > 0, there exists a dissection of [A, B] such that
S(f, ) s(f, ) < .
Chapter 6 : The Riemann Integral
(3)
page 3 of 14
Fundamentals of Analysis
(4)
where the supremum and infimum are taken over all dissections of [A, B]. For every > 0, there exist
dissections 1 and 2 of [A, B] such that
s(f, 1 ) > sup s(f, )
2
S(f, 2 ) < inf S(f, ) + .
(5)
S(f, ) S(f, 2 ).
(6)
and
and
(7)
Combining (3) and (7), we conclude that 0 I + (f, A, B) I (f, A, B) < . Note now that > 0
is arbitrary, and that I + (f, A, B) I (f, A, B) is independent of . It follows that we must have
I + (f, A, B) I (f, A, B) = 0.
Z
cf (x) dx = c
f (x) dx.
A
f (x) dx 0.
A
f (x) dx
A
g(x) dx.
A
Proof. (a) Since f, g R([A, B]), it follows from Theorem 6D that for every > 0, there exist dissections
1 and 2 of [A, B] such that
S(f, 1 ) s(f, 1 ) <
2
and
.
2
2
and
.
2
(8)
Suppose that the dissection is given by : A = x0 < x1 < x2 < . . . < xn = B. It is easy to see that
for every i = 1, . . . , n, we have
sup
x[xi1 ,xi ]
Chapter 6 : The Riemann Integral
(f (x) + g(x))
sup
x[xi1 ,xi ]
f (x) +
sup
g(x)
x[xi1 ,xi ]
page 4 of 14
Fundamentals of Analysis
and
(f (x) + g(x))
inf
x[xi1 ,xi ]
inf
f (x) +
x[xi1 ,xi ]
inf
g(x).
x[xi1 ,xi ]
It follows that
S(f + g, ) S(f, ) + S(g, )
and
(9)
(10)
page 5 of 14
Fundamentals of Analysis
so that
I (f, A, B) + I (g, A, B) I (f + g, A, B).
(11)
(12)
Clearly I (f, A, B) = I + (f, A, B) and I (g, A, B) = I + (g, A, B), and so equality must hold everywhere
in (12). In particular, we have I + (f, A, B) + I + (g, A, B) = I + (f + g, A, B).
(b) The case c = 0 is trivial. Suppose now that c > 0. Since f R([A, B]), it follows from Theorem
6D that for every > 0, there exists a dissection of [A, B] such that
S(f, ) s(f, ) < .
c
It is easy to see that
S(cf, ) = cS(f, )
and
s(cf, ) = cs(f, ).
(13)
Hence
S(cf, ) s(cf, ) < .
It follows from Theorem 6D that cf R([A, B]). Also, (13) clearly implies I + (cf, A, B) = cI + (f, A, B).
Suppose next that c < 0. Since f R([A, B]), it follows from Theorem 6D that for every > 0, there
exists a dissection of [A, B] such that
S(f, ) s(f, ) < .
c
It is easy to see that
S(cf, ) = cs(f, )
and
s(cf, ) = cS(f, ).
(14)
Hence
S(cf, ) s(cf, ) < .
It follows from Theorem 6D that cf R([A, B]). Also, (14) clearly implies I + (cf, A, B) = cI (f, A, B).
(c) Note simply that
Z
f (x) dx (B A)
inf
f (x),
x[A,B]
where the right hand side is the lower sum corresponding to the trivial dissection.
(d) Note that g f R([A, B]) in view of (a) and (b). We apply part (c) to the function g f .
Next, we investigate the question of breaking up the interval [A, B] of integration.
THEOREM 6F. Suppose that f R([A, B]), where A, B R and A < B. Then for every real number
C (A, B), we have f R([A, C]) and f R([C, B]). Furthermore, we have
Z
f (x) dx =
A
Chapter 6 : The Riemann Integral
f (x) dx +
A
f (x) dx.
(15)
C
page 6 of 14
Fundamentals of Analysis
Proof. We shall first show that for every C 0 , C 00 R satisfying A C 0 < C 00 B, we have f
R([C 0 , C 00 ]). Since f R([A, B]), it follows from Theorem 6D that given any > 0, there exists a
dissection of [A, B] such that
S(f, ) s(f, ) < .
It follows from Theorem 6A that the dissection = {C 0 , C 00 } of [A, B] satisfies
S(f, ) s(f, ) < .
(16)
Suppose that the dissection is given by : A = x0 < x1 < x2 < . . . < xn = B. Then there exist
k 0 , k 00 {0, 1, 2, . . . , n} satisfying k 0 < k 00 such that C 0 = xk0 and C 00 = xk00 . It follows that
0 : C 0 = xk0 < xk0 +1 < xk0 +2 < . . . < xk00 = C 00
is a dissection of [C 0 , C 00 ]. Furthermore,
00
S(f, 0 ) s(f, 0 ) =
k
X
!
(xi xi1 )
n
X
f (x)
sup
inf
f (x)
x[xi1 ,xi ]
x[xi1 ,xi ]
i=k0 +1
!
(xi xi1 )
f (x)
sup
inf
f (x)
x[xi1 ,xi ]
x[xi1 ,xi ]
i=1
(17)
while
Z
Z
f (x) dx = inf S(f, 1 )
1
and
(18)
Here , 1 and 2 run over all dissections of [A, B], [A, C] and [C, B] respectively. The identity (15)
will follow from (17) and (18) if we can show that
inf S(f, ) = inf S(f, 1 ) + inf S(f, 2 ).
(19)
Suppose first of all that is a dissection of [A, B]. Then we can write {C} = 0 00 , where 0
and 00 are dissections of [A, C] and [C, B] respectively. By Theorem 6A, we have
S(f, ) S(f, {C}) = S(f, 0 ) + S(f, 00 ).
Clearly
S(f, 0 ) + S(f, 00 ) inf S(f, 1 ) + inf S(f, 2 ).
1
Hence
S(f, ) inf S(f, 1 ) + inf S(f, 2 ).
1
Taking the infimum over all dissections of [A, B], we conclude that
inf S(f, ) inf S(f, 1 ) + inf S(f, 2 ).
(20)
page 7 of 14
Fundamentals of Analysis
To establish the opposite inequality, suppose next that 1 and 2 are dissections of [A, C] and [C, B]
respectively. Then 1 2 is a dissection of [A, B], and
S(f, 1 ) + S(f, 2 ) = S(f, 1 2 ) inf S(f, ).
Keeping 2 fixed and taking the infimum over all dissections 1 of [A, C], we have
inf S(f, 1 ) inf S(f, ) S(f, 2 ),
1
and so
S(f, 2 ) inf S(f, ) inf S(f, 1 ).
and so
inf S(f, 1 ) + inf S(f, 2 ) inf S(f, ).
(21)
f (x) dx =
A
f (x) dx +
A
f (x) dx.
C
Proof. Since f R([A, C]) and f R([C, B]), it follows from Theorem 6D that given any > 0, there
exist dissections 1 and 2 of [A, C] and [C, B] respectively such that
S(f, 1 ) s(f, 1 ) <
2
and
.
2
(22)
and
Hence
S(f, ) s(f, ) = (S(f, 1 ) s(f, 1 )) + (S(f, 2 ) s(f, 2 )) < ,
in view of (22). It now follows from Theorem 6D that f R([A, B]). The last assertion now follows
immediately from Theorem 6F.
Finally, we consider the question of altering the value of the function at a finite number of points.
The following result may be applied a finite number of times.
Chapter 6 : The Riemann Integral
page 8 of 14
Fundamentals of Analysis
THEOREM 6H. Suppose that f R([A, B]), where A, B R and A < B. Suppose further that the
real number C [A, B], and that f (x) = g(x) for every x [A, B] except possibly at x = C. Then
g R([A, B]), and
Z B
Z B
g(x) dx.
f (x) dx =
A
Proof. Write h(x) = f (x) g(x) for every x [A, B]. We shall show that
Z B
h(x) dx = 0.
A
Note that h(x) = 0 whenever x 6= C. The case h(C) = 0 is trivial, so we assume, without loss of
generality, that h(C) 6= 0. Given any > 0, we shall choose a dissection of [A, B] such that C is not
one of the dissection points and such that the subinterval containing C has length less than /|h(C)|.
Since |h(C)| h(C) |h(C)|, it is easy to check that
S(h, ) |h(C)|
<
|h(C)|
and
s(h, ) |h(C)|
> .
|h(C)|
Hence
< I (h, A, B) I + (h, A, B) < .
Note now that > 0 is arbitrary, and the terms I (h, A, B) and I + (h, A, B) are independent of . It
follows that we must have I (h, A, B) = I + (h, A, B) = 0. This completes the proof.
f (B) f (A)
for every i = 1, . . . , n.
n
X
(xi xi1 )f (xi )
i=1
and
s(f, ) =
n
X
i=1
page 9 of 14
Fundamentals of Analysis
so that
S(f, ) s(f, ) =
n
X
(xi xi1 )(f (xi ) f (xi1 )) <
i=1
X
(f (xi ) f (xi1 )) = .
f (B) f (A) i=1
It is easy to show that if f (x) is uniformly continuous in an interval I, then it is continuous in I. The
converse is not true, as can be seen from the following example.
Example 6.3.1. Consider the function f (x) = 1/x in the open interval (0, 1). Then given any > 0,
there exists n N such that n2 > 1 . Note now that
1
1
1
1
1
=1
f 1 f
and
=
< 2 < .
n
n+1
n n+1
n(n + 1)
n
THEOREM 6L. Suppose that a function f (x) is continuous in the closed interval [A, B], where
A, B R and A < B. Then f (x) is uniformly continuous in [A, B].
Proof. Suppose on the contrary that f (x) is not uniformly continuous in [A, B]. Then there exists
> 0 such that for every n N, there exist xn , yn [A, B] such that
|xn yn | <
1
n
and
|f (xn ) f (yn )| .
The sequence xn is clearly bounded, and so has a convergent subsequence xnp . Suppose that xnp c
as p . Then
|ynp c| |xnp ynp | + |xnp c| 0
as p ,
so that ynp c as p . Suppose first of all that c (A, B). Since f (x) is continuous in [A, B], it is
continuous at c, and so f (xnp ) f (c) and f (ynp ) f (c) as p . Note now that
|f (xnp ) f (ynp )| |f (xnp ) f (c)| + |f (ynp ) f (c)|.
This implies that |f (xnp ) f (ynp )| 0 as p , clearly a contradiction. If c = A or c = B, then
there is only one-sided continuity at c, and the proof requires minor modification.
Proof of Theorem 6K. In view of Theorem 6L, given any > 0, there exists > 0 such that
|f (x) f (y)| <
BA
page 10 of 14
Fundamentals of Analysis
for every i = 1, . . . , n.
Then
!
n
X
S(f, ) s(f, ) =
(xi xi1 )
f (x)
sup
inf
f (x)
x[xi1 ,xi ]
x[xi1 ,xi ]
i=1
n
X
(xi xi1 ) = .
B A i=1
a+h
F (a + h) f (a) =
f (t) dt.
a
a+h
f (t)
h inf
t[A,B]
t[A,B]
so that F (a + h) F (a) 0 as h 0+. An essentially similar argument holds for h < 0 and h 0.
The argument has to be slightly modified if a = A or a = B.
(b) Suppose first of all that h > 0. Then it follows from Theorem 6E(d) that
Z
h
f (t)
inf
t[a,a+h]
a+h
f (t) dt h
sup
f (t),
t[a,a+h]
so that
inf
f (t)
t[a,a+h]
F (a + h) F (a)
sup f (t).
h
t[a,a+h]
f (t) f (a)
t[a,a+h]
and
sup
f (t) f (a)
as h 0+,
t[a,a+h]
page 11 of 14
Fundamentals of Analysis
so that
F (a + h) F (a)
f (a)
h
as h 0 + .
Proof. It follows from Theorem 6M that F 0 (x) 0 (x) = 0 for every x (A, B), so that F (x) (x)
is constant in [A, B] by Theorem 5H(a). Since F (A) = 0, we must have F (x) = (x) (a) for every
x [A, B].
0
1
if x is rational,
if x is irrational.
We know from Theorem 1D that in any open interval, there are rational numbers and irrational numbers.
It follows that in any interval [, ], where < , we have
inf g(x) = 0
and
x[,]
sup g(x) = 1.
x[,]
and
S(g, ) = 1,
so that
I (g, 0, 1) = 0 6= 1 = I + (g, 0, 1).
It follows that g(x) is not Riemann integrable over the closed interval [0, 1].
Note, on the other hand, that the rational numbers in [0, 1] are countable, while the irrational numbers
in [0, 1] are not countable. In the sense of cardinality, there are far more irrational numbers than rational
numbers in [0, 1]. However, the definition of the Riemann integral does not highlight this inequality.
We wish therefore to develop a theory of integration more general than Riemann integration. This is
the motivation for the Lebesgue integral.
page 12 of 14
Fundamentals of Analysis
xk dx, where k > 0 is fixed, by dissecting the interval [A, B] into n parts
5. Consider the function f (x) = 1/x in the closed interval [1, 2]. For every n N, let n denote the
dissection of the interval [1, 2] into n subintervals of equal length.
a) Find s(f, n ) and S(f, n ), and show that
S(f, n ) s(f, n ) =
1
.
2n
f (x) dx =
0
2
,
x
.
2
For every n N, let n denote the dissection of the interval [0, 1] into n subintervals of equal length.
a) Find s(f, n ) and S(f, n ), and show that
S(f, n ) s(f, n ) =
1
.
n
d) Note that cos(k 1) = R(ei(k1) ), so that S(f, n ) is the real part of a geometric series. Sum
the geometric series and show that
1
1 ein
1
1i
sin
S(f, n ) = R
,
where =
.
= R
= +
n
1 ei
n
1 ei
(1 cos )
2n
e) Explain why
lim S(f, n ) =
n
Chapter 6 : The Riemann Integral
2
.
page 13 of 14
Fundamentals of Analysis
7. Suppose that a function f (x) is bounded on the closed interval [A, B], where A, B R and A < B.
a) Show that for any closed interval I [A, B],
sup |f (x)| inf |f (x)| sup f (x) inf f (x).
xI
xI
xI
xI
g(x) dx
m
A
Z
f (x)g(x) dx M
g(x) dx.
A
(f (x) + g(x))2 dx
!2
f (x)g(x) dx
A
! Z
f (x) dx
g (x) dx .
page 14 of 14