Riemann Integration - An Introduction To Real Analysis
Riemann Integration - An Introduction To Real Analysis
P = {[x 0 , x 1 ], [x 1 , x 2 ], … , [x n−1 , x n ]}
In other words, ∥P∥ is the maximum length of the intervals in P . To ease our notation,
we will denote a partition as P = {[x k−1 , x k ]} n k=1
. Let P = {[x k−1 , x k ]} n
k=1
be a
partition of [a, b]. If t k ∈ I k = [x k−1 , x k ] then we say that t k is a sample of I k and the
set of ordered pairs
n
Ṗ = {([x k−1 , x k ], t k )}
k=1
Example 7.1.2
Examples of sampled partitions are mid-points, right-end points, and left-end points
partitions.
k=1
be a
sampled partition of the interval [a, b]. The Riemann sum of f corresponding to P
˙ is the
number
n
k=1
When f (x) > 0 on the interval [a, b], the Riemann sum S(f ; Ṗ) is the sum of the areas
of the rectangles with height f (t k ) and width (x k − x k−1 ). We now define the notion of
Riemann integrability.
partition Ṗ that satisfies ∥Ṗ∥ < δ it holds that |S(f ; Ṗ) − L| < ε.
The set of all Riemann integrable functions on the interval [a, b] will be denoted by
R[a, b].
Thm. 7.1.4
Proof: Let L 1 and L 2 be two real numbers satisfying the definition of Riemann
integrability and let ε > 0be arbitrary. Then there exists δ > 0 such that
|S(f ; Ṗ) − L 1 | < ε/2 and |S(f ; Ṗ) − L 2 | < ε/2, for all sampled partitions Ṗ with
˙
∥P∥ < δ . Then, if ∥P∥
˙
< δ it holds that
< ε.
If f ∈ R[a, b] , we call the number L the integral of f over [a, b] and we denote it by
L = ∫ f
a
Example 7.1.5
Show that a constant function on [a, b] is Riemann integrable.
Proof: Let f : [a, b] :→ R be such that f (x) = C for all x ∈ [a, b] and let
Ṗ = {([x k−1 , x k ], t k )} be a sampled partition of [a, b]. Then
n
k=1
= C ∑(x k − x k−1 )
k=1
= C(x n − x 0 )
= C(b − a).
Hence, with L = C(b − a) , we obtain that |S(f ; Ṗ) − L| = 0 < ε for any ε > 0 and
b
therefore ∫ a f = C(b − a) . This proves that f is Riemann integrable. QED
Example 7.1.6
Prove that f (x) = x is Riemann integrable on [a, b].
Proof: We consider the special case that [a, b] , the general case is similar. Let
= [0, 1]
˙
Q = {([x k−1 , x k ], q k )} be a sampled partition of [0, 1] chosen so that
+ x k−1 ), i.e., q k is the midpoint of the interval [x k−1 , x k ]. Then
1
qk = (x k
2
˙
S(f ; Q) = ∑ f (q k )(x k − x k−1 )
k=1
1
= ∑ (x k + x k−1 )(x k − x k−1 )
2
k=1
n
1 2 2
= ∑(x k − x k−1 )
2
k=1
1 2 2
= (x − x )
n 0
2
1 2 2
= (1 − 0 )
2
1
= .
2
Now let Ṗ
suppose that ∥Ṗ∥
˙
= {([x k−1 , x k ]), t k }
Q = {([x k−1 , x k ], q k )}
|t k − q k | < δ
n
. Therefore,
x ∈
< δ
˙
|S(f ; P) − S(f ; Q)| =
Thm. 7.1.7
Let f ∈ R[a, b]
First, if c
c = tk ∉
If c
≠ tk
= t k = t k−1
= ∫
a
Ṗ = {([x k−1 , x k ], t k )}
and c
f
≠ xk
k=1
k=1
, so that (x k
∈ R[a, b]
˙
b
∣
be an arbitrary sampled partition of [0, 1] and
− x k−1 ) ≤ δ
f
k=1
n
n
.
2
for all k
≤ ∑ |t k − q k |(x k − x k−1 )
k=1
< δ(1 − 0)
= δ.
f =
> 0 we let δ
1
. QED
= ε
= 1, 2, … , n
∑ t k (x k − x k−1 ) − q k (x k − x k−1 )
< δ
. If
it holds that
and then if ∥P∥
˙
< δ
and let g : [a, b] → R be a function such that g(x) = f (x) for all
[a, b] except possibly at a finite number of points in [a, b]. Then g ∈ R[a, b] and
in fact ∫ a
Proof: Let L
b
g = ∫
a
b
b
f .
= x k−1
˙
= S(g; P) . If
and then
= c
then
. Let
S(g; Ṗ) − S(f ; Ṗ) = (f (c) − g(c))(x k − x k−1 ) + (f (c) − g(c))(x k−1 − x k−2 ).
˙ ˙ ˙
|S(g; P) − S(f ; P)| ≤ 2(|f (c)| + |g(c)|)∥P∥
= M ∥Ṗ∥.
where M = 2(|f (c)| + |g(c)|) . Let ε > 0 be arbitrary. Then there exists δ 1 > 0 such
that |S(f ; P)
˙
− L| < ε/2 for all partitions P
˙ such that ˙
∥P∥ < δ1 . Let
δ = min{δ 1 , ε/(2M )} . Then if ∥Ṗ∥ < δ then
= ε.
b b
This proves that g ∈ R[a, b] and ∫ a g = L = ∫ a f . Now suppose by induction that if
g(x) = f (x) for all x ∈ [a, b] except at a j ≥ 1 number of points in [a, b] then
b b
g ∈ R[a, b] and ∫ a g = ∫ a f . Now suppose that h : [a, b] → R is such that
h(x) = f (x) for all x ∈ [a, b] except at the points c 1 , c 2 , … , c j , c j+1 . Define the
function g by g(x) = h(x) for all x ∈ [a, b] except at x = c j+1 and define
g(c j+1 ) = f (c j+1 ). Then g and f differ at the points c 1 , … , c j . Then by the induction
b b
hypothesis, g ∈ R[a, b] and ∫ a g = ∫
a
f . Now g and h differ at the point c j+1 and
b b b
therefore h ∈ R[a, b] and ∫ a h = ∫
a
g = ∫
a
f . This ends the proof. QED
b b
(iii) If f (x) ≤ g(x) for all x ∈ [a, b] then ∫ a f ≤ ∫
a
g .
∣
Proof: If k
k ≠ 0 . Let ε
˙
|S(f ; P) − ∫
there exists δ
whenever ∥Ṗ∥
= 0
> 0
b
> 0
S(f + g; Ṗ) − (∫
f ∥ < ε/|k|
< δ
> 0
Therefore,
Real Analysis
Cesar O. Aguilar
7. Riemann Integration
∫
a
S(kf ; Ṗ) − k ∫
b
a
∫
a
f + ∫
b
= 0
∫
a
b
for all x and then clearly ∫ a
g)
a
b
< δ
≤ S(g; Ṗ)
∫
a
b
f
< ε.
f < ∫
< δ
> 0
> 0
˙ , it holds that
then
such that if ∥Ṗ∥
< |k|(ε/|k|)
= ε.
we have that
S(f ; Ṗ) − ∫
and therefore
a
b
a
g + ε.
b
a
b
f + ε/2
g + ε/2
a
b
b
kf = 0
+
b
g + ε/2.
f
, so assume that
< δ then
. Given ε
b
S(g; Ṗ) − ∫
< δ then
> 0
g| < ε/2
a
b
g
,
7. Riemann Integration
that ∫ a
b
f ≤ ∫
a
g. QED
∣
Since ε is arbitrary, we can choose ε n
If f ∈ R[a, b]
|S(f ; Ṗ)| =
= 1/n
and put L = ∫
b
a
f
and then passing to the limit we deduce
Properties (i), (ii), and (iii) in Theorem 7.1.8 are known as homogeneity, additivity, and
monotonicity, respectively. We now give a necessary condition for Riemann integrability.
∥P∥ < δ. Then f is unbounded on some I j , i.e., for any M > 0 there exists
k≠j
implies that |a + b|
≥ |f (t j )(x j − x j−1 )| −
> |L| + 1.
∑ f (t k )(x k − x k−1 )
k≠j
≥ |a| − |b|
then
)
Proof: Let ε > 0 be arbitrary and let E = {x ∈ [0, 1] : h(x) ≥ ε/2} . By definition of
h, the set E is finite, say consisting of n elements. Let δ = ε/(4n) and let Ṗ be a
sampled partition of [0, 1] with ∥P∥
˙
< δ . We can separate the partition P
˙
into two
sampled partitions Ṗ 1 and Ṗ 2 where Ṗ 1 has samples in the the set E and Ṗ 2 has no
samples in E . Then the number of intervals in Ṗ 1 can be at most 2n, which occurs when
all the elements of E are samples and they are at the endpoints of the subintervals of
Ṗ 1 . Therefore, the total length of the intervals in Ṗ 1 can be at most 2nδ = ε/2. Now
0 < h(t k ) ≤ 1 for every sample t k in Ṗ 1 and therefore S(f ; Ṗ 1 ) ≤ 2nδ = ε/2 . For
samples t k in Ṗ 2 we have that h(t k ) < ε/2 . Therefore, since the sum of the lengths of
the subintervals of Ṗ 2 is ≤ 1, it follows that S(f ; Ṗ 2 ) ≤ ε/2 . Hence
b
0 ≤ S(f ; Ṗ) = S(f ; Ṗ 1 ) + S(f ; Ṗ 2 ) < ε . Thus ∫ a h = 0 . QED
Exercises
Exercise 7.1.1
Suppose that f , g ∈ R[a, b] and let α, β ∈ R . Prove by definition that
(αf + βg) ∈ R[a, b] .
Exercise 7.1.2
If f is Riemann integrable on [a, b] and |f (x)| ≤ M for all x ∈ [a, b] , prove that
b
|∫
a
. Hint: The inequality |f (x)| ≤ M is equivalent to
f | ≤ M (b − a)
−M ≤ f (x) ≤ M . Then use the fact that constants functions are Riemann integrable
whose integrals are easily computed. Finally, apply a theorem from this section.
Exercise 7.1.3
If f is Riemann integrable on [a, b] and (Ṗ n ) is a sequence of tagged partitions of [a, b]
such that ∥P
˙
n∥ → 0 prove that
∫ f = lim S(f ; Ṗ n )
n→∞
a
Exercise 7.1.4
Give an example of a function f : [0, 1] → R that is Riemann integrable on [c, 1] for
every c ∈ (0, 1) but which is not Riemann integrable on [0, 1]. Hint: What is a necessary
condition for Riemann integrability?
To ease our notation, if I is a bounded interval with end-points a < b we denote by μ(I )
the length of I , that is μ(I ) = b − a. Hence, if I = [a, b], I = [a, b), I = (a, b], or
I = (a, b) then μ(I ) = b − a. Thus far, to establish the Riemann integrability of f , we
b
computed a candidate integral L and showed that in fact L = ∫ a f . The following
theorem is useful when a candidate integral L is unknown. The proof is omitted.
A function f : [a, b] → R is Riemann integrable if and only if for every ε > 0 there
exists δ > 0 such that if Ṗ and Q
˙
are sampled partitions of [a, b] with norm less than
δ then
˙
|S(f ; Ṗ) − S(f ; Q)| < ε.
Using the Cauchy Criterion, we show next that the Dirichlet function is not Riemann
integrable.
Proof: To show that f is not in R[0, 1], we must show that there exists ε 0 > 0 such that
for all δ > 0 there exists sampled partitions Ṗ and Q
˙
with norm less than δ but
˙ ˙
|S(f ; P) − S(f ; Q)| ≥ ε 0 . To that end, let ε 0 = 1/2, and let δ > 0 be arbitrary. Let n
be sufficiently large so that 1/n < δ . Let Ṗ be a sampled partition of [0, 1] with
intervals all of equal length 1/n < δ and let the samples of Ṗ be rational numbers.
Similarly, let Q
˙
be a partition of [0, 1] with intervals all of equal length 1/n and with
samples irrational numbers. Then S(f ; Ṗ) = 1 and S(f ; Q)
˙
= 0 , and therefore
˙ ˙
|S(f ; Q) − S(f ; Q)| ≥ ε 0 . QED
We now state a sort of squeeze theorem for integration.
Let f be a function on [a, b]. Then f ∈ R[a, b] if and only if for every ε > 0 there
exist functions α and β in R[a, b] with α(x) ≤ f (x) ≤ β(x) for all x ∈ [a, b] and
b
∫
a
(β − α) < ε .
b
Proof: If f ∈ R[a, b]then let α(x) = β(x) = f (x). Then clearly ∫ a (β − α) = 0 < ε
for all ε > 0. Now suppose the converse and let ε > 0 be arbitrary. Let α and β satisfy
b
the conditions of the theorem, with ∫ a (β − α) . Now, there exists δ such that
ε
< > 0
3
if ∥P∥
˙
< δ then
b b
ε ε
˙
∫ α − < S(α; P) < ∫ α +
a
3 a
3
and
b b
ε ε
˙
∫ β − < S(β; P) < ∫ β + .
a
3 a
3
b b
ε ε
˙ (1)
∫ α − < S(f ; P) < ∫ β + .
a
3 a
3
If Q
˙
is another sampled partition with ∥Q∥
˙
< δ then also
b b
ε ε
˙ (2)
∫ α − < S(f ; Q) < ∫ β + .
a
3 a
3
b b
ε ε
˙
−∫ (β − α) − 2 < S(f ; Ṗ) − S(f ; Q) < ∫ (β − α) + 2 .
a
3 a
3
b
Therefore, since ∫ a (β − α) it follows that
ε
<
3
˙ ˙
−ε < S(f ; P) − S(f ; Q) < ε.
Def. 7.2.4
In the definition of a step-function, the intervals I k may be of any form, i.e., half-closed,
open, or closed.
Lem. 7.2.5
Thm. 7.2.6
b n
therefore is also Riemann integrable. Moreover, ∫ a φ = ∑
k=1
c k μ(I k ). QED
We will now show that any continuous function on [a, b] is Riemann integrable. To do
that we will need the following.
Let f : [a, b] → R be a continuous function. Then for every ε > 0 there exists a step-
function s : [a, b] → R such that |f (x) − s(x)| < ε for all x ∈ [a, b].
δ > 0 such that if |x − u| < δ then |f (x) − f (u)| < ε. Let n ∈ N be sufficiently large
so that (b − a)/n < δ. Partition [a, b] into n subintervals of equal length (b − a)/n,
and denote them by I 1 , I 2 , … , I n , where I 1 = [x 0 , x 1 ] and I k = (x k−1 , x k ] for
1 < k ≤ n . Then for x, u ∈ I k it holds that |f (x) − f (u)| < ε. For x ∈ I k define
s(x) = f (x k ). Therefore, for any x ∈ I k it holds that
n
|f (x) − s(x)| = |f (x) − f (x k )| < ε. Since ⋃ I k = [a, b], it holds that
k=1
Proof: Suppose that f : [a, b] → R is continuous. Let ε > 0 be arbitrary and let
~
ε = (ε/4)/(b − a) . Then there exists a step-function s : [a, b] → R such that
~
|f (x) − s(x)| < ε for all x ∈ [a, b]. In other words, for all x ∈ [a, b] it holds that
~ ~
s(x) − ε < f (x) < s(x) + ε.
~ ~
The functions α(x) := s(x) − ε and β(x) := s(x) + ε are Riemann integrable
b
~
integrable on [a, b], and ∫ a (β − α) = 2ε(b − a) = ε/2 < ε . Hence, by the Cauchy
criterion, f is Riemann integrable. QED
Proof: Assume that f : [a, b] → R is increasing and that M = f (b) − f (a) > 0 (if
M = 0 then f is the zero function which is clearly integrable). Let ε > 0 be arbitrary.
M (b−a)
Let n ∈ N be such that n
. Partition [a, b] into subintervals of equal length
< ε
(b−a)
Δx =
n
, and as usual let a = x 0 < x 1 < ⋯ < x n−1 < x n = b denote the
resulting points of the partition. On each subinterval [x k−1 , x k ], it holds that
f (x k−1 ) ≤ f (x) ≤ f (x k ) for all x ∈ [x k−1 , x k ] since f is increasing. Let
f (x k−1 ) and similarly let β : [a, b] → R be the step-function whose constant value on
the interval [x k−1 , x k ) is f (x k ), for all k = 1, … , n. Then α(x) ≤ f (x) ≤ β(x) for
all x ∈ [a, b]. Both α and β are Riemann integrable and
b n
= (f (x n ) − f (x n−1 )Δx
(b − a)
= M
n
< ε.
Hence by the Squeeze theorem for integrals (Theorem 7.2.3), f ∈ R[a, b] . QED
Our las theorem is the additivity property of the integral, the proof is omitted.
Let f : [a, b] → R be a function and let c ∈ (a, b). Then f ∈ R[a, b] if and only if its
restrictions to [a, c] and [c, b] are both Riemann integrable. In this case,
b c b
∫ f = ∫ f + ∫ f
a a c
Exercises
Exercise 7.2.1
Suppose that f : [a, b] → R is continuous and assume that f (x) > 0 for all x .
∈ [a, b]
b
Prove that ∫ a f > 0. Hint: A continuous function on a closed and bounded interval
achieves its minimum value.
Exercise 7.2.2
Suppose that f is continuous on [a, b] and that f (x) ≥ 0 for all x ∈ [a, b] .
b
(a) Prove that if ∫ a f = 0 then necessarily f (x) = 0 for all x ∈ [a, b] .
(b) Show by example that if we drop the assumption that f is continuous on [a, b] then
it may not longer hold that f (x) = 0 for all x ∈ [a, b].
Exercise 7.2.3
Show that if f : [a, b] → R is Riemann integrable then |f | : [a, b] → R is also Riemann
integrable.
Let f : [a, b] → R be a function. Suppose that there exists a finite set E ⊂ [a, b] and
a function F : [a, b] → R such that F is continuous on [a, b] and F ′ (x) = f (x) for
b
all x ∈ [a, b]∖
E . If f is Riemann integrable then ∫ a f = F (b) − F (a) .
Proof: Assume for simplicity that E := {a, b} . Let ε > 0 be arbitrary. Then there exists
b
δ > 0 such that if ∥Ṗ∥ < ε then |S(f ; Ṗ) − ∫ a f | < ε. For any Ṗ , with intervals
I k = [x k−1 , x k ] for k = 1, 2, … , n, there exists, by the Mean Value Theorem applied
k=1
= ∑ f (u k )(x k − x k−1 )
k=1
˙
= S(f ; P u )
where Ṗ u has the same intervals as Ṗ but with samples u k . Therefore, if ∥Ṗ∥ < δ then
b b
< ε.
b
Hence, for any ε we have that F (b) − F (a) − ∫
a
f < ε and this shows that
b
∫
a
f = F (b) − F (a) . QED
for x
for all x
QED
∈ R[a, b]
F : [a, b] →
∈ [a, b]
Thm. 7.3.3
.
∈ [w, z]
R defined by
F (z) = ∫
= ∫
≤ z
a
z
= F (w) + ∫
≤ ∫
|F (z) − F (w)| =
∈ R[a, b]
w
a
∣
. The indefinite integral of f with basepoint a is the function
it holds that
f + ∫
f ≤ K(z − w)
≤ K|z − w|
w
z
w
z
z
f
f
: [a, b] → R
, and thus
is a
Def. 7.4.1
A set E ⊂ R is said to be of measure zero if for every ε > 0 there exists a countable
collection of open intervals I k such that
∞ ∞
k=1 k=1
Example 7.4.2
Show that a subset of a set of measure zero also has measure zero. Show that the union
of two sets of measure zero is a set of measure zero.
Example 7.4.3
Let S ⊂ R be a countable set. Show that S has measure zero.
ε ε
I k = (s k − , sk + ).
k+1 k+1
2 2
∞ ∞
ε
∑ μ(I k ) = ∑ = ε.
k
2
k=1 k=1
Example 7.4.4
The Cantor set is defined as follows. Start with I 0 = [0, 1] and remove the middle third
J1 = (
1
3
yielding the set I 1 = I 0 ∖J 1 = [0, 3 ] ∪ [ 3 , 1]. Notice that μ(J 1 )
,
2
3
)
1 2
=
1
3
.
Now remove from each subinterval of I 1 the middle third resulting in the set
1 2 7 8 1 2 3 6 7 8
I 2 = I 1 ∖(( , ) ∪ ( , )) = [0, ] ∪ [ , ] ∪ [ , ] ∪ [ , 1]
9 9 9 9 9 9 9 9 9 9
C = ⋂ In .
n=1