5. http://numericalmethods.eng.usf.edu
5
Error in Multiple Segment
Trapezoidal Rule
The true error in a multiple segment Trapezoidal
Rule with n segments for an integral
Is given by
b
a
dx
)
x
(
f
I
n
f
n
a
b
E
n
i
i
t
1
2
3
12
where for each i, is a point somewhere in the
domain , .
i
ih
a
,
h
i
a
1
6. http://numericalmethods.eng.usf.edu
6
Error in Multiple Segment
Trapezoidal Rule
The term can be viewed as an
n
f
n
i
i
1
approximate average value of in .
x
f
b
,
a
This leads us to say that the true error, Et
previously defined can be approximated as
2
1
n
Et
7. http://numericalmethods.eng.usf.edu
7
Error in Multiple Segment
Trapezoidal Rule
Table 1 shows the
results obtained for the
integral using multiple
segment Trapezoidal
rule for
n Value Et
1 11868 807 7.296 ---
2 11266 205 1.854 5.343
3 11153 91.4 0.8265 1.019
4 11113 51.5 0.4655 0.3594
5 11094 33.0 0.2981 0.1669
6 11084 22.9 0.2070 0.09082
7 11078 16.8 0.1521 0.05482
8 11074 12.9 0.1165 0.03560
30
8
8
9
2100
140000
140000
2000 dt
t
.
t
ln
x
Table 1: Multiple Segment Trapezoidal Rule Values
%
t
%
a
8. http://numericalmethods.eng.usf.edu
8
Error in Multiple Segment
Trapezoidal Rule
The true error gets approximately quartered
as the number of segments is doubled. This
information is used to get a better
approximation of the integral, and is the basis
of Richardson’s extrapolation.
11. http://numericalmethods.eng.usf.edu
11
Example 1
The vertical distance covered by a rocket from 8 to
30 seconds is given by
30
8
8
9
2100
140000
140000
2000 dt
t
.
t
ln
x
a) Use Richardson’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
17. http://numericalmethods.eng.usf.edu
17
Note that the variable TV is replaced by as the
value obtained using Richardson’s extrapolation formula.
Note also that the sign is replaced by = sign.
R
n
I2
Romberg Integration
Hence the estimate of the true value now is
4
2 Ch
I
TV R
n
Where Ch4
is an approximation of the true
error.
18. http://numericalmethods.eng.usf.edu
18
Romberg Integration
Determine another integral value with further
halving the step size (doubling the number of
segments),
3
2
4
4
4
n
n
n
R
n
I
I
I
I
It follows from the two previous expressions
that the true value TV can be written as
15
2
4
4
R
n
R
n
R
n
I
I
I
TV
1
4 1
3
2
4
4
R
n
R
n
n
I
I
I
19. http://numericalmethods.eng.usf.edu
19
Romberg Integration
2
1
4 1
1
1
1
1
1
k
,
I
I
I
I k
j
,
k
j
,
k
j
,
k
j
,
k
The index k represents the order of
extrapolation.
k=1 represents the values obtained from the regular
Trapezoidal rule, k=2 represents values obtained using
the true estimate as O(h2
). The index j represents the
more and less accurate estimate of the integral.
A general expression for Romberg integration can
be written as
20. http://numericalmethods.eng.usf.edu
20
Example 2
The vertical distance covered by a rocket from
8
t to 30
t seconds is given by
30
8
8
9
2100
140000
140000
2000 dt
t
.
t
ln
x
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.
26. Additional Resources
For all resources on this topic such as digital
audiovisual lectures, primers, textbook chapters,
multiple-choice tests, worksheets in MATLAB,
MATHEMATICA, MathCad and MAPLE, blogs, related
physical problems, please visit
http://numericalmethods.eng.usf.edu/topics/romber
g_method.html