Romberg Integration and Gaussian Quadrature

Similar documents
Interpolation. P. Sam Johnson. January 30, P. Sam Johnson (NITK) Interpolation January 30, / 75

Root Finding For NonLinear Equations Bisection Method

Section 6.6 Gaussian Quadrature

Solution of System of Linear Equations & Eigen Values and Eigen Vectors

MA2501 Numerical Methods Spring 2015

Numerical Integra/on

CS 450 Numerical Analysis. Chapter 8: Numerical Integration and Differentiation

COURSE Numerical integration of functions (continuation) 3.3. The Romberg s iterative generation method

Integration, differentiation, and root finding. Phys 420/580 Lecture 7

Numerical Integration Schemes for Unequal Data Spacing

APPM/MATH Problem Set 6 Solutions

Scientific Computing: Numerical Integration

Romberg Integration. MATH 375 Numerical Analysis. J. Robert Buchanan. Spring Department of Mathematics

Numerical Integration

MA6452 STATISTICS AND NUMERICAL METHODS UNIT IV NUMERICAL DIFFERENTIATION AND INTEGRATION

Integration. Topic: Trapezoidal Rule. Major: General Engineering. Author: Autar Kaw, Charlie Barker.

(x x 0 )(x x 1 )... (x x n ) (x x 0 ) + y 0.

Numerical Integration (Quadrature) Another application for our interpolation tools!

8.3 Numerical Quadrature, Continued

Mathematics for Engineers. Numerical mathematics

MA 3021: Numerical Analysis I Numerical Differentiation and Integration

Numerical integration and differentiation. Unit IV. Numerical Integration and Differentiation. Plan of attack. Numerical integration.

Jim Lambers MAT 460/560 Fall Semester Practice Final Exam

12.0 Properties of orthogonal polynomials

Differentiation and Integration

Numerical Methods I: Numerical Integration/Quadrature

Numerical Integration of Functions

5 Numerical Integration & Dierentiation

6 Lecture 6b: the Euler Maclaurin formula

AM205: Assignment 3 (due 5 PM, October 20)

Outline. 1 Numerical Integration. 2 Numerical Differentiation. 3 Richardson Extrapolation

The iterated sinh transformation

Numerical Methods for Engineers. and Scientists. Applications using MATLAB. An Introduction with. Vish- Subramaniam. Third Edition. Amos Gilat.

Numerical Integra/on

Numerical Integration exact integration is not needed to achieve the optimal convergence rate of nite element solutions ([, 9, 11], and Chapter 7). In

April 15 Math 2335 sec 001 Spring 2014

Numerical Analysis. A Comprehensive Introduction. H. R. Schwarz University of Zürich Switzerland. with a contribution by

Interpolating Accuracy without underlying f (x)

Interpolation & Polynomial Approximation. Hermite Interpolation I

Numerical Methods. King Saud University

Numerical Differentiation & Integration. Numerical Differentiation II

LECTURE 14 NUMERICAL INTEGRATION. Find

Fixed point iteration and root finding

CHAPTER 4 NUMERICAL INTEGRATION METHODS TO EVALUATE TRIPLE INTEGRALS USING GENERALIZED GAUSSIAN QUADRATURE

Scientific Computing

Chapter 5: Numerical Integration and Differentiation

Department of Applied Mathematics and Theoretical Physics. AMA 204 Numerical analysis. Exam Winter 2004

A first order divided difference

In numerical analysis quadrature refers to the computation of definite integrals.

Chapter 4: Interpolation and Approximation. October 28, 2005

GENG2140, S2, 2012 Week 7: Curve fitting

Bindel, Spring 2012 Intro to Scientific Computing (CS 3220) Week 12: Monday, Apr 16. f(x) dx,

Contents. I Basic Methods 13

4.1 Classical Formulas for Equally Spaced Abscissas. 124 Chapter 4. Integration of Functions

Applied Numerical Analysis

Lecture Note 3: Polynomial Interpolation. Xiaoqun Zhang Shanghai Jiao Tong University

NUMERICAL MATHEMATICS AND COMPUTING

Gregory's quadrature method

you expect to encounter difficulties when trying to solve A x = b? 4. A composite quadrature rule has error associated with it in the following form

Slow Growth for Gauss Legendre Sparse Grids

4. Numerical Quadrature. Where analytical abilities end... continued

(f(x) P 3 (x)) dx. (a) The Lagrange formula for the error is given by

