Today’s class Romberg integration Gauss quadrature Numerical Methods

Slides:



Advertisements
Similar presentations
Prof. Muhammad Saeed ( Differentiation and Integration )
Advertisements

Arc-length computation and arc-length parameterization
Numerical Integration
1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral.
Computational Methods in Physics PHYS 3437
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
Numerical Integration
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 30 Numerical Integration & Differentiation.
Lecture 3: Integration. Integration of discrete functions
MANE 4240 & CIVL 4240 Introduction to Finite Elements Numerical Integration in 1D Prof. Suvranu De.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 29 Numerical Integration.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 22 Integration of Equations.
Numerical Integration
Chapter 6 Numerical Interpolation
Integration of Equations
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.
CISE301_Topic71 SE301: Numerical Methods Topic 7 Numerical Integration Lecture KFUPM (Term 101) Section 04 Read Chapter 21, Section 1 Read Chapter.
Quadrature Greg Beckham. Quadrature Numerical Integration Goal is to obtain the integral with as few computations of the integrand as possible.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Numerical Differentiation and Integration Part 6 Calculus.
19.5 Numeric Integration and Differentiation
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 21 Newton-Cotes Integration Formula.
Engineering Analysis ENG 3420 Fall 2009
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.
Today’s class Numerical Integration Newton-Cotes Numerical Methods
3. Numerical integration (Numerical quadrature) .
MECN 3500 Inter - Bayamon Lecture Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Lecture 19 - Numerical Integration CVEN 302 July 22, 2002.
Integration Integration: is the total value, or summation, of f(x) dx over the range from a to b:
1 Chapter 7 NUMERICAL INTEGRATION. 2 PRELIMINARIES We use numerical integration when the function f(x) may not be integrable in closed form or even in.
Numerical Differential & Integration. Introduction If a function f(x) is defined as an expression, its derivative or integral is determined using analytical.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Lecture 22 - Exam 2 Review CVEN 302 July 29, 2002.
Review Taylor Series and Error Analysis Roots of Equations
Today’s class Spline Interpolation Quadratic Spline Cubic Spline Fourier Approximation Numerical Methods Lecture 21 Prof. Jinbo Bi CSE, UConn 1.
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.
Today’s class Numerical Differentiation Finite Difference Methods Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 1.
Today’s class Roots of equation Finish up incremental search
Today’s class Numerical differentiation Roots of equation Bracketing methods Numerical Methods, Lecture 4 1 Prof. Jinbo Bi CSE, UConn.
Use of Newton-Cotes Formulas and eventual shortcomings Matlab code to increase number of segments with trapezoid, 1/3 and 3/8 rule.
Techniques for Numerical Integration
Curve Fitting Introduction Least-Squares Regression Linear Regression Polynomial Regression Multiple Linear Regression Today’s class Numerical Methods.
6. Numerical Integration 6.1 Definition of numerical integration. 6.2 Reasons to use numerical integration. 6.3 Formulas of numerical Integration. 6.4.
Today’s class Ordinary Differential Equations Runge-Kutta Methods
The purpose of Chapter 5 is to develop the basic principles of numerical integration Usefule Words integrate, integral 积分(的), integration 积分(法), quadrature.
SE301_Topic 6Al-Amer20051 SE301:Numerical Methods Topic 6 Numerical Integration Dr. Samir Al-Amer Term 053.
Quadrature – Concepts (numerical integration) Don Allen.
Numerical Analysis Lecture 28. Chapter 7 Numerical Differentiation and Integration.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 20 Numerical Integration of Functions.
Chapter 7 Numerical Differentiation and Integration
Chapter 22.
NUMERICAL DIFFERENTIATION AND INTEGRATION
Numerical Analysis Lecture 27.
Chapter 7 Numerical Differentiation and Integration
Today’s class Multiple Variable Linear Regression
Numerical Integration:
Numerical Computation and Optimization
Numerical Integration of Functions
Pengintegralan Numerik (lanjutan) Pertemuan 10
Romberg Rule of Integration
SKTN 2393 Numerical Methods for Nuclear Engineers
Numerical Computation and Optimization
Numerical Integration
Presentation transcript:

Today’s class Romberg integration Gauss quadrature Numerical Methods Lecture 13 Prof. Jinbo Bi CSE, UConn

Numerical Integration Multiple application of the Newton-Cotes Formulas will improve the accuracy of the approximation As you increase the number of segments, you reduce the error However, if you increase the number of segments too much, round-off errors begin to dominate and the error will start to increase Numerical Methods Lecture 13 Prof. Jinbo Bi CSE, UConn

Numerical Integration a=0, b = 0.8 Numerical Methods Lecture 13 Prof. Jinbo Bi CSE, UConn

Romberg integration Richardson’s extrapolation Perform a numerical algorithm using multiple values of a parameter h and then extrapolate that result to the limit h=0 With numerical integration use two estimates of the integral to come up with a third more accurate approximation Numerical Methods Lecture 13 Prof. Jinbo Bi CSE, UConn

Richardson’s Extrapolation The estimated integral is a function of subinterval size. With smaller h, usually I(h), the integral estimate, is more accurate, which means the error caused by choosing this interval size is smaller. If we have two integral esitmates, each one is obtained by using a different segment size, or equivalently different number of segments. We can use estimate the error for each integral estimate using our early analysis. If we are able to estimate this error, we can use this error to update the estimate so the new one is closer to the true integral. However, we cannot estimate this one because we don’t know this item related to second order derivative. So with two e Numerical Methods Lecture 13 Prof. Jinbo Bi CSE, UConn

