Revisiting Numerical Integration: Getting More from Fewer Points Asilomar - December 2007 Bruce Cohen Lowell High School, SFUSD

Slides:



Advertisements
Similar presentations
1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral.
Advertisements

Computational Methods in Physics PHYS 3437
Stick Tossing and Confidence Intervals Asilomar - December 2006 Bruce Cohen Lowell High School, SFUSD
Mathematics1 Mathematics 1 Applied Informatics Štefan BEREŽNÝ.
Simultaneous Linear Equations
Section 5.7 Numerical Integration. Approximations for integrals: Riemann Sums, Trapezoidal Rule, Simpson's Rule Riemann Sum: Trapezoidal Rule: Simpson’s.
Asymptotic error expansion Example 1: Numerical differentiation –Truncation error via Taylor expansion.
Numerical Integration of Functions
NUMERICAL DIFFERENTIATION AND INTEGRATION
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
Chapter 7 Numerical Differentiation and Integration
Today’s class Romberg integration Gauss quadrature Numerical Methods
Lecture 18 - Numerical Differentiation
Numerical Integration
Lecture 3: Integration. Integration of discrete functions
Numerical Integration
8 TECHNIQUES OF INTEGRATION. There are two situations in which it is impossible to find the exact value of a definite integral. TECHNIQUES OF INTEGRATION.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM.
CISE301_Topic7KFUPM1 SE301: Numerical Methods Topic 7 Numerical Integration Lecture KFUPM Read Chapter 21, Section 1 Read Chapter 22, Sections 2-3.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Numerical Differentiation and Integration Part 6 Calculus.
Major: All Engineering Majors Author(s): Autar Kaw
Numerical Integration Methods
Chapter 4 Numerical Differentiation and Integration 1/16 Given x 0, approximate f ’(x 0 ). h xfhxf xf h )()( lim)('    x0x0 x1x1 h x1x1 x0x0.
1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral.
3. Numerical integration (Numerical quadrature) .
Lecture 19 - Numerical Integration CVEN 302 July 22, 2002.
Numerical Computation
Chapters 5 and 6: Numerical Integration
Geometry, Trigonometry, Algebra, and Complex Numbers Palm Springs - November 2004 Dedicated to David Cohen (1942 – 2002) Bruce Cohen Lowell High School,
Lecture 2 Number Representation and accuracy
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
CISE301_Topic11 CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4:
EE 3561_Unit_1(c)Al-Dhaifallah EE 3561 : - Computational Methods in Electrical Engineering Unit 1: Introduction to Computational Methods and Taylor.
Review Taylor Series and Error Analysis Roots of Equations
Integration Copyright © Cengage Learning. All rights reserved.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Numerical Differentiation and Integration ~ Integration.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 22.
5. Integration 2.Quadrature as Box Counting 3.Algorithm: Trapezoid Rule 4.Algorithm: Simpson’s Rule 5.Integration Error 6.Algorithm: Gaussian Quadrature.
Chap. 11 Numerical Differentiation and Integration
Meeting 15 Introduction to Numerical Methods Error Analysis.
Use of Newton-Cotes Formulas and eventual shortcomings Matlab code to increase number of segments with trapezoid, 1/3 and 3/8 rule.
4-6Trapezoidal Rule: A Mathematics Academy Production.
Techniques for Numerical Integration
The purpose of Chapter 5 is to develop the basic principles of numerical integration Usefule Words integrate, integral 积分(的), integration 积分(法), quadrature.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 5 Integration and Differentiation.
Chapters 5 and 6: Numerical Integration Code development trapezoid rule Simpson’s rule Gauss quadrature Laguerre quadrature Analysis changing the variable.
SE301_Topic 6Al-Amer20051 SE301:Numerical Methods Topic 6 Numerical Integration Dr. Samir Al-Amer Term 053.
Autar Kaw Benjamin Rigsby Transforming Numerical Methods Education for STEM Undergraduates.
Quadrature – Concepts (numerical integration) Don Allen.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 20 Numerical Integration of Functions.
Numerical Integration Methods
NUMERICAL DIFFERENTIATION Forward Difference Formula
Trapezoid Method and Iteration & Acceleration
Gaussian Elimination.
Chapter 22.
NUMERICAL DIFFERENTIATION AND INTEGRATION
Class Notes 18: Numerical Methods (1/2)
Chapter 23.
Numerical Analysis Lecture 45.
Chapter 7 Numerical Differentiation and Integration
Numerical differentiation
Numerical Integration:
Copyright © Cengage Learning. All rights reserved.
MATH 174: NUMERICAL ANALYSIS I
Numerical Integration of Functions
Numerical Integration Methods
SKTN 2393 Numerical Methods for Nuclear Engineers
Numerical Integration
Objectives Approximate a definite integral using the Trapezoidal Rule.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Presentation transcript:

Revisiting Numerical Integration: Getting More from Fewer Points Asilomar - December 2007 Bruce Cohen Lowell High School, SFUSD David Sklar San Francisco State University Ver. 3.00

Romberg Integration The method arises from a technique called Richardson extrapolation which can be used whenever the error E(h) can be expanded in a series of the form We’ll illustrate Richardson’s technique by applying it to the trapezoidal rule. In fact we can show that if f can be expanded in a Taylor series on each subinterval then E can be expanded in a series of the form

Romberg Integration To implement the method we don’t need to know the coefficients, we need only know that they exist. Assume that we have computed trapezoidal estimates for I for h, h/2, h/4, h/8, so we have Just looking at the first two we have Which we can rewrite as We can eliminate the h 2 term by multiplying the second by 2 2 and subtracting the first giving

Romberg Integration The last equation is equivalent to Which is in the form T 2 (h) is an estimate for I with an error that is O(h 4 )

Romberg Integration We can repeat the process beginning with And get a new estimate with Continuing in this way we get a sequence of estimates for the integral I Where for each estimate we have

Romberg Integration -- An example To see how Romberg integration works we organize our estimates into an array as follows The accuracy increases as we move down and as we move to the right Next we perform Romberg integration for a familiar example. We place our trapezoidal estimates in the first column. The first estimate corresponds to a partition of [1, 3] into 4 subintervals, an h value of ½. Accuracy improves as we move down the column

Romberg Integration -- An example We can improve our Romberg result if we start with more precise (though quite inaccurate) trapezoidal estimates in the first column. The averaging method used to get the more accurate estimates involves the subtraction of nearly equal numbers which can lead to precision loss as the computation progresses. The distinction between precision and accuracy in computation is important in practical numerical analysis Note: The correct value to 12 significant digits is

Gaussian Quadrature

In Gaussian quadrature the approximation to the integral is also a weighted sum of function values. The evaluation points (which are not equally spaced ) and weights are chosen to provide a very efficient estimate. One way to implement Gaussian quadrature is to first transform the integral to an integral from –1 to 1, and then, for appropriate numbers of points n, get the gauss points and weights from the table. For our example we have

Bibliography 2. R. Burden, J. Faires, Numerical Analysis, 7 th Edition, Brooks/Cole, R Development Core Team, R: A language and environment for statistical computing, R Foundation for Statistical Computing, Vienna, Austria, 2006, 1. M. Abramowitz, I. Stegun, Handbook of Mathematical Functions, Dover, New York, F. B. Hildebrand, Introduction to Numerical Analysis, McGraw-Hill, New York, L. F. Richardson and J. L. Gaunt, The deferred approach to the limit, Philosophical Transactions of the Royal Society of London 226A, W. Romberg, W. (1955), "Vereinfachte numerische Integration", Norske Videnskabers Selskab Forhandlinger (Trondheim) 28 (7), 1955