Numerical Integration Lecture Notes Ndung'u Reuben
Numerical Integration Lecture Notes Ndung'u Reuben
NUMERICAL INTEGRATION
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.
We obtain various integration formulae from the general formula by taking {For
practical problems, the trapezoidal rule ( and Simpson’s rule ( are simple and most
useful; and better accuracy can be ensured by using composite trapezoidal rule and composite
Simpson’s rule with smaller step size }
i) Trapezoidal Rule
Taking in equation and neglecting all differences higher than the first, we obtain
Similarly for
for
Adding we obtain
General (or Composite) Formula
Therefore,
1) Evaluate by:
(i) Trapezoidal rule, and
(ii) Simpson’s rule.
2) Evaluate with equally spaced quadrature nodes and
separated by using
(i) Trapezoidal rule,
(ii) Simpson’s.
(iii) Simpson’s rule with
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
Trapezoidal
No. of 2nd order
approximatio 1st order 3rd order 4th order 5th order
trapezoids n simpson
Steps
I. First compute the trapezoid approximations starting with and doubling each time.
II. Next use the formula
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, ,
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 ,
EXAMPLE/EXERCISES
3) Evaluate taking and , using (i) Trapezoidal rule, (ii) Simpson’s rule.