ROMBERG RULEINTERACTIVE E-BOOK |
INTEGRATION |
MAJORGENERAL |
On non Internet
Explorer browsers, the equations may not show up.
As an alternative or if you
prefer,
you can see the pdf version of the ebook instead
Title |
An interactive e-book for illustrating Romberg Rule of integration |
|
Creator |
Autar K Kaw |
|
Subject and Keywords |
Romberg Rule, Numerical Integration, Mathcad, Maple, Mathematica, Matlab, Simulations. |
|
Description |
This is an interactive E-book for illustrating Romberg Rule of integration. It includes links to simulations in Mathcad, Maple, Mathematica and Matlab for the algorithm; multiple choice quizzes, problem set, and a power point presentation. |
|
Publisher |
Holistic Numerical Methods Institute, |
|
Contributors |
Autar Kaw |
|
Format |
Text/HTML |
|
Last Revised |
January 22, 2006 |
|
Identifier |
http://numericalmethods.eng.usf.edu/ebooks/romberg_07int_ebook.pdf |
|
Language |
English |
|
Rights |
|
Error in Multiple-Segment Trapezoidal Rule Richardson’s Extrapolation Formula Simulation Romberg Method (Mathcad Maple Mathematica Matlab) Convergence Simulation of Romberg Method (Mathcad Maple Mathematica Matlab) Problem Set Multiple choice question examination
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
This is an example of how an instructor of a Numerical Methods course can develop an E-book on a single topic by using resources that are only available at the Holistic Numerical Methods Institute (HNMI) Website. Although one of the primary advantages of a web-based resource is that one can use documents outside of its own domain, we are particularly using this example as a way to illustrate the holistic nature of the resources available at HNMI. You are welcome to modify and edit this e-book to suit your purpose. Using the textbook document written in MS Word 2000 as a foundation, it was made interactive within MS Word 2000 by putting bookmarks and hyperlinks to background information, PowerPoint presentations, Mathcad simulations, historical anecdotes, multiple choice tests, problem sets, etc. Then the MS Word 2000 file was saved as a webpage and that is what you are about to read here. Back to TOC
Integration is the process of measuring the area under a function plotted on a graph. Why would we want to do so? Among the most common examples are finding the velocity of a body from acceleration functions, and displacement of a body from velocity data. Throughout the engineering fields, there are (what sometimes seems like) countless applications for integral calculus. Sometimes, the evaluation of expressions involving these integrals can become daunting, if not indeterminate. For this reason, a wide variety of numerical methods have been developed to find the integral. Here, we will discuss the Romberg rule of approximating integrals of the form
where
Figure 1: Integration of a function
Back to TOC
Error in Multiple-Segment Trapezoidal Rule The true error in a multiple segment Trapezoidal Rule with n segments for an integral
is given by
where for
each i, the term
in estimate
of the integral Table 1:
Values obtained using multiple segment Trapezoidal rule for
Table 1 shows the results obtained for the integral using multiple-segment Trapezoidal rule
The true error for the 1-segment Trapezoidal rule is -807, while for the 2-segment rule, the true error is -205. The true error of -205 is approximately a quarter of -807. The true error gets approximately quartered as the number of segments is doubled from 1 to 2. Same trend is observed when the number of segments is doubled from 2 to 4 (true error for 2-segments is -205 and for four segments is -51.5). This follows Equation (3).
This information, although interesting, can also be used to get better
approximation of the integral. That is the basis of Back to TOC
Richardson’s Extrapolation Formula for Trapezoidal Rule The true
error,
where C is an approximate constant of proportionality. Since
where
Then from equations (4) and (5),
If the number of segments is doubled from n to 2n in the Trapezoidal rule,
Equations (1) and (2) can be solved simultaneously to get
Back to TOCExample 1 The vertical distance covered
by a rocket from a) Use Romberg’s rule to find the distance covered. Use the 2-segment and 4-segment Trapezoidal rule results given in Table 1. b) Find the true error, Et for part (a). c) Find the absolute relative true error for part (a). Solution a)
Using
and choosing n=2,
b) The exact value of the above integral is
so the true error
c) The absolute relative true
error,
Table 2
shows the
Table 2:
Values obtained using
Back to TOC
Romberg integration is same as The estimate of the true error in trapezoidal rule is given by (See Equation ( ) ),
Since the segment width, h
equation (2) can be written as
The estimate of true error is given by
It can be shown that the exact true error could be written as
and for small h,
Since we
used
where the
variable TV is replaced by Hence the estimate of the true value now is
Determine another integral value with further halving the step size (doubling the number of segments),
then
From Equation (13) and (14),
The above
equation now has the error of Based on this procedure, a general expression for Romberg integration can be written as
The index k
represents the order of extrapolation. For example, For
For
Simulation Method (Mathcad Maple Mathematica Matlab) Convergence (Mathcad Maple Mathematica Matlab)
Back to TOCThe vertical distance covered
by a rocket from Use Romberg’s rule to find the distance covered. Use the 1, 2, 4, and 8-segment Trapezoidal rule results as given in the Table 1. Solution From Table 1, the needed values from original Trapezoidal rule are
where the above four values correspond to using 1, 2, 4 and 8 segment Trapezoidal rule, respectively. To get the first order extrapolation values,
Similarly
For the second order extrapolation values,
Similarly
For the third order extrapolation values,
Table 2 shows these increased correct values in a tree graph.
Table 2: Improved estimates of value of integral using Romberg integration
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Back to TOC |