Romberg Rule of Integration: Major: All Engineering Majors Authors: Autar Kaw, Charlie Barker
Romberg Rule of Integration: Major: All Engineering Majors Authors: Autar Kaw, Charlie Barker
http://numericalmethods.eng.usf.edu
Transforming Numerical Methods Education for STEM
Undergraduates
1/10/2010 http://numericalmethods.eng.usf.edu 1
Romberg Rule of
Integration
http://numericalmethods.eng.usf.edu
Basis of Romberg Rule
b
Integration ∫ f ( x )dx
a
f(x)
y
The process of measuring
the area under a curve.
b
I = ∫ f ( x )dx
a
Where:
f(x) is the integrand
a= lower limit of integration
a b x
b= upper limit of integration
3 http://numericalmethods.eng.usf.edu
What is The Romberg Rule?
4 http://numericalmethods.eng.usf.edu
Error in Multiple Segment
Trapezoidal Rule
The true error in a multiple segment Trapezoidal
Rule with n segments for an integral
b
I = ∫ f ( x )dx
a
Is given by n
∑ f ′′(ξi )
(b − a ) i =1
3
Et =
12n 2 n
1
Et ≅ α
n2
6 http://numericalmethods.eng.usf.edu
Error in Multiple Segment
Trapezoidal Rule
n Value Et ∈t % ∈a %
Table 1 shows the results 1 11868 807 7.296 ---
obtained for the integral 2 11266 205 1.854 5.343
using multiple segment
3 11153 91.4 0.8265 1.019
Trapezoidal rule for
4 11113 51.5 0.4655 0.3594
30
140000 5 11094 33.0 0.2981 0.1669
x = ∫ 2000 ln − 9 . 8t dt
8 140000 − 2100t
6 11084 22.9 0.2070 0.09082
7 http://numericalmethods.eng.usf.edu
Error in Multiple Segment
Trapezoidal Rule
8 http://numericalmethods.eng.usf.edu
Richardson’s Extrapolation for
Trapezoidal Rule
Et = TV − I n
Where TV = true value and I n = approx. value
9 http://numericalmethods.eng.usf.edu
Richardson’s Extrapolation for
Trapezoidal Rule
I 2n − I n
TV ≈ I 2 n +
3
10 http://numericalmethods.eng.usf.edu
Example 1
The vertical distance covered by a rocket from 8 to 30
seconds is given by
30
140000
x = ∫ 2000 ln − 9. 8t dt
8 140000 − 2100t
TV ≈ I 4 +
I4 − I2 11113 − 11266
3
= 11113 +
3
= 11062m
12 http://numericalmethods.eng.usf.edu
Solution (cont.)
b) The exact value of the above integral is
30
140000
x = ∫ 2000 ln − 9. 8t dt
8 140000 − 2100t
= 11061 m
Hence
Et = True Value − Approximate Value
= 11061 − 11062
= −1 m
13 http://numericalmethods.eng.usf.edu
Solution (cont.)
c) The absolute relative true error ∈t would then be
11061 − 11062
∈t = × 100
11061
= 0.00904%
14 http://numericalmethods.eng.usf.edu
Solution (cont.)
Table 2: The values obtained using Richardson’s
extrapolation formula for Trapezoidal rule for
30
140000
x = ∫ 2000 ln − 9 . 8t dt
8 140000 − 2100t
15 http://numericalmethods.eng.usf.edu
Romberg Integration
Romberg integration is same as Richardson’s
extrapolation formula as given previously. However,
Romberg used a recursive algorithm for the
extrapolation. Recall
I 2n − I n
TV ≈ I 2 n +
3
This can alternately be written as
I 2n − I n I 2n − I n
(I 2n )R = I 2n + = I 2n + 2−1
3 4 −1
16 http://numericalmethods.eng.usf.edu
Romberg Integration
TV ≈ (I 2 n )R + Ch 4
17 http://numericalmethods.eng.usf.edu
Romberg Integration
Determine another integral value with further halving
the step size (doubling the number of segments),
I 4n − I 2n
(I 4n )R = I 4n +
3
It follows from the two previous expressions
that the true value TV can be written as
(I 4 n )R − (I 2 n )R
TV ≈ (I 4 n )R +
15
( I 4 n )R − ( I 2 n )R
= I 4n +
43−1 − 1
18 http://numericalmethods.eng.usf.edu
Romberg Integration
A general expression for Romberg integration can be
written as
I k −1, j +1 − I k −1, j
I k , j = I k −1, j +1 + k −1
,k ≥ 2
4 −1
19 http://numericalmethods.eng.usf.edu
Example 2
30
140000
x = ∫ 2000 ln − 9. 8t dt
8 140000 − 2100t
20 http://numericalmethods.eng.usf.edu
Solution
From Table 1, the needed values from original
Trapezoidal rule are
21 http://numericalmethods.eng.usf.edu
Solution (cont.)
To get the first order extrapolation values,
I1, 2 − I1,1
I 2,1 = I1, 2 +
3
11266 − 11868
= 11266 +
3
= 11065
Similarly,
I1,3 − I1, 2 I1, 4 − I1,3
I 2, 2 = I1,3 + I 2,3 = I1, 4 +
3 3
11113 − 11266 11074 − 11113
= 11113 + = 11074 +
3 3
= 11062 = 11061
22 http://numericalmethods.eng.usf.edu
Solution (cont.)
For the second order extrapolation values,
I 2, 2 − I 2,1
I 3,1 = I 2, 2 +
15
11062 − 11065
= 11062 +
15
= 11062
Similarly,
I 2,3 − I 2, 2
I 3, 2 = I 2 , 3 +
15
11061 − 11062
= 11061 +
15
= 11061
23 http://numericalmethods.eng.usf.edu
Solution (cont.)
For the third order extrapolation values,
I 3 ,2 − I 3 ,1
I 4 ,1 = I 3,2 +
63
11061 − 11062
= 11061 +
63
= 11061m
24 http://numericalmethods.eng.usf.edu
Solution (cont.)
25 http://numericalmethods.eng.usf.edu
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/romberg_
method.html
THE END
http://numericalmethods.eng.usf.edu