Numerical Methods I: Numerical Integration/Quadrature

Similar documents
Numerical Methods I: Polynomial Interpolation

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

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

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

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

Numerical Integra/on

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

Numerical Methods I: Interpolation (cont ed)

Jim Lambers MAT 460/560 Fall Semester Practice Final Exam

Romberg Integration and Gaussian Quadrature

Ch. 03 Numerical Quadrature. Andrea Mignone Physics Department, University of Torino AA

Section 6.6 Gaussian Quadrature

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

Contents. I Basic Methods 13

8.3 Numerical Quadrature, Continued

Scientific Computing: Numerical Integration

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

Numerical Integration of Functions

Preface. 2 Linear Equations and Eigenvalue Problem 22

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

Chapter 4: Interpolation and Approximation. October 28, 2005

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

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

Numerical Methods I: Eigenvalues and eigenvectors

Numerical Integra/on

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

Index. for Ɣ(a, z), 39. convergent asymptotic representation, 46 converging factor, 40 exponentially improved, 39

Instructions for Matlab Routines

Function Approximation

Mathematics for Engineers. Numerical mathematics

April 15 Math 2335 sec 001 Spring 2014

Simpson s 1/3 Rule Simpson s 1/3 rule assumes 3 equispaced data/interpolation/integration points

Infinite Series. 1 Introduction. 2 General discussion on convergence

Simultaneous Gaussian quadrature for Angelesco systems

Numerical Methods I Orthogonal Polynomials

Scientific Computing: An Introductory Survey

MATHEMATICAL FORMULAS AND INTEGRALS

In manycomputationaleconomicapplications, one must compute thede nite n

Numerical Mathematics

NUMERICAL METHODS USING MATLAB

Stat 451 Lecture Notes Numerical Integration

Interpolation. Chapter Interpolation. 7.2 Existence, Uniqueness and conditioning

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

Outline. 1 Interpolation. 2 Polynomial Interpolation. 3 Piecewise Polynomial Interpolation

Principles of Scientific Computing Local Analysis

COURSE Numerical integration of functions

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

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

2tdt 1 y = t2 + C y = which implies C = 1 and the solution is y = 1

Lecture 4: Numerical solution of ordinary differential equations

Scientific Computing

Chapter 5: Numerical Integration and Differentiation

Computational methods of elementary particle physics

Numerical Analysis Preliminary Exam 10 am to 1 pm, August 20, 2018

MATHEMATICAL FORMULAS AND INTEGRALS

Extrapolation in Numerical Integration. Romberg Integration

Answers to Homework 9: Numerical Integration

Numerical Analysis: Interpolation Part 1

Vectors in Function Spaces

LECTURE 14 NUMERICAL INTEGRATION. Find

Differentiation and Integration

Anna D Aloise May 2, 2017 INTD 302: Final Project. Demonstrate an Understanding of the Fundamental Concepts of Calculus

We consider the problem of finding a polynomial that interpolates a given set of values:

M.SC. PHYSICS - II YEAR

GAUSS-LAGUERRE AND GAUSS-HERMITE QUADRATURE ON 64, 96 AND 128 NODES

Introductory Numerical Analysis

APPM/MATH Problem Set 6 Solutions

Introduction. Chapter One

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

Fundamentals of Numerical Mathematics. Charles University Prague Faculty of Mathematics and Physics Czech Republic

1 Math 241A-B Homework Problem List for F2015 and W2016

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

Applied Numerical Analysis (AE2220-I) R. Klees and R.P. Dwight

MA2501 Numerical Methods Spring 2015

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

(Infinite) Series Series a n = a 1 + a 2 + a a n +...

Extrapolation Methods for Approximating Arc Length and Surface Area

NUMERICAL INTEGRATION. By : Dewi Rachmatin

Chapter 5 - Quadrature

Multistage Methods I: Runge-Kutta Methods

Applied Numerical Analysis

Numerical Solutions to Partial Differential Equations

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

Adomian Decomposition Method with Laguerre Polynomials for Solving Ordinary Differential Equation

