Romberg & Gaussian Integration) - Part 2
Romberg & Gaussian Integration) - Part 2
Integration/Integration of Equations/
Romberg Integration
Compline by:
Habtamu G.
Romberg Integration
- It is used when the function is known and high accuracy is required,
so it is integration to improve the accuracy of the trapezoidal rule.
h2 I combined
h1 h2
a b a b
I(h1 ) I(h 2 )
f (x) f (x)
I combined
h1 h1 h2 h2
h2 h 2
a b
b
f (x) I(h1 ) E(h1 ) f (x) I(h 2 ) E(h 2 )
h1 h2 h2
a b a b
segments h Integral
n−1
1 0.8 0.1728 f (x 0 ) + 2 f (x i ) + f (x n )
I = (b − a) i=1
2 0.4 1.0688 2n
4 0.2 1.4848
a)For one and two segments
4 1 4 1
I I(h 2 ) − I(h 1 ) I (1.0688) − (0.1728) = 1.367467
3 3 3 3
I exact = 1.640533
t = 1%
b
Exercise: The integral of f (x)dx was evaluated twice
a
using the composite trapezoidal rule. The first with step size of 0.2
gave a value of 1.8 and the second with a step size of 0.4 and gave a
value of 0.95. What will be the value of the integral with O(h4)?
Ans:
I 2.08333
Numerical Differentiation and
Integration/
Gaussian Integration
Gaussian Integration
Gauss Quadrature
Based on trapezoidal rule curve must pass through
the end points fig (a) results in a large error.
If the fixed points were free to evaluate the area under a straight
line would balance the positive and negative errors as fig. b,
improves estimate of the integral.
Gauss quadrature is the name for one class of the techniques,
particular described in this section are called Gauss- Legendre
formulas.
Before describing the approach, we will show how numerical integration formulas such
as the trapezoidal rule can be derived using the method of undetermined coefficients.
This method will then be employed to develop the Gauss-Legendre formulas.
Derived the trapezoidal rule by integrating a linear
interpolating polynomial and by geometrical reasoning.
To illustrate the approach, the trapezoid rule can be
expressed as:
(*)
(**)
Unlike the trapezoidal rule that used fixed end points a and b, the
function arguments x0 and x1 are not fixed at the end points, but are
unknowns.
(***)
The functional values at x = 1/ 3 and −1/ 3 yields an integral estimate that is third-
order accurate.
The integration limits from −1 to 1 was done to simplify the mathematics.
A simple change of variable can be used to translate other limits of integration into this
form. This is accomplished by assuming that a new variable xd is related to the original
variable x in a linear fashion, as in
(4*)
If the lower limit, x = a, corresponds to xd =−1, these values can be substituted into Eq.
(4*) to yield
(5*)
(6*)
Solve simultaneously for
(7*)
Equations (7*) and (8*) can be substituted for x and dx, respectively, in the
equation to be integrated. These substitutions effectively transform the
integration interval without changing the value of the integral. The following
example illustrates how this is done in practice.
Example : Use Eq. of Gauss-Legendre to evaluate the integral of
The right-hand side is in the form that is suitable for evaluation using Gauss
quadrature. The transformed function can be evaluated at −1/ 𝟑 to be equal to
0.516741 and at 1/ 𝟑 to be equal to 1.305837.