You are on page 1of 4

Jim Lambers

MAT 460/560
Fall Semeseter 2009-10
Lecture 29 Notes
These notes correspond to Section 4.5 in the text.

Romberg Integration
Richardson extrapolation is not only used to compute more accurate approximations of derivatives,
but is also used as the foundation of a numerical integration scheme called Romberg integration. In
this scheme, the integral

()
( ) =

is approximated using the Composite Trapezoidal Rule with step sizes = ( )2 , where is
a nonnegative integer. Then, for each , Richardson extrapolation is used 1 times to previously
computed approximations in order to improve the order of accuracy as much as possible.
More precisely, suppose that we compute approximations 1,1 and 2,1 to the integral, using
the Composite Trapezoidal Rule with one and two subintervals, respectively. That is,
1,1 =
2,1 =

[ () + ()]
2 [
(
)
]

+
() + 2
+ () .
4
2

Suppose that has continuous derivatives of all orders on [, ]. Then, the Composite Trapezoidal
Rule, for a general number of subintervals , satises

() =
() + 2
( ) + () +
2 ,
2

=1

=1

where = ( )/, = + , and the constants { }


=1 depend only on the derivatives of .
It follows that we can use Richardson Extrapolation to compute an approximation with a higher
order of accuracy. If we denote the exact value of the integral by ( ) then we have
1,1 = ( ) + 1 2 + (4 )
2,1 = ( ) + 1 (/2)2 + (4 )
Neglecting the (4 ) terms, we have a system of equations that we can solve for 1 and ( ). The
value of ( ), which we denote by 2,2 , is an improved approximation given by
2,2 = 2,1 +

2,1 1,1
.
3
1

It follows from the representation of the error in the Composite Trapezoidal Rule that ( ) =
2,2 + (4 ).
Suppose that we compute another approximation 3,1 using the Composite Trapezoidal Rule
with 4 subintervals. Then, as before, we can use Richardson Extrapolation with 2,1 and 3,1
to obtain a new approximation 3,2 that is fourth-order accurate. Now, however, we have two
approximations, 2,2 and 3,2 , that satisfy
2 4 + (6 )
2,2 = ( ) +
2 (/2)4 + (6 )
3,2 = ( ) +
2 . It follows that we can apply Richardson Extrapolation to these approximafor some constant
tions to obtain a new approximation 3,3 that is sixth-order accurate. We can continue this process
to obtain as high an order of accuracy as we wish. We now describe the entire algorithm.
Algorithm (Romberg Integration) Given a positive integer , an interval [, ] and a function

(), the following algorithm computes an approximation to ( ) = () that is accurate to


order 2.
=
for = 1, 2, .[. . , do
,1 =

() + 2

21 1
=1

]
( + ) + () (Composite Trapezoidal Rule)

for = 2, 3, . . . , do

1,1
, = ,1 + ,1
(Richardson Extrapolation)
41 1
end
= /2
end
It should be noted that in a practical implementation, ,1 can be computed more eciently by
using 1,1 , because 1,1 already includes more than half of the function values used to compute
,1 , and they are weighted correctly relative to one another. It follows that for > 1, if we split
the summation in the algorithm into two summations containing odd- and even-numbered terms,
respectively, we obtain

2
2
22
1

,1 =
() + 2
( + (2 1)) + 2
( + 2) + ()
2
=1
=1

2
2
2
1
2

=
() + 2
( + 2) + () + 2
( + (2 1))
2
2
=1

=1

22

1
1,1 +
( + (2 1)).
2
=1

Example We will use Romberg integration to obtain a sixth-order accurate approximation to


1
2
,
0

an integral that cannot be computed using the Fundamental Theorem of Calculus. We begin by
using the Trapezoidal Rule, or, equivalently, the Composite Trapezoidal Rule

()
, = + ,
() +
( ) + () , =
2

=1

with = 1 subintervals. Since = ( )/ = (1 0)/1 = 1, we have


1
1,1 = [ (0) + (1)] = 0.68393972058572,
2
which has an absolute error of 6.3 102 .
If we bisect the interval [0, 1] into two subintervals of equal width, and approximate the area
2
under using two trapezoids, then we are applying the Composite Trapezoidal Rule with = 2
and = (1 0)/2 = 1/2, which yields
2,1 =

0.5
[ (0) + 2 (0.5) + (1)] = 0.73137025182856,
2

which has an absolute error of 1.5 102 . As expected, the error is reduced by a factor of 4 when
the step size is halved, since the error in the Composite Trapezoidal Rule is of (2 ).
Now, we can use Richardson Extrapolation to obtain a more accurate approximation,
2,2 = 2,1 +

2,1 1,1
= 0.74718042890951,
3

which has an absolute error of 3.6 104 . Because the error in the Composite Trapezoidal Rule
satises

() =
() +
( ) + () + 1 2 + 2 4 + 3 6 + (8 ),
2

=1

where the constants 1 , 2 and 3 depend on the derivatives of () on [, ] and are independent
of , we can conclude that 2,1 has fourth-order accuracy.
We can obtain a second approximation of fourth-order accuracy by using the Composite Trapezoidal Rule with = 4 to obtain a third approximation of second-order accuracy. We set =
(1 0)/4 = 1/4, and then compute
3,1 =

0.25
[ (0) + 2[ (0.25) + (0.5) + (0.75)] + (1)] = 0.74298409780038,
2
3

which has an absolute error of 3.8 103 . Now, we can apply Richardson Extrapolation to 2,1
and 3,1 to obtain
3,1 2,1
3,2 = 3,1 +
= 0.74685537979099,
3
which has an absolute error of 3.1 105 . This signicant decrease in error from 2,2 is to be
expected, since both 2,2 and 3,2 have fourth-order accuracy, and 3,2 is computed using half the
step size of 2,2 .
It follows from the error term in the Composite Trapezoidal Rule, and the formula for Richardson
Extrapolation, that

2,2 =

2 4 + (6 ),
+

2,2 =
0

2
+

( )4

+ (6 ).
2

Therefore, we can use Richardson Extrapolation with these two approximations to obtain a new
approximation
3,2 2,2
3,3 = 3,2 +
= 0.74683370984975,
24 1
which has an absolute error of 9.6 106 . Because 3,3 is a linear combination of 3,2 and 2,2 in
which the terms of order 4 cancel, we can conclude that 3,3 is of sixth-order accuracy.

You might also like