Docsity

Simpson and Richardson Approximations, Lecture Notes - Advanced Calculus, Study notes of Calculus

Toggle sidebar
bg1
Simpson and Richardson Approximation
Adrian Down
March 21, 2006
1 Simpson approximation
1.1 Method
Simpson’s rule is a method for performing numerical integration of a func-
tion f(x) by interpolating that function piecewise over some mesh. In each
subinterval of the mesh, the function f(x) which is to be interpolated is
approximated by a quadratic polynomial p(x) that interpolates f(x) at the
endpoints and the midpoint of the interval.
1.2 Constructing p(x)explicitly
In a given subinterval (xn, xn+h), the polynomial pn(x) interpolates the
function f(x) at the points xn,xn+h
2, and xn+h, where xnis any mesh
point, and his the width of the subintervals of the mesh.
When applying the Trapezoidal rule, we created a line through the points
xnand xn+h. An explicit expression for this line is,
p(x) = f(xn) + f(xn+h)−f(xn)
h(x−xn)
In the case of Simpson’s rule, the interpolating polynomial also passes
through the points (xn, f (xn)) and (xn+h, f(xn+h)) However, the value
of the interpolating polynomial at the midpoint of the subinterval xn+h
2
is changed compared to the case of the Trapezoidal approximation. Let l
denote the difference between the quadratic Simpson’s rule approximation
1
pf3
pf4
pf5

Partial preview of the text

Download Simpson and Richardson Approximations, Lecture Notes - Advanced Calculus and more Study notes Calculus in PDF only on Docsity!

Simpson and Richardson Approximation

Adrian Down

March 21, 2006

1 Simpson approximation

1.1 Method

Simpson’s rule is a method for performing numerical integration of a func- tion f (x) by interpolating that function piecewise over some mesh. In each subinterval of the mesh, the function f (x) which is to be interpolated is approximated by a quadratic polynomial p(x) that interpolates f (x) at the endpoints and the midpoint of the interval.

1.2 Constructing p(x) explicitly

In a given subinterval (xn, xn + h), the polynomial pn(x) interpolates the function f (x) at the points xn, xn + h 2 , and xn + h, where xn is any mesh point, and h is the width of the subintervals of the mesh. When applying the Trapezoidal rule, we created a line through the points xn and xn + h. An explicit expression for this line is,

p(x) = f (xn) + f (xn + h) − f (xn) h (x − xn)

In the case of Simpson’s rule, the interpolating polynomial also passes through the points (xn, f (xn)) and (xn + h, f (xn + h)) However, the value of the interpolating polynomial at the midpoint of the subinterval xn + h 2 is changed compared to the case of the Trapezoidal approximation. Let l denote the difference between the quadratic Simpson’s rule approximation

and the Trapezoidal rule approximation at the point xn + h 2. The explicit value of l is,

l = f

xn + h 2

{f (xn) + f (xn + h)}

An expression for a quadratic polynomial that passes through the three points to be interpolated is,

pn(x) = f (xn) + f (xn + h) − f (xn) h (x − xn) + l(x − xn)(xn + h − x) (h 2

The first two terms of (1) are the linear approximation of the function that passes through f (xn) and f (xn + h). The last term is included to ensure that the approximating parabola passes through the point l above the linear approximation. At x = h 2 , the last term becomes,

l(x − xn)(xn + h − x) (h 2

) 2 →^

l(xn + h 2 − xn)(xn + h − xn − h 2 ) (h 2

l

(h 2



(h 2  ) 2 = l

1.3 Approximating the integral

We now have an explicit expression for the interpolating polynomial pn(x) on each subinterval of the mesh. To find the approximation to the integral of f (x) over the entire interval in which we are interested, we must take a sum of the integral of each pn(x).  (^) xn+h

xn

p(x)dx = h 2 {f (xn) + f (xn + h)} +

hl (2)

The first term in (2) is simply the area of the trapezoidal approximation to the integral. The second term results from integrating the quadratic term. It can be easily obtained from the general fact that the area under a parabola is equal to 22 of the area of a rectangle superscribing the parabola. Substituting the explicit value of l gives the Simpson approximation to the integral of f (x) on each subinterval of the mesh,  (^) xn+h

xn

p(x)dx = h 6

f (xn) + 4f

xn + h 2

  • f (xn + h)

interval,

(h) =

n 2 − 1 ∑

j=

j (7)

n 2 − 1 ∑

j=

f (4)(x 2 j )2h

 (^) (2h)^4 + O(h^5 ) (8)

( (^) b

a

f (4)(x)dx

h^4 + O(h^5 ) (9)

Note. • Using the Fundamental Theorem of Calculus,  (^) b

a

f (4)(x)dx = f (3)(b) − f (3)(a)

  • The indices of summation result because,

2 j + 2 = n ⇒ j = n 2

2 Richardson approximation

2.1 Motivation

Previously, we found that the error associated with the Trapezoidal approx- imation could be Taylor expanded using only even powers of h. We can exploit this regularity in the Taylor expansion to form linear combinations of Trapezoidal rule approximations with successively smaller error terms. Consider (6) above. We would like to write this expression in terms of Trapezoidal approximations. To obtain the alternating coefficients, it is possible to take a linear combination of the Trapezoidal interpolation of f (x) on the same mesh with step size h and 2h,

S(h) =

h

f 0 + f 1 + f 2 +... + fn− 2 + fn− 1 +

fn

2 h

f 0 + f 2 + f 4 +... + fn− 4 + fn− 2 +

fn

T (h) −

T (2h)

By our previous result, the error terms associated with T (h) and T (2h) can be expanded using only even powers of h. Hence there is no O(h^5 ) term in the error associated with the present approximation S(h), as postulated in (9) above. By taking a linear combination of Trapezoidal approximations, we were to cancel lower order terms in the error, and thus obtain a more accurate approximation of the integral. This procedure points to a general method in which by taking linear combinations of Trapezoidal approximation, we can create increasingly accurate approximations to the integral of a given function f (x) on some interval.

2.2 Improving the Trapezoidal approximation

The general form of the Trapezoidal approximation to a function f (x) on an interval [a, b] is,

T (h) =

 (^) b

a

f (x)dx + c 2 h^2 + c 4 h^4 + O(h^6 )

The calculation above motivates us to examine T

(h 2

T

h 2

 (^) b

a

f (x)dx + c 2

h 2

  • c 4

h 2

  • O(h^6 )

As before, form a linear combination with the proper coefficients to cancel lower order error terms,

22 T

h 2

= 2^2

 (^) b

a

f (x)dx + c 2 h^2 + c 4 h^4 22

  • O(h^6 )

⇒ 22 T

h 2

− T (h) =

) ^ b a

f (x)dx − c 4

h^4 + O(h^6 )

The O(h^2 ) terms are removed from this approximation, and hence it is more accurate. This calculation motivates the definition,

T 1 (h) =

22 T

h 2

− T (h)

  • Ch^4 + O(h^6 ) (10)