NUMERICAL COMPUTATION IN SCIENCE AND ENGINEERING

Extrapolation in Numerical Integration. Romberg Integration

LECTURE 16 GAUSS QUADRATURE In general for Newton-Cotes (equispaced interpolation points/ data points/ integration points/ nodes).

Numerical Methods. Scientists. Engineers

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

1.8. Integration using Tables and CAS

Practice Exam 2 (Solutions)

CS 257: Numerical Methods

Principles of Scientific Computing Local Analysis

NUMERICAL METHODS FOR ENGINEERING APPLICATION

PHYS-4007/5007: Computational Physics Course Lecture Notes Appendix G

VEER NARMAD SOUTH GUJARAT UNIVERSITY, SURAT. SYLLABUS FOR B.Sc. (MATHEMATICS) Semester: III, IV Effective from July 2015

EAD 115. Numerical Solution of Engineering and Scientific Problems. David M. Rocke Department of Applied Science

Lecture Note 3: Interpolation and Polynomial Approximation. Xiaoqun Zhang Shanghai Jiao Tong University

Multistage Methods I: Runge-Kutta Methods

Answers to Homework 9: Numerical Integration

TABLE OF CONTENTS INTRODUCTION, APPROXIMATION & ERRORS 1. Chapter Introduction to numerical methods 1 Multiple-choice test 7 Problem set 9

Legendre s Equation. PHYS Southern Illinois University. October 13, 2016

