03 Riemann Integration
03 Riemann Integration
S Vijayakumar
Indian Institute of Information Technology,
Design & Manufacturing, Kancheepuram
1 / 64
Riemann Integral: Motivation
1 unit
2 / 64
Area of a Rectangle
3 / 64
The Area of a Rectangle
4 / 64
The Area of a Rectangle
Divide into unit squares and count them!
6 / 64
The Area of a Parallelogram
7 / 64
The Area of a Triangle
8 / 64
The Area of a Triangle
9 / 64
The Area of a Polygonal Region
Triangulate!
10 / 64
The Area of a Polygonal Region
Triangulate and add the areas of the triangles!
The area of the polygon is the sum of the areas of the triangles!
11 / 64
Computing area of an irregular object
12 / 64
Increasing the Number of Cuts
13 / 64
Note
14 / 64
Area Under the Curve y = 1 − x 2 in the First Quadrant
15 / 64
Area Under the Curve y = 1 − x 2 in the First Quadrant
1 Z 1
2
(1 − x 2 )dx = ≈ 0.667
x=0 3
16 / 64
Area under the curve y = 1 − x 2: An Upper Estimate
0.5 1
17 / 64
An Upper Estimate
M1 = sup {f (x) : x ∈ [0, 0.5]} = 1
3
M2 = sup {f (x) : x ∈ [0.5, 1]} = 4
0 0.5 1
0.25 0.5 1
a = x0 ≤ x1 ≤ x2 ≤ . . . ≤ xn = b.
Notation
If P = {x0 , x1 , x2 , . . . , xn } is a partition of an interval [a, b], we denote the length
of the ith subinterval [xi−1 , xi ] by
∆xi = xi − xi−1 , i = 1, 2, . . . , n.
22 / 64
Note
n
X
∆xi = (x1 − x0 ) + (x2 − x1 ) + . . . + (xn − xn−1 ) = xn − x0 = b − a.
i=1
23 / 64
Examples
Consider the interval [0, 1]. The following are some partitions of it:
(1) P1 = {0, 0.5, 1}.
1. P2 = {0, 0.25, 0.5, 1}.
2. P3 = {0, 0.25, 0.5, 0.75, 1}.
3. P4 = {0, 0.1, 0.3, 0.7, 1}.
4. P5 = {0, 0.2, 0.4, 0.6, 0.8, 1}.
For partition P1 ,
For partition P2 ,
25 / 64
Example
0 0.25 0.5 1
Lemma
Let f : [a, b] → R be a bounded function with
m ≤ f (x) ≤ M.
29 / 64
Proof:
Let
Then
30 / 64
Corollary
Let f be a bounded real-valued function on [a, b]. Then the set of all lower sums
is bounded above. And the set of all upper sums is bounded below:
31 / 64
Refinement of a Partition and Common Refinedment
Definition (Refinement, Common Refinement)
1. Let P1 be a partition of [a, b]. Then a partition P2 of [a, b] is called a
refinement of P1 if P1 ⊆ P2 .
2. Let P1 and P2 be partitions of [a, b]. Then P1 ∪ P2 is called a common
refinement of P1 and P2 .
Examples:
1. Consider the interval [0, 1] and its partitions P1 = {0, 0.5, 1} and
P2 = {0, 0.5, 0.75, 1}. Here P1 ⊆ P2 . So, P2 is a refinement of P1 .
2. Consider the interval [0, 1] and its partitions P1 = {0, 0.25, 0.5, 1} and
P2 = {0, 0.5, 0.75, 1}. Then their common refinement is
P1 ∪ P2 = {0, 0.25, 0.5, 0.75, 1}.
32 / 64
Lemma
Let f : [a, b] → R be a bounded function. Let P1 and P2 be partitions of [a, b]
such that P2 is a refinement of P1 . Then
Theorem
Let f : [a, b] → R be a bounded function. Let P1 and P2 be any partitions of
[a, b]. Then
L(P1 , f ) ≤ U(P2 , f ).
Corollary
Let f be a bounded real-valued function on [a, b]. Then the set of all lower sums
34 / 64
Definition
Let f : [a, b] → R be a bounded function. The upper Riemann integral of f
over [a, b] is
Z b
f (x)dx = inf {U(P, f ) : P is a partition of [a, b]} = inf U(P, f ).
a
36 / 64
Example
Show that f (x) = k (a constant function) on [a, b] is Riemann integrable.
37 / 64
That is, for any partition P of [a, b]:
Z b
f (x)dx = inf {U(P, f ) : P is a partition of [a, b]} = inf {k(b − a)} = k(b−a).
a
38 / 64
And the lower Riemann sum
n
X n
X n
X
L(P, f ) = mi ∆xi = k∆xi = k ∆xi = k(b − a).
i=1 i=1 i=1
Z b
f (x)dx = sup {L(P, f ) : P is a partition of [a, b]} = sup {k(b − a)} = k(b−a).
a
39 / 64
Conclusion
The upper Riemann integral of the constant function f (x) = k over [a, b] is
Z b
f (x)dx = k(b − a).
a
Thus, the upper and lower Riemann integrals are equal. Hence the function is
Riemann integrable and
Z b Z b
f (x)dx = kdx = k(b − a).
a a
40 / 64
Example of a non-Riemann Integrable Bounded Function
Let f : [0, 1] −→ R be the function defined by
1, if x is a rational number
f (x) =
0, if x is an irrational number
Show that f ∈
/ R ( f is not a Riemann integrable function)
Solution : Note that 0 ≤ f (x) ≤ 1 for all x ∈ [0, 1]. So, it is a bounded
function on [0, 1].
Let P = {0 = x0 , x1 , . . . , xn = 1} be any partition of [0, 1]:
0 = x0 ≤ x1 ≤ . . . ≤ xn = 1.
Note that we computed U(P, f ) and L(P, f ) for an arbitrary partition P on [0, 1].
Thus the upper Riemann integral of f over [0, 1] is
Z 1
f (x)dx = inf {U(P, f ) : P is a partition of [0, 1]} = inf {1} = 1.
0
42 / 64
The lower Riemann integral of f over [0, 1] is
Z 1
f (x)dx = sup {L(P, f ) : P is a partition of [a, b]} = sup {0} = 0
0
Thus Z 1 Z 1
f (x)dx 6= f (x)dx.
0 0
43 / 64
Homework
Prove or disprove the following: (i) f is a Riemann integrable function and (ii) |f |
is a Riemann integrable function.
44 / 64
An Important Theorem
Theorem
Let f : [a, b] → R be a bounded function. Then f is Riemann integrable if and
only if for every > 0, there exists a partition P such that
45 / 64
Example
Solution :
46 / 64
n
X
L(Pn , f ) = mi ∆xi
i=1
n
X
= (a + (i − 1)h) h
i=1
n
X n
X
2
= ah (1) + h (i − 1)
i=1 i=1
= ahn + h2 (0 + 1 + 2 + . . . + (n − 1))
= a × nh + h2 n(n−1)
2
2 n(n−1) (b−a)2
= a(b − a) + (b−a)
n2 2
= a(b − a) + 2
(1 − n1 )
47 / 64
We observe that
(b − a)2 b−a b 2 − a2
lim L(Pn , f ) = a(b − a) + (1 − 0) = (2a + b − a) = .
n−→∞ 2 2 2
48 / 64
Mi = sup {f (x) : xi−1 ≤ x ≤ xi }
= sup {x : a + (i − 1)h ≤ x ≤ a + ih}
= a + ih
49 / 64
n
X
U(Pn , f ) = Mi ∆xi
i=1
n
X
= (a + ih) h
i=1
n
X n
X
2
= ah (1) + h (i)
i=1 i=1
= ahn + h2 (1 + 2 + . . . + n)
= a × nh + h2 n(n+1)
2
2 n(n+1)
= a(b − a) + (b−a)
n2 2
2
= a(b − a) + (b−a)
2
(1 + n1 )
Thus
(b − a)2 b−a b 2 − a2
lim U(Pn , f ) = a(b − a) + (1 + 0) = (2a + b − a) = .
n−→∞ 2 2 2
50 / 64
We have
b 2 − a2 b 2 − a2
lim L(Pn , f ) = and lim U(Pn , f ) = .
n−→∞ 2 n−→∞ 2
Since both L(Pn , f ) and U(Pn , f ) converge have the same limit, we have
51 / 64
So, corresponding to each > 0, there is a partition Pn such that
52 / 64
Homework
1. Let f (x) = x 2 be a function defined on [a, b]. Let h = b−a n
. Let
Pn = {a = x0 , x1 = a + h, x2 = a + 2h, . . . , xn = a + nh = b}.
Compute (i) L(Pn , f ) and (ii) U(Pn , f ). Find the limits of these lower and
upper Riemann sums and conclude that the function is Riemann itegrable
and find the Riemann integral.
2. Let g (x) = x 2 be a function defined on [a, b] where 0 < a < b. Let
1
h = ba n . Let Qn = {a = x0 , x1 = ah, x2 = ah2 , . . . , xn = ahn = b}.
Compute (i) L(Qn , g ) and (ii) U(Qn , g ). Find the limits of these lower and
upper Riemann sums and conclude that the function is Riemann itegrable
and find the Riemann integral.
2
= 1 − x be1 a function
3. Let f (x)
2
defined on [0, 1]. Let
Pn = x0 = 0, x1 = n , x2 = n , . . . , xn = nn = 1 .
Compute (i) L(Pn , f ) and (ii) U(Pn , f ). Argue that the function is Riemann
integrable and find the Riemann integral.
53 / 64
Definition (Riemann sum)
Let f (x) be a bounded real valued function defined on [a, b]. Let
P = {x0 = a, x1 , x2 , . . . , xn = b} be a partition of [a, b]. Let ci ∈ [xi−1 .xi ],
1 ≤ i ≤ n. Then
Xn
SP = f (ci )∆xi
i=1
Note:
L(P, f ) ≤ SP ≤ U(P, f ).
54 / 64
Theorem (Riemann Integrability of Continuous Functions)
If a function f is continuous on the interval [a, b], then it is Riemann integrable.
Moreover, if h = b−an
and
Pn = {a = x0 , x1 = a + h, x2 = a + 2h, . . . , xn = a + nh = b} is a partition of
[a, b] into equal subintervals, then
Z b
lim L(Pn , f ) = lim U(Pn , f ) = f (x)dx.
n−→∞ n−→∞ a
55 / 64
Homework
For the following continuous functions , find a formula for the Riemann sum
obtained by dividing the interval [a, b] into n equal subintervals and using the
right-hand endpoint for each ci . Then take a limit of these sums as n −→ ∞ to
compute the corresponding Riemnann integral (which is also the area under the
curve y = f (x), [a, b], and above the x-axis).
1. f (x) = x + x 2 over the interval [0, 1].
2. f (x) = x 2 + 1 over the interval [0, 3].
3. f (x) = x 2 − x 3 over the interval [−1, 0].
4. f (x) = 2x 3 over the interval [0, 1].
56 / 64
Solution:
(1) Consider f (x) = x + x 2 on the interval [0, 1]. Let us divide [0, 1] into n equal
subintervals, each of length b−a
n
= 1−0
n
= n1 : That is, consider the partition
1 i
Pn = x0 = 0, x1 = , . . . , xi = , . . . , xn = 1 .
n n
i2
For each i, 1 ≤ i ≤ n, let ci = xi = ni . Then f (ci ) = ci + ci2 = i
n
+ n2
.
Also note that ∆xi = n1 .
57 / 64
Pn
SPn = f(ci )∆xi
Pi=1
n i i2 1
= i=1 n + n2 n
n n
1
X 1 X 2
= n2 i+ 3 i
i=1
n i=1
1 n(n+1)
= n2 2
+ n13 n(n+1)(2n+1)
6
1
1 + n1 + 16 1 + n1 2 1
= 2
+ n
5
lim SP = .
n−→∞ 6
1
5
Z
x + x 2 dx = .
Hence
0 6
58 / 64
Properties of Riemann Integration
Theorem
Let f and g be integrable over the interval [a, b]. Then
Z a Z b
(1) Order of Integration: f (x)dx = − f (x)dx (definition)
b a
Z a
(2) Zero Width Interval : f (x)dx = 0 (a definition when f (a) exists )
a
Z b Z b
(3) Constant Multiple: kf (x)dx = k f (x)dx
a a
(any constant k)
Z b Z b Z b
(4) Sum: (f (x) + g (x)) dx = f (x)dx + g (x)dx
a Z b a Z b a Z b
Difference: (f (x) − g (x)) dx = f (x)dx − g (x)dx
a a a
59 / 64
Theorem Contd.
Z b Z c Z c
(5) Additivity: f (x)dx + f (x)dx = f (x)dx
a b a
(6) Max-Min Inequality: If f has maximum value M and minimum value m on
[a, b], then
Z b
m(b − a) ≤ f (x)dx ≤ M(b − a)
a
Z b Z b
(7) Domination : If f (x) ≥ g (x) on [a, b], then f (x)dx ≥ g (x)dx.
a a
60 / 64
Theorem (The Fundamental Theorem of Calculus)
If f is Riemann integrable on [a, b] and if there is a differentiable function F on
[a, b] such that F 0 = f , then
Z b
f (x)dx = F (b) − F (a).
a
61 / 64
Proof:
Let > 0 be given.
Choose a partition P = {x0 , x1 , . . . , xn } of [a, b] so that U(P, f ) − L(P, f ) < .
The mean value theorem implies that there is a ti in [xi−1 , xi ] such that
F (xi ) − F (xi−1 )
= F 0 (ti ) = f (ti ) or F (xi ) − F (xi−1 ) = f (ti )∆xi (1 ≤ i ≤ n).
∆xi
Thus n n
X X
f (ti )∆xi = (F (xi ) − F (xi−1 )) = F (b) − F (a).
i=1 i=1
62 / 64
Hence
n
X Z b Z b
f (ti )∆xi − f (x)dx < ⇒ F (b) − F (a) − f (x)dx < .
i=1 a a
63 / 64
Theorem
Let f be Riemann integrable on [a, b]. For a ≤ x ≤ b, put
Z x
F (x) = f (x)dx.
a
64 / 64