Richardson’s Extrapolation We’ve used the error calculation to come up with a new estimate It can also be shown that this new estimate is O(h4), whereas trapezoidal rule is only O(h2) In 1978, two researchers show that this new esitmate is much more accuract with an error term in the forth order of the subinterval size. Numerical Methods Lecture 13 Prof. Jinbo Bi CSE, UConn

Richardson’s Extrapolation Special case where you always halve the interval - i.e. h2=h1/2 Numerical Methods Lecture 13 Prof. Jinbo Bi CSE, UConn

Richardson’s Extrapolation Numerical Methods Lecture 13 Prof. Jinbo Bi CSE, UConn

Richardson’s Extrapolation Numerical Methods Lecture 13 Prof. Jinbo Bi CSE, UConn

Romberg Integration Accelerated Trapezoid Rule k: level of integration +1 k: level of integration j: level of accurancy Numerical Methods Lecture 13 Prof. Jinbo Bi CSE, UConn

Romberg Integration Accelerated Trapezoid Rule Numerical Methods Lecture 13 Prof. Jinbo Bi CSE, UConn

Romberg Integration Termination Criteria Trapezoidal method 9 iterations before hitting precision limit (n=256) 511 function evaluations Romberg integration 3 iterations before hitting precision limit 15 function evaluations Numerical Methods Lecture 13 Prof. Jinbo Bi CSE, UConn

Romberg Integration very good convergence properties less susceptible to round-off error than Trapezoidal or Simpson’s rule extra levels of extrapolation require very little computational work Numerical Methods Lecture 13 Prof. Jinbo Bi CSE, UConn

Gauss Quadratures Newton-Cotes Formulas Gauss Quadratures use evenly-spaced functional values Gauss Quadratures select functional values at non-uniformly distributed points to achieve higher accuracy Gauss-Legendre formulas Numerical Methods Lecture 13 Prof. Jinbo Bi CSE, UConn

Gauss Quadratures Trapezoidal Method Numerical Methods Prof. Jinbo Bi Lecture 13 Prof. Jinbo Bi CSE, UConn

Gauss Quadratures Find interior points so that the trapezoidal area outside the curve is equal to the area below the curve and above the trapezoid Numerical Methods Lecture 13 Prof. Jinbo Bi CSE, UConn

Gauss Quadratures Method of Undetermined Coefficients Trapezoidal method should be exact for Numerical Methods Lecture 13 Prof. Jinbo Bi CSE, UConn

Gauss Quadratures Two-Point Gauss Legendre Derivation Find a solution to following equation over range [-1:1] Using similar reasoning as before, solve for the four unknowns using the following equations Numerical Methods Lecture 13 Prof. Jinbo Bi CSE, UConn

Gauss Quadratures This formula gives an integral estimate that is third-order accurate To be usable, the bounds of the definite integral have to be from -1 to 1 It is easy to convert by using a new variable xd Numerical Methods Lecture 13 Prof. Jinbo Bi CSE, UConn

Gauss Quadratures 0.4dxd Numerical Methods Prof. Jinbo Bi Lecture 13 CSE, UConn

Gauss Quadratures Equivalent accuracy to Simpson’s 1/3 rule (O(n3)) Fewer function evaluations Can be extended to higher-point versions Numerical Methods Lecture 13 Prof. Jinbo Bi CSE, UConn

Gauss Quadratures Numerical Methods Prof. Jinbo Bi Lecture 13 CSE, UConn

Gauss Quadratures on [-1, 1] Numerical Methods Lecture 13 Prof. Jinbo Bi CSE, UConn

Gauss Quadratures on [-1, 1] Numerical Methods Lecture 13 Prof. Jinbo Bi CSE, UConn

Example: Gauss Quadratures Numerical Methods Lecture 13 Prof. Jinbo Bi CSE, UConn

Gauss Quadratures High accuracy with few function evaluations Error is proportional to the (2n+2)th derivative Function must be known - not appropriate for tabular data Numerical Methods Lecture 13 Prof. Jinbo Bi CSE, UConn

Improper integrals How do you handle integrals where one of the bounds of the integral is ±∞? Do a translation of the bounds into a proper integral Works as long as a is -∞ and b is negative or a is positive and b is ∞. The function f(x) must also asymptotically approach zero at least as fast as 1/x2 Numerical Methods Lecture 13 Prof. Jinbo Bi CSE, UConn

Improper integrals Example: Normal distribution Split the integral at a point where the function starts to approach zero faster than 1/x2 Numerical Methods Lecture 13 Prof. Jinbo Bi CSE, UConn

Summary Integration Techniques Gaussian Quadrature Improper integrals Trapezoidal Rule : Linear Simpson’s 1/3-Rule : Quadratic Simpson’s 3/8-Rule : Cubic Improvement techniques Multiple application or composite methods Romberg integration Gaussian Quadrature Improper integrals Numerical Methods Lecture 13 Prof. Jinbo Bi CSE, UConn

Next class Numerical Differentiation Read Chapter 23 Numerical Methods Lecture 13 Prof. Jinbo Bi CSE, UConn