Ch8 (2) Numerical Integraton
Ch8 (2) Numerical Integraton
Ch8 (2) Numerical Integraton
Lecture-2
1
Specific aims
Discuss about Composite trapezoidal, Simpson’s rules and
Romberg integration methods.
Use this numerical integration methods to obtain
approximate values for definite integrals that cannot be
solved analytically.
Applications
Mathematics
Engineering
Advantages
• To avoid the use of higher order methods and still obtain accurate
results, we use the composite integration methods.
• The interval [a, b] is divided into a number of subintervals and
evaluate the integral in each required number of subintervals by a
particular method. 2
Composite Trapezoidal Rules
We divide the interval [a, b] into N subintervals each of length
h=(b-a)/N, and , r=1,2,3,….,N. We can write,
3
Composite Simpson’s Rules
Wedivide the interval [a, b] into N, an even number of subintervals ,
each of length h=(b-a)/N, and , r=1,2,3,….,N. We can write,
Evaluating each integral on the right hand side by the Simpson’s rule
4
Romberg Integration
Romberg integration is an extrapolation formula of the
Trapezoidal Rule for integration. It provides a better
approximation of the integration by repeated applications of the
Richardson’s Extrapolation formula. It is known that the
Trapezoidal rule approximation to an integral I has error behavior
6
Example
Problem 1: The table below shows the values of at different
Values of x.
x 0 0.2 0.4 0.6 0.8 1.0 1.2
f(x) 1.000 1.780 1.954 2.000 1.976 1.909 1.814
7
We know, the composite trapezoidal rule is
So
9
(ii) Given table is
x 0 0.2 0.4 0.6 0.8 1.0 1.2
f(x) 1.000 1.780 1.954 2.000 1.976 1.909 1.814
10
With step size , h=0.4 , the number of subintervals, 1.2/0.4=3 (odd
number intervals)and Simpson’s rule cannot be used
Taking h = 0.6, now the number of subintervals is 2 that is even. From
given table we get
x 0 0.2 0.4 0.6 0.8 1.0 1.2
f(x) 1.000 1.780 1.954 2.000 1.976 1.909 1.814
11
Example
1 2
𝑥
( )
Problem 2: Evaluate ∫ 𝑥 exp 2 𝑑𝑥
0
Solution:
Here,
12
First order extrapolated values are
And
13
Results are summarized below in a Table:
N H
1 1 0.8244
2 0.5 0.6955 0.6528
4 0.25 0.6606 0.6490 0.6488
Outcomes
Numerically solved problems by using Composite Trapezoidal
Rule, Composite Simpson’s Rule and Romberg integration
method.
14
Multiple questions
S.No. Questions
1 Which one can be used for numerical integration?
(a) Composite Simpson’s rule, (b) Composite Trapezoidal rule, (c) Romberg
Integration, (d) all of them
2 What type of solution could be by applying above rules?
(a) Analytical solution, (b) Numerical solution
5 Which formula can be used for Composite Trapezoidal rule?
(a) , (b)
6 Which formula can be used for Composite Simpson’s rule?
6 (a) ,
(b)
(c) Both of them
15
Try to do yourself
Exercise 1: A river is 50 meters wide. The depth ‘d’ in meters at
distance x meters from one back is given by the following table.
Calculate the arc of cross-section of the river using Simpson’s
rule.
x 0 10 20 30 40 50
d 0 4 7 9 12 15
18