Professional Documents
Culture Documents
m575 Chapter 9 Lecture Notes Exercise and Solution
m575 Chapter 9 Lecture Notes Exercise and Solution
Chapter 9
Richardson
Extrapolation
At the end of this chapter, students should be able to:
Derive Richardson extrapolation
Identify and apply Richardson extrapolation technique
Determine error involve in the Richardson extrapolation method
9.1 Introduction
Earlier, we have mentioned that in the study of numerical differentiation the
three-point methods are better than the two-point methods to find the
estimate of the first derivative. In addition, among the three-point methods,
the central method is the best method. In addition, we have also shown via
several examples that the smaller the step size h, the better the
approximations will be. Since we are talking about the estimates of the first
derivatives only, it is perhaps wise to consider another interesting method to
approximate the first derivative which is far better than any of the three-point
methods discussed in the preceding chapter. It is known as Richardson
extrapolation. The general idea behind Richardson extrapolation is that he
uses two derivative estimates to compute a third approximation and thus
providing more accurate approximation for the derivatives. The following
topic is a brief discussion on the Richardson extrapolation method which is
about a paper written by Richardson and J.A. Gaunt in 1927.
141
f ( x h) f ( x h)
f ( x ) O(h2 )
2h
Now, using different values of h into the formula, say h1 we have
f ( x h1 ) f ( x h1 )
f ( x ) O(h12 )
2h1
f ' (x) R 2 c 2h 22 ,
here R 2 is estimates of f ' (x) using h 2 . The values for c1 and c2 could be
c h12 h 22 R 2 R1
R 2 R1
Solving for c, we have c
h12 h 22
So,
R 2 R1 R 2 R1
exact value of f ' (x) R 2 h 22 R 2 h 22
h12 h 22 2
2 h1
h2 1
2
Upon simplifying, we have h2
R 2 R1
exact value of f ' (x) R 2
2
h1 1
h2
142
Example 1
Let f(x) = x3. Use central difference with Richardson extrapolation to
compute f ’(1), using h1 = 0.1 and h2 = 0.05.
Solution
3.0025 3.01
exact 3.0025 3.0000
2
0.1
1
0.05
f ( x0 h ) f ( x0 h ) h2 h4 v
f ' ( x0 ) f ' ' ' ( x0 ) f ( x0 ) ... (1)
2h 3! 5!
The central difference approximation with step size 2h is given by
4h 4 (5)
The error is O(h4) and is given by R f ( x0 ) x 2h x 2h
5!
below.
143
Example 2
A function is given in tabular form below. Find approximation to the first
derivative of f(x) at x = 0.8 with error O(h4).
Solution
Identify the point x that needs to be evaluated
x = 0.8
Identify the step size h
h = 0.1.
144
Example 3
The following data was taken during a physics experiment about a moving
particle at time t and velocity v(t). Calculate the acceleration of the particle
at t = 30 seconds.
t(seconds) 10 20 30 40 50
Solution
Note that the acceleration is the first derivative of velocity function v(t).
Identify the point t that needs to be evaluated
t = 30
Identify the step size h
h = 10
145
Example 4
The distance x of a runner from a fixed point is measured (in meters) at
intervals of half a second. The data obtained are as follows:
Solution
f (1.5) f (1.0)
f ' (1.0)
( 0 .5 )
9.90 6.80
0 .5
6 .2
(ii) Using two-point backward with O(h):
f (1.0) f (0.5)
f ' (1.0)
( 0 .5 )
6.80 3.65
0 .5
6 .3
(b) Using three-point central difference with O(h2):
f ( x h) f ( x h)
f ( x )
2h
f (1.5) f (0.5)
f (1)
2(0.5)
9.90 3.65
0 .1
6.25
146
Warm up exercise
Consider the f(x) 3x 2 4x. Find the first derivative of f(x) at x =2 with
h = 0.1 using:
(i) the two -point method
(ii) the three-point central difference method.
(iii) the Richardson extrapolation
Discuss your answers and compare it with the exact solution. So which is
better?
f ( x 2h) 8f ( x h) 8f ( x h) f ( x 2h)
f ' ( x) E2 ( f, h) (2)
12h
147
(2)
h 4 f ( 5 ) (c )
where E2 ( f, h) O(h 4 ) .
30
Example 5
Determine the error if Richardson formula is used to approximate the first
derivative of f(x) = cos x in [0.9, 1.3] with
a) h = 0.1 b) h = 0.01
Solution
h 4 f ( 5 ) (c )
Given | e | while
30
(0.1) 4 (0.9636 )
| e |
30
3.212 x10 6
b)
(0.01) 4 (0.9636 )
| e |
30
148
Warm up exercise
Exercise 9
1. Use Richardson extrapolation to evaluate f’(x) and calculate the error bound for
the following functions.
a) f(x) = cos(x) at x = π/4 with h = 0.01, h = 0.005
b) f(x) = ln(1 + x) at x = 1 with h = 0.01, h = 0.005
c) f(x) = tan−1 x at x = 2 with h = 0.01, h = 0.005
1
e) f (x) at x = 1 with h = 0.1, h = 0.01
x
f) f ( x ) e x sin x at x = 1
g) f ( x ) xe x at x = 2 with h = 0.2
149
2. Use Richarson extrapolation to evaluate f’(x) and calculate the error bound for
the following functions.
1
b) f ( x ) at x = 1 with h = 0.1, h = 0.01
x
1
f (x)
x
f ( x 2h ) 8 f ( x h ) 8 f ( x h ) f ( x 2h )
f'( x)
2h
h = 0.1
f ( 0.8 ) 8 f ( 0.9 ) 8 f ( 1.1) f ( 1.2 )
f ' ( 1)
0.2
-0.999579125
h 4 f ( 5 ) (c )
| e |
30
1
f'( x)
x2
2
f '' ( x )
x3
6
f ''' ( x )
x4
24
f '''' ( x )
x5
120
f ''''' ( x )
x6
0.8 x 1.2
40.1877572 f 5 ( x ) 457 .7636719
150
f ( x ) x sin x
f ' ( x ) sin x x cos x
f ' ' ( x ) cos x cos x x sin x
2 cos x x sin x
f ' ' ' ( x ) 2 sin x sin x x cos x
3 sin x x cos x
f ' ' ' ' ( x ) 3 cos x cos x x sin x
4 cos x x sin x
f ' ' ' ' ' ( x ) 5 sin x x cos x
http://www.math.dartmouth.edu/~calcsite/video1.html#406
Source: 1999 Addison Wesley Longman, Inc.
http://www.mathcs.emory.edu/ccs/ccs215/integral/node3.html
151