NUMERICAL METHODS. x n+1 = 2x n x 2 n. In particular: which of them gives faster convergence, and why? [Work to four decimal places.

Comparison of Clenshaw-Curtis and Gauss Quadrature

Computational methods of elementary particle physics

Numerical Integration for Multivariable. October Abstract. We consider the numerical integration of functions with point singularities over

NUMERICAL ANALYSIS SYLLABUS MATHEMATICS PAPER IV (A)

Numerical techniques to solve equations

Chapter 5 - Quadrature

Ay190 Computational Astrophysics

Numerical Analysis. Yutian LI. 2018/19 Term 1 CUHKSZ. Yutian LI (CUHKSZ) Numerical Analysis 2018/19 1 / 41

Scientific Computing: An Introductory Survey

Legendre s Equation. PHYS Southern Illinois University. October 18, 2016

Exact and Approximate Numbers:

Improving analytic function approximation by minimizing square error of Taylor polynomial

MATH 1014 Tutorial Notes 8

3. Numerical Quadrature. Where analytical abilities end...

On orthogonal polynomials for certain non-definite linear functionals

Romberg Rule of Integration

Numerical Analysis. Introduction to. Rostam K. Saeed Karwan H.F. Jwamer Faraidun K. Hamasalh

n 1 f n 1 c 1 n+1 = c 1 n $ c 1 n 1. After taking logs, this becomes

Review. Numerical Methods Lecture 22. Prof. Jinbo Bi CSE, UConn

Transcription:

Romberg Integration and Gaussian Quadrature P. Sam Johnson October 17, 014 P. Sam Johnson (NITK) Romberg Integration and Gaussian Quadrature October 17, 014 1 / 19

Overview We discuss two methods for integration. Romberg Integration Romberg integration method is an extrapolation formula of the Trapezoidal rule for integration. It provides a better approximation of the integral by reducing the true error. Two estimates of an integral are used to compute a third integral, the third integral is more accurate than the previous integrals. Gaussian Quadrature The Gaussian quadrature formulas, are based on defining f n (x) using polynomial interpolation at carefully selected node points that need not be evenly spaced. P. Sam Johnson (NITK) Romberg Integration and Gaussian Quadrature October 17, 014 / 19

Romberg Integration The integral I (f ) = b a f (x) dx is approximated using the composite Trapezoidal rule with step size where k is a nonnegative integer. h k = b a k For each k, Richardson extrapolation is used k 1 times to previously computed approximations in order to improve the order of accuracy as much as possible. More precisely, suppose that we compute approximate values I (h) and I (h/) to the integral, using the composite Trapezoidal rule with two difference subintervals of widths h and h/ respectively, where h = b a. P. Sam Johnson (NITK) Romberg Integration and Gaussian Quadrature October 17, 014 3 / 19

If we denote the exact value of the integral by I (f ), then we have and I I (h) = I (f ) ( ) h (b a) = I (f ) 1 (b a) h f (η) for some η [a, b] 1 ( ) h f (ξ) for some ξ [a, b]. It is reasonable to assume that the quantitites f (η) and f (ξ) are very nearly the same. P. Sam Johnson (NITK) Romberg Integration and Gaussian Quadrature October 17, 014 4 / 19

Since f (η) = f (ξ), we get and I I (h) = I (f ) ( ) h (b a) = I (f ) 1 (b a) h f (ξ) 1 ( ) h f (ξ). Solving for I (f ) we get the value of I (f ), which we denote by I (h, h/), is an improved approximation given by ( ) [ ( h I h ) ] I (h) I (h, h/) = I +. 3 In a similar way we get I ( h, h ) = I 4 ( ) h 4 [ ( 4) ( I h I h + 3 )]. P. Sam Johnson (NITK) Romberg Integration and Gaussian Quadrature October 17, 014 5 / 19

Table With the notations defined above the following table can be formed. I (h) I ( ) h I ( ) h 4 I ( ) h 8 I ( h, h ) I ( h, h ) 4 I ( h 4, h ) 8 I ( h, h, h ) 4 I ( h, h 4, h ) 8 I ( h, h, h 4, h ) 8 The computations can be stopped when two successive values are sufficiently close to each other. This method, due to L.F. Richardson, is called the deferred approach to the limit and the systematic tabuation of this is called Romberg Integration. P. Sam Johnson (NITK) Romberg Integration and Gaussian Quadrature October 17, 014 6 / 19

Degree of Precision A numerical integration formula Ĩ (f ) that approximates I (f ) is said to have degree of precision m if 1 Ĩ (f ) = I (f ) for all polynomials f (x) of degree m. Ĩ (f ) I (f ) for some polynomial f (x) of degree m + 1. The degrees of precision of Trapezoidal and Simpson s 1 3-rule are 1 and 3 respectively. P. Sam Johnson (NITK) Romberg Integration and Gaussian Quadrature October 17, 014 7 / 19

Gaussian Quadrature For integrals in which the integrand has some kind of bad behavior, for example, an infinite value at some point, we often will consider the integrand in the form I (f ) = b a w(x) f (x) dx. The bad behavior is assumed to be located in w(x), called the weight function, and the function f (x) will be assumed to be well-behaved. For example, consider evaluating 0 (log x) f (x) dx for arbitrary continuous functions f (x). P. Sam Johnson (NITK) Romberg Integration and Gaussian Quadrature October 17, 014 8 / 19

Most numerical integration formulas are based on defining f n (x) in I n (f ) = b a f n (x) dx = I (f n ) by using polynomials or piecewise polynomial interpolation. Formulas using such interpolation with evenly spaced node points are derived and discussed below. The Gaussian quadrature formulas, are based on defining f n (x) using polynomial interpolation at carefully selected node points that need not be evenly spaced. Romberg integration is superior to Simpson s rule, but Gaussian quadrature is still more rapidly convergent. P. Sam Johnson (NITK) Romberg Integration and Gaussian Quadrature October 17, 014 9 / 19

The composite trapezoidal and Simpson rules are based on using a low-order polynomial approximation of the integrand f (x) on subintervals of decreasing size. We investigate a class of methods that use polynomial approximations of f (x) of increasing degree. The resulting integration formulas are extremely accurate in most cases, and they should be considered seriously by anyone faced with many integrals to evaluate. We discussed some integration formulae which require values of the function at equally-spaced points of the interval. Gauss derived a formula which uses nodes with different spacing and gives better accuracy. P. Sam Johnson (NITK) Romberg Integration and Gaussian Quadrature October 17, 014 10 / 19

Gauss formula is expressed in the form f (x) dx = n w j f (x j ) j=1 where w j and x j are called the weights and nodes, respectively. The weights and nodes are to be determined to make the error E n (f ) = f (x) dx j=1 w j f (x j ) equal zero for as high a degree polynomial f (x) as possible. To derive equations for the nodes and weights, we first note that E n (a 0 + a 1 x + + a m x m ) = a 0 E n (1) + a 1 E n (x) + + a m E n (x m ). P. Sam Johnson (NITK) Romberg Integration and Gaussian Quadrature October 17, 014 11 / 19

Thus E n (f ) = 0 for every polynomial of degree m if and only if E n (x i ) = 0 i = 0, 1,..., m. Case : 1 n = 1. Since there are two parameters, w 1 and x 1, we consider requiring E n (1) = 0 E n (x) = 0. This gives 1 dx w 1 = 0 xdx w 1 x 1 = 0. This implies w 1 = and x 1 = 0. Thus the formula becomes which the midpoint rule. f (x) dx = f (0) P. Sam Johnson (NITK) Romberg Integration and Gaussian Quadrature October 17, 014 1 / 19

Case : n =. There are four parameters, w 1, w, x 1 and x, and thus we put four constraints on these parameters [ ] E n (x i ) = x i dx w 1 x1 i + w x i = 0 i = 0, 1,, 3. Thus w 1 + w = w 1 x 1 + w x = 0 w 1 x 1 + w x = /3 w 1 x 3 1 + w x 3 = 0. These equations lead to the unique formula ( 1 ) ( ) 3 3 f (x) dx = f + f 3 3 which has degree of precision three. Note that Simpson s rule users three nodes to attain the same degree of precision. P. Sam Johnson (NITK) Romberg Integration and Gaussian Quadrature October 17, 014 13 / 19

Case : 3 For a general n there are n free parameters there is a formula x 1, x,..., x n, w 1, w,..., w n, f (x) dx = n w j f (x j ) j=1 that uses n nodes and gives a degree of precision of n 1. The equations to be solved are E n (x i ) = 0 i = 0, 1,,..., n 1. These are nonlinear equations, and their solvabiity is not at all obvious. P. Sam Johnson (NITK) Romberg Integration and Gaussian Quadrature October 17, 014 14 / 19

Gauss-Legendre Quadrature This method uses roots (called Gauss points) of Legendre polynomials to locate the points at which the integrand is evaluated. Legendre polynomials Consider the recursive relation with P 0 (x) = 1 and P 1 (x) = x The first five Legendre polynomials are (n + 1)P n+1 (x) = (n + 1)xP n (x) np n (x). P 0 (x) = 1 P 1 (x) = x P (x) = 3x 1 P 3 (x) = 5x 3 3x P 4 (x) = 35x 4 30x + 3 8 P 5 (x) = 63x 5 70x 3 + 15x 8 P. Sam Johnson (NITK) Romberg Integration and Gaussian Quadrature October 17, 014 15 / 19

Example Consider the Legendre polynomial P n (x) of degree n. The roots of P n (x) are denoted by x 1, x,..., x n. The corresponding weights w i (1 i n) are given by w i = n j=1 j i x x j x i x j dx. For instance, we solve P 4 (x) = 35x4 30x +3 8 = 0 which gives the four Gauss nodes ( 15 ± ) 1/ 30 x i = ±. 35 P. Sam Johnson (NITK) Romberg Integration and Gaussian Quadrature October 17, 014 16 / 19

The nodes and weights are extensively tabulated for different values of n. We list below, in the following table, the nodes and weights for Gaussian integration, for values of n upto n = 5. degree n nodes u i weights w i 0.57735069189657 1 0.57735069189657 1 3 0 0.8888888888888888 3 0.774596669414834 0.5555555555555556 3 0.774596669414834 0.5555555555555556 4 0.3399810435848563 0.65145154865461 4 0.3399810435848563 0.65145154865461 4 0.861136311594056 0.3478548451374538 4 0.861136311594056 0.3478548451374538 5 0 0.5688888888888889 5 0.5384693101056831 0.478686704993665 5 0.5384693101056831 0.478686704993665 5 0.9061798459386640 0.36968850561891 5 0.9061798459386640 0.36968850561891 P. Sam Johnson (NITK) Romberg Integration and Gaussian Quadrature October 17, 014 17 / 19

Changing Limits We discussed to evaluate the integral in the form f (x) dx. How to integrate f (x) over any interval of the form [a, b]? The transformation (b a)u x = + a + b changes the limits a and b to and 1 respectively. Hence b a f (x) dx = f ( )( ) x a b b a du. b a The transformation x = u+1 changes the integral 0 x dx into 1 4 (u + 1) du. P. Sam Johnson (NITK) Romberg Integration and Gaussian Quadrature October 17, 014 18 / 19

References Richard L. Burden and J. Douglas Faires, Numerical Analysis Theory ad Applications, Cengage Learning, New Delhi, 005. Kendall E. Atkinson, An Introduction to Numerical Analysis, John Wiley & Sons, Delhi, 1989. S.S. Sastry, Introductory Methods of Numerical Analysis, Fourth Edition, Prentice-Hall, India. P. Sam Johnson (NITK) Romberg Integration and Gaussian Quadrature October 17, 014 19 / 19