Riemann Sum and Integration
Riemann Sum and Integration
DBS&H, CEME-NUST
December 6, 2020
Outline
Outline
Outline
Outline
Outline
5 Summary
Integration
Constant of Integration
Riemann Sum
Riemann Sum
Let x0 , x1 , . . . , xn be a regular partition of the interval [a, b], with
xi − xi−1 = ∆x = b−a n , for all i. Pick points c1 , c2 , . . . , cn , where ci is
any point in the subinterval [xi−1 , xi ], for i = 1, 2, · · · , n. The Riemann
sum for this partition and set of evaluation points is
X n
f (ci )∆x.
i=1
Riemann Sum
Let x0 , x1 , . . . , xn be a regular partition of the interval [a, b], with
xi − xi−1 = ∆x = b−a n , for all i. Pick points c1 , c2 , . . . , cn , where ci is
any point in the subinterval [xi−1 , xi ], for i = 1, 2, · · · , n. The Riemann
sum for this partition and set of evaluation points is
X n
f (ci )∆x.
i=1
Riemann Sum
Let x0 , x1 , . . . , xn be a regular partition of the interval [a, b], with
xi − xi−1 = ∆x = b−a n , for all i. Pick points c1 , c2 , . . . , cn , where ci is
any point in the subinterval [xi−1 , xi ], for i = 1, 2, · · · , n. The Riemann
sum for this partition and set of evaluation points is
n
X
f (ci )∆x.
i=1
Approximate area under the curve y = f (x) = 2x − 2x2 on the interval [0,1],
using (a) 10 rectangles, (b) 20 rectangles
Approximate area under the curve y = f (x) = 2x − 2x2 on the interval [0,1],
using (a) 10 rectangles, (b) 20 rectangles
Approximate area under the curve y = f (x) = 2x − 2x2 on the interval [0,1],
using (a) 10 rectangles, (b) 20 rectangles
Approximate area under the curve y = f (x) = 2x − 2x2 on the interval [0,1],
using (a) 10 rectangles, (b) 20 rectangles
1−0
For n = 10, h = 10 = 0.1
Approximate area under the curve y = f (x) = 2x − 2x2 on the interval [0,1],
using (a) 10 rectangles, (b) 20 rectangles
1−0 1−0
For n = 10, h = 10 = 0.1 For n = 20, h = 20 = 0.05
1−0
For n = 10, ∆x = h = 10 = 0.1
1−0
For n = 10, ∆x = h = 10 = 0.1
X10
A10 = f (xi )∆x
i=1
= (f (0.1) + f (0.2) + · · · + f (1)) (0.1)
= 0.33
1−0
For n = 10, ∆x = h = 10 = 0.1 For n = 20, ∆x = h = 1−0
= 0.05
20
X10
A10 = f (xi )∆x
i=1
= (f (0.1) + f (0.2) + · · · + f (1)) (0.1)
= 0.33
1−0
For n = 10, ∆x = h = 10 = 0.1 For n = 20, ∆x = h = 1−0
= 0.05
20
X10 X20
A10 = f (xi )∆x A20 = f (xi )∆x
i=1 i=1
i 1 2 3 4 5 6 7 8 9 10
xi 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
f (xi ) 0.18 0.32 0.42 0.48 0.5 0.48 0.42 0.32 0.18 0
X10
A10 = f (xi )∆x = (f (0.1) + f (0.2) + · · · + f (1)) × 0.1 = 0.331
i=1
1
(0.18 + 0.32 + 0.42 + 0.48 + 0.5 + 0.48 + 0.42 + 0.32 + 0.18 + 0) × 0.1 = 0.33
Dr. Yasir Ali ([email protected]) (DBS&H, CEME-NUST)
Cal&AG December 6, 2020 34 / 49
Riemann Sum and Area Under a Curve Computing Area of Rectangles under a Function
2
f (x) = 2x − 2x on [0, 1] and xi = x0 + ih, 1 ≤ i ≤ n.
i 1 2 3 4 5 6 7 8 9 10
xi 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
f (xi ) 0.18 0.32 0.42 0.48 0.5 0.48 0.42 0.32 0.18 0
X10
A10 = f (xi )∆x = (f (0.1) + f (0.2) + · · · + f (1)) × 0.1 = 0.331
i=1
1
(0.18 + 0.32 + 0.42 + 0.48 + 0.5 + 0.48 + 0.42 + 0.32 + 0.18 + 0) × 0.1 = 0.33
Dr. Yasir Ali ([email protected]) (DBS&H, CEME-NUST)
Cal&AG December 6, 2020 34 / 49
Riemann Sum and Area Under a Curve Computing Area of Rectangles under a Function
2
f (x) = 2x − 2x on [0, 1] and xi = x0 + ih, 1 ≤ i ≤ n.
i 1 2 3 4 5 6 7 8 9 10
xi 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
f (xi ) 0.18 0.32 0.42 0.48 0.5 0.48 0.42 0.32 0.18 0
X10
A10 = f (xi )∆x = (f (0.1) + f (0.2) + · · · + f (1)) × 0.1 = 0.331
i=1
1
(0.18 + 0.32 + 0.42 + 0.48 + 0.5 + 0.48 + 0.42 + 0.32 + 0.18 + 0) × 0.1 = 0.33
Dr. Yasir Ali ([email protected]) (DBS&H, CEME-NUST)
Cal&AG December 6, 2020 34 / 49
Riemann Sums and Definite Integral
n
X
A = lim An = lim f (xi)∆x
n→∞ n→∞
i=1
i
xi = i∆x =
n
.
2
i i 2 2
f (xi ) = 2 −2 , f (xi )∆x = 2
· i − 3 · i2
n n n n
i
xi = i∆x =
n
.
2
i i 2 2
f (xi ) = 2 −2 , f (xi )∆x = 2
· i − 3 · i2
n n n n
n n n
!
X 2 X 2 X 2
An = f (xi )∆x = i − i
i=1
n2 i=1 n3 i=1
i
xi = i∆x =
n
.
2
i i 2 2
f (xi ) = 2 −2 , f (xi )∆x = 2
· i − 3 · i2
n n n n
n n n
!
X 2 X 2 X 2 2 n(n + 1) 2 n(n + 1)(2n + 1)
An = f (xi )∆x = i − i = − 3
i=1
n2 i=1 n3 i=1 n2 2 n 6
i
xi = i∆x =
n
.
2
i i 2 2
f (xi ) = 2 −2 , f (xi )∆x = 2
· i − 3 · i2
n n n n
n n n
!
X 2 X 2 X 2 2 n(n + 1) 2 n(n + 1)(2n + 1)
An = f (xi )∆x = i − i = − 3
i=1
n2 i=1 n3 i=1 n2 2 n 6
(n + 1) (n + 1)(2n + 1)
An = − =⇒
n 3n2
i
xi = i∆x =
n
.
2
i i 2 2
f (xi ) = 2 −2 , f (xi )∆x = 2
· i − 3 · i2
n n n n
n n n
!
X 2 X 2 X 2 2 n(n + 1) 2 n(n + 1)(2n + 1)
An = f (xi )∆x = i − i = − 3
i=1
n2 i=1 n3 i=1 n2 2 n 6
(n + 1) (n + 1)(2n + 1) (n − 1)(n + 1)
An = − =⇒ An =
n 3n2 3n2
(9)(11)
(n − 1)(n + 1) A10 = 300 = 0.3300
An =
3n2 A20 = (19)(21)
= 0.3325
1200
(9)(11)
(n − 1)(n + 1) A10 = 300 = 0.3300
An =
3n2 A20 = (19)(21)
= 0.3325
1200
(199)(201)
A200 = 3×40,000
(9)(11)
(n − 1)(n + 1) A10 = 300 = 0.3300
An =
3n2 A20 = (19)(21)
= 0.3325
1200
(199)(201)
A200 = 3×40,000 =0.333325
(9)(11)
(n − 1)(n + 1) A10 = 300 = 0.3300
An =
3n2 A20 = (19)(21)
= 0.3325
1200
(199)(201)
A200 = 3×40,000 =0.333325
(499)(501)
A500 = 3×250,000 =0.333332
(9)(11)
(n − 1)(n + 1) A10 = 300 = 0.3300
An =
3n2 A20 = (19)(21)
= 0.3325
1200
(199)(201)
A200 = 3×40,000 =0.333325
(499)(501)
A500 = 3×250,000 =0.333332
(n − 1)(n + 1) 1
A = lim An = lim =
n→∞ n→∞ 3n2 3
Dr. Yasir Ali ([email protected]) (DBS&H, CEME-NUST)
Cal&AG December 6, 2020 38 / 49
Riemann Sums and Definite Integral
(n − 1)(n + 1) 1
A = lim An = lim =
n→∞ 3n2
n→∞ 3
Z 1 1
2 2 1
2x − 2x2 dx = x2 − x3 =1− =
0 3 0 3 3
Suppose that f (x) ≥ 0 on the interval [a, b] and A1 is the area bounded
between the curve y = f (x) and the x-axis for a ≤ x ≤ b.
Further, suppose that f (x) ≤ 0 on the interval [b, c] and A2 is the area
bounded between the curve y = f (x) and the x-axis for b ≤ x ≤ c.
Figure: The point half way between the left and right endpoints
Summary
• Integration and derivative relation
• How to compute Riemann Sum?
• Relation Between Riemann Sum and Definite Integrals
• Types of Riemann Sum