Professional Documents
Culture Documents
SMA 3261 - Lecture 6 - Numerical Integration
SMA 3261 - Lecture 6 - Numerical Integration
SMA 3261 - Lecture 6 - Numerical Integration
NUMERICAL INTEGRATION
Dr. Ndung’u Reuben M.
Introduction
In applications, evaluation of integrals by analytical methods may be very complicated and
impractical when,
i) the antiderivative of is difficult to find, and
ii) the integral is a tabulated function
In such cases we resort to numerical integration which is also called numerical quadrature.
Definition
Numerical quadrature is the process of finding or evaluating the value of a definite
integral from a set of numerical values of the integrand.
DEKUT-MPS Page 1 of 14
Numerical Methods Lec. 6
Similarly for
for
Adding we obtain
General (or Composite) Formula
Therefore,
DEKUT-MPS Page 2 of 14
Numerical Methods Lec. 6
Adding we obtain.
General (or Composite) Formula
DEKUT-MPS Page 3 of 14
Numerical Methods Lec. 6
Simpson’s Rule can be applied when the number of subintervals is a multiple of i.e.
( ).
Worked example
1. A pharmaceutical company tests the body’s assimilation of a new drug by administering a
dose and collecting the following data from blood samples ( is time in hours, and
gives the assimilation of the drug in milligrams per hour).
DEKUT-MPS Page 4 of 14
Numerical Methods Lec. 6
let
3. The velocity of a particle at distance from a point on its linear path is given in the
following data:
Estimate the time taken by the particle to traverse the distance of meters, using
DEKUT-MPS Page 5 of 14
Numerical Methods Lec. 6
a) Trapezoidal rule,
b) Simpson’s one-third rule.
Solution
a) Trapezoidal Rule
Exercises
1) Evaluate by:
(i) Trapezoidal rule, and
(ii) Simpson’s rule.
2) Consider the supply and demand schedule in the table below where is in dollars and is
the number of units.
DEKUT-MPS Page 6 of 14
Numerical Methods Lec. 6
DEKUT-MPS Page 7 of 14
Numerical Methods Lec. 6
b) Romberg Formula
Let be the Trapezoidal rule with subdivisions of the interval . Let be a given
positive integer. For then we inductively define
For and
The first column of numbers is just the numbers computed using the trapezoidal rule with
subdivisions for .
Romberg Table
No. of
Trapezoidal 2nd order
Trapezoid approximation
1st order 3rd order 4th order 5th order
Simpson
s
Steps
I. First compute the trapezoid approximations starting with and doubling each time.
The easiest way to keep track of computations is to build a table of the form shown above.
Stopping criterion
There are two conditions which may cause the iteration process to halt:
If the step between successive iterates is sufficiently small, that is, ,
If we have iterated some maximum number of times, say , and condition have not been met,
we halt and indicate that a solution was not found.
DEKUT-MPS Page 8 of 14
Numerical Methods Lec. 6
DEKUT-MPS Page 9 of 14
Numerical Methods Lec. 6
Worked example
If ,
If ,
DEKUT-MPS Page 10 of 14
Numerical Methods Lec. 6
Exercises
1) Use Romberg integration of order to evaluate .
DEKUT-MPS Page 11 of 14
Numerical Methods Lec. 6
Formulae for the evaluation of a double integral can be obtained by repeatedly applying the
Trapezoidal and Simpson’s rules.
Consider, for example, the double integral defined by:
where and .
i) TRAPEZOIDAL RULE
By repeated ‘application of trapezoidal rule’ to equation , we can derive the formula,
For ,
DEKUT-MPS Page 12 of 14
Numerical Methods Lec. 6
Worked example
DEKUT-MPS Page 13 of 14
Numerical Methods Lec. 6
EXAMPLE/EXERCISES
DEKUT-MPS Page 14 of 14