Taylor and Maclaurin Series

MA 3021: Numerical Analysis I Numerical Differentiation and Integration

Time-Dependent Statistical Mechanics A1. The Fourier transform

Numerische Mathematik

Engg. Math. II (Unit-IV) Numerical Analysis

Generalised Summation-by-Parts Operators and Variable Coefficients

University of Houston, Department of Mathematics Numerical Analysis, Fall 2005

MAT 128A - Practice Midterm Exam

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

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

Section Taylor and Maclaurin Series

Gaussian interval quadrature rule for exponential weights

A note on accurate and efficient higher order Galerkin time stepping schemes for the nonstationary Stokes equations

Gauss Hermite interval quadrature rule

MATHEMATICAL METHODS AND APPLIED COMPUTING

Finite-dimensional spaces. C n is the space of n-tuples x = (x 1,..., x n ) of complex numbers. It is a Hilbert space with the inner product

Transcription:

1/20 Numerical Methods I: Numerical Integration/Quadrature Georg Stadler Courant Institute, NYU stadler@cims.nyu.edu November 30, 2017

umerical integration 2/20 We want to approximate the definite integral I(f) =I b a(f) = Z b a f(t) dt numerically. Properties of the Riemann integral: I I is linear I positive, i.e., if f is nonnegative, then I(f) is nonnegative. I additive w.r. to the interval bounds: Ia c = Ia b + Ib c

Conditioning 3/20 Lets study the map ([a, b],f)! Z b a f(t) dt, where we use the L 1 -norm for f. The absolute and relative condition numbers of integration are: apple abs =1, apple rel = I( f ) I(f). So, integration is harmless w.r. to the absolute condition number, and problematic w.r. to the relative condition number if I(f) is small and f changes sign.

umerical integration 4/20 We are looking for a map ( C([a, b]) Î : f! R 7! Î(f) such that I(f) Î(f) is small. Example: Trapezoidal rule. General quadrature formula: Î(f) = nx i=0 if(t i ), with weights i and nodal points t i, i =0, 1,...,n.

Newton-Cotes formulas 5/20 Replace f by easy-to-integrate approximation ˆf, andset Î(f) :=I( ˆf). Given fixed nodes t 0,...,t n, use polynomial approximation ˆf = P (f t 0,...,t n )= nx f(t i )L in (t) i=0 Thus: Î(f) =(b a) where in = 1 R b b a a L in(t) dt nx i=0 inf(t i ),

Newton-Cotes formulas Theorem: For (n + 1) pairwise distinct points, there exists exactly one quadrature formula that is exact for all p 2 P n. Uniformly spaced points: in = 1 Z b Y t b a a t i i6=j t i t j dt = 1 n These weights are independent of a and b. Z n 0 Y s i i6=j Table 9.1. Newton-Cotes weights Ain for n = 1,...,4. n AOn,..., Ann Error Name 1 1 1 1" (,) Trapezoidal rule "2 "2 2 3 j j ds 1 4 1 Simpson's rule, Kepler's barrel rule (; (; (; 1 3 3 1 3:0 5 f(4)(,) Newton's 3/8-rule 8 8 8 8 4 7 32 12 32 7 f(6)(,) Milne's rule 90 90 90 90 90 Weights are positive up to order 7, then some become negative. 6/20

Newton-Cotes formulas 7/20 Proof of error terms is based on I a variant of the mean value theorem for integrals I the Newton remainder form from interpolation, e.g., for linear interpolation f(t) P (t) =[t, a, b]f (t a)(t b) = f 00 ( ) (t a)(t b). 2 For piece-wise polynomial approximations (e.g., the trapezoidal rule), analogous estimates as shown in the table hold.

Gauss-Christo el quadrature Now, let s allow the nodes t 0,...,t n to vary. Thebestwecan hope for is exact interpolation up to polynomials of degree 2n +1 (based on a non-rigorous counting argument). Also, for generalization, we consider quadrature of weighted integrals, with a positive weight function!(t): I(f) = Z b a!(t)f(t) dt with weight funcations!(t) =1,!(t) =1/ p 1 t 2,... 8/20

Gauss-Christo el quadrature 9/20 Theorem: If Î is exact for polynomials p 2 P 2n+1 (for!-weighted integration), then P j+1 (t) =(t 0j )... (t jj ) 2 P n+1 are orthogonal with respect to the scalar product induced by!(t).

Gauss-Christo el quadrature 10 / 20 Thus: I one must choose the roots of the orthogonal polynomials (which are single roots) I the weights are uniquely determined and yield exact integration for polynomials up to degree n...but: Theorem: Let 0n,..., nn be the roots of the (n + 1)st orthogonal polynomial for the weight!. ThenanyquadratureformulaÎ is exact for polynomials up to order n if and only if it is exact up to order 2n +1.

Gauss-Christo el quadrature 11 / 20

Gauss-Christo el quadrature 12 / 20 w(t) Interval I = [a, b] Orthogonal polynomials 1 [-1,1] Chebyshev polynomials Tn v'1-t2 e-t [0,00] Laguerre polynomials Ln e- t2 [-00,00] Hermite polynomials Hn 1 [-1,1] Legendre polynomials Pn Corresponding quadrature rules are usually prefixed with Gauss-, i.e., Gauss-Legendre quadrature, or Gauss-Chebyshev quadrature.

Gauss-Legendre points/weights for interval [ 1, 1] 13 / 20

Gauss points in 2D 14 / 20 Tensor-product Gauss points. Weights are products of 1D-weights.

15 / 20 umerical integration I Accuracy in Gauss-(Chebyshev, Laguerre, Hermite, Legendre,... ) can only be improved by increasing number of points I Of particular interest are quadrature points for infinite intervals (Laguerre, Hermite) I Interval partitioning superior, but only possible for! 1 (Gauss-Legendre or Gauss-Lobatto) 3 4 0 1 2 2D-Gauss-Lobatto integration points (also used as interpolation points).

Integration on [0, 1] (Laguerre) How to approximate Z 1 g(t) dt, 0 where g decays rapidly enough such that the integral is finite? Laguerre integration assumes integration weighted with e t... 16 / 20

Interval partitioning Split interval [a, b] into subintervals of size h =(b a)/n. Basic trapezoidal sum: T (h) =T n = h 1 2 (f(a)! n 1 f(b)) + X f(a + ih) i=1 We can now think of what happens as h! 0 (i.e., more subintervals). Theorem: For f 2 C 2m+1 holds: T (h) Z b a f(t) dt = 2 h 2 + 4 h 4 +...+ R 2m+2 (h)h 2m+2, which coe cients i that depend on the derivatives of f at a and b, and on the Bernoulli numbers B 2k and R 2m+2 (h) is a remainder term that involves f (2m). 17 / 20

Interval partitioning 18 / 20 Extrapolation: lim T (h) := lim T n = I(f) h!0 n!1 Extrapolation uses h 1,...,h n to estimate the limit. I One can estimate the order gained by extrapolation theoretically (Thm. 9.22 in Deuflhard/Hohmann). I Existence of an asymptotic expansion with a certain order h p (p 1) can be used to improve the extrapolation. I Extrapolation ideas with Trapezoidal rule leads to Romberg quadrature.

19 / 20 Numerical integration Adaptive interval partitioning Idea: On each sub-interval, estimate the quadrature error by either: I Using a higher-order quadrature (e.g., Simpson rule), or I Comparing the error on a subinterval with the error on a refinement Then, subdivide the interval depending on the error estimation, and repeat. Main challenge: Derive an error estimator that estimates the true error in the following way: c 1 apple apple c 2 with c 1 apple 1 apple c 2.Thismethodusesana posteriori estimate of the error.

umerical integration 20 / 20 Di cult cases for quadrature: I (Unknown) discontinuities in f: adaptive quadrature continues to refine, which can be used to localize discontinuities I Highly oscillating integrals I (Weakly) singular integrals (as required, e.g., in integral methods (the fast multipole method)