The purpose of Chapter 5 is to develop the basic principles of numerical integration Usefule Words integrate, integral 积分(的), integration 积分(法), quadrature.

Slides:



Advertisements
Similar presentations
Numerical Integration
Advertisements

1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral.
Computational Methods in Physics PHYS 3437
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
Chapter 7 Numerical Differentiation and Integration
Today’s class Romberg integration Gauss quadrature Numerical Methods
Lecture 18 - Numerical Differentiation
Numerical Integration
Quadrature. 二阶 : 中点公式 : 梯形公式 : 四阶公式 : Simpson’s 1/3 rd Rule.
Lecture 3: Integration. Integration of discrete functions
MANE 4240 & CIVL 4240 Introduction to Finite Elements Numerical Integration in 1D Prof. Suvranu De.
CHAPTER 4 THE DEFINITE INTEGRAL.
Numerical Integration
2010/3/11 計算機在工程上的應用 Page 1 Gaussian quadrature Advisor: J. T. Chen Reporter: Jia-Wei Lee Date: Mar., 11, 2010.
NUMERICAL DIFFERENTIATION The derivative of f (x) at x 0 is: An approximation to this is: for small values of h. Forward Difference Formula.
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
Chapter 4, Integration of Functions. Open and Closed Formulas x 1 =a x 2 x 3 x 4 x 5 =b Closed formula uses end points, e.g., Open formulas - use interior.
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.
Automatic Integration
3. Numerical integration (Numerical quadrature) .
Lecture 19 - Numerical Integration CVEN 302 July 22, 2002.
Techniques of Integration
Numerical Computation
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.
1 Numerical Analysis Lecture 12 Numerical Integration Dr. Nader Okasha.
Numerical Differential & Integration. Introduction If a function f(x) is defined as an expression, its derivative or integral is determined using analytical.
Chapters 5 and 6: Numerical Integration
Interpolation. Interpolation is important concept in numerical analysis. Quite often functions may not be available explicitly but only the values of.
MA2213 Lecture 4 Numerical Integration. Introduction Definition is the limit of Riemann sums I(f)
Homework questions thus far??? Section 4.10? 5.1? 5.2?
EE3561_Unit 7Al-Dhaifallah EE 3561 : Computational Methods Unit 7 Numerical Integration Dr. Mujahed AlDhaifallah ( Term 342)
6. Introduction to Spectral method. Finite difference method – approximate a function locally using lower order interpolating polynomials. Spectral method.
Chapter 5-The Integral Calculus, 2ed, by Blank & Krantz, Copyright 2011 by John Wiley & Sons, Inc, All Rights Reserved.
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
Chapter The concept of definite integral. New Words Integrand 被积表达式 Integral sum 积分和 definite integral 定积分 Curvilinear trapezoid 曲边梯形 Variable of.
Techniques for Numerical Integration
6. Numerical Integration 6.1 Definition of numerical integration. 6.2 Reasons to use numerical integration. 6.3 Formulas of numerical Integration. 6.4.
1/7  4.6 Adaptive Quadrature Methods Chapter 4 Numerical Differentiation and Integration -- Adaptive Quadrature Methods   /2  /4  /8 Predict the.
:10-12:00Brief Introduction to Calculus1 Mechanics Math Prerequisites(I) Calculus ( 微积分 )
This chapter is concerned with the problem in the form Chapter 6 focuses on how to find the numerical solutions of the given initial-value problems. Main.
SE301_Topic 6Al-Amer20051 SE301:Numerical Methods Topic 6 Numerical Integration Dr. Samir Al-Amer Term 053.
Runge Kutta schemes Taylor series method Numeric solutions of ordinary differential equations.
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.
Keywords (ordinary/partial) differencial equation ( 常 / 偏 ) 微分方程 difference equation 差分方程 initial-value problem 初值问题 convex 凸的 concave 凹的 perturbed problem.
Chapter 4, Integration of Functions
NUMERICAL DIFFERENTIATION Forward Difference Formula
Numerical Analysis Lecture 42.
Chapter 7 Numerical Differentiation and Integration
4.3 Elements of Numerical Integration
Numerical Integration:
Elements of Numerical Integration
5.3 Higher-Order Taylor Methods
SKTN 2393 Numerical Methods for Nuclear Engineers
Numerical Integration
Numerical Computation and Optimization
Numerical Integration
Chapter 4, Integration of Functions
Elements of Numerical Integration
Presentation transcript:

The purpose of Chapter 5 is to develop the basic principles of numerical integration Usefule Words integrate, integral 积分(的), integration 积分(法), quadrature 求积分, integrand 被积函数 definite integral 定积分, indefinite integral 不定积分, trapezoidal 梯形(的), composite trapezoidal quadrature 复合求积公式 algebraic accuracy 代数精度

The solution can not be found directly. A Real Problem Find the length of the curve from to.

Definition Suppose that. A formula with the property that is called a numerical integration or a quadrature formula. This definition implies that a quadrature formula is dependent on the choice of and. Question arises: (1) How to choose and ? (2) How to evaluate a quadrature formula? 5.1 Introduction to quadrature

Degree of Precision ( accuracy of formula) Definition The degree of precision of a quadratrue formula is a positive integer such that for all polynomials of degree but for some polynomials of degree. If the degree of precision of a quadratrue formula is n, then (1) The formula produces exact results for all with. (2) The error term is of the form where k is a suitable constant and c is dependent on x. Example Prove that the degree of precision of the formula is only one. Example Find constants and so that the formula has the highest possible degree of precision. Determine the the degree n. (See Ex. 5.4 (P209))

Suppose that and are in [a,b], and and Two useful theorems Weighted Mean value Theorem for Integrals Suppose the Riemann integral of g exists on [a,b], and g(x) does not change sign on [a,b]. Then there exists a number c in (a,b) with are positive constants. Then a number exists between and with Derivation of Quadrature formulas

Let are M+1 equidistant nodes on the interval and is the Mth Lagrange interpolating polynomial for. with truncation error M=1 Trapezoidal Rule M=2 Simpson’s rule That is Then See Th.5.1 and Cor.5.1, page 204 (Newton--Cotes formulas)

M=1 Trapezoidal Rule

M=2 Simpson’s rule Integrating P 2 (x) on [x 0, x 2 ] directly provides only an error term involving f (3). By approaching the problem in another way, a higher-order term involving f ( 4) can be derived. Expand f(x) about x 1 in the third Taylor polynomial.

Integrating f(x) on [x 0, x 2 ] gives Then(Simpson’s rule) Differentiating f(x) and evaluating f(x 0 ) give the forward-difference formula Interpolating f(x) with nodes x 0 and x 1 Expand f(x) in the 3rd Taylor polynomial about x 1, evaluate f(x 0 ) and f(x 2 ), and then add them. and

Example Use quadrature formulas (5.4) to (5.7) to approximate the integral Solution Let The result of using the trapezoidal rule with h=1 is Using Simpson’s rule with h=1/2, we have For Simpson’s 3/8 rule with h=1/3, we obtain The result of using the Boole’s rule with h=1/4 is

Composite Quadratrue Formulas

5.2 Composite Trapezoidal and Simpson’s Rule Then the composite trapezoidal rule is expressed as follows: Then the composite Simpson’s rule is expressed as follows:

Example2 Approximate using the given entries. a.Use the Composite Trapezoidal rule. b.Use the Composite Simpson’s rule / / / / / / / f(x)=sinx/xx Solution

Example3 Determine the values M and h such that the truncation error E s (f, h) is less than when the composite Simpson’s rule is used to approximate Solution Let The first four derivatives of f are According to we have So h In consideration of M being a positive integer, the result is M= 113 and h=1/2M.

5.3 Recursive Rules and Romberg Integration Recursive Quadrature Rules Recursive Trapezoidal Rules LetThen,

Example1 Approximate using ln 5≈

Recursive Simpson Rules Recursive Boole Rules Richardson’s Improvement

Example1 Approximate using ln 5≈ The results are as follows: kT(J)S(J)B(J)

Example then If Subtract (2) from 4×(1) (i.e 4(1)-2): Thus, Recursive Simpson Rule That is, Similarly, if we obtain Recursive Boole Rule (Richardson’s Improvement)

for all Theorem Ifthen Define Theorem Then and First improvement Second improvement Third improvement

Give preliminary approximations using the Composite Trapezoidal rule firstly and then improve them by Richardson’s extrapolation process Richardson’s Improvement Suppose that. (1) Then That is Subtract (2) from 4×(1). Then K=1 K=2 K=3

Romberg Integration Tabuleau

Example2 Approximate using Romberg integration R(J,0)R(J,1)R(J,2)R(J,3) Solution We use J=3. The Romberg table is given as follows: Where and ln 5≈

Example2 Approximate using R(5,5). Solution Compute R(J,k) where J=0,1,2,3,4,5 and k=0,1,2,3,4,5. The results are listed in the following table JR(J,0)R(J,1)R(J,2)R(J,3)R(J,4)R(J,5) Therefore,

5.4 Gauss-Legendre Integration Gaussian quadrature choose the points for evaluation in an optimal, rather than equally spaced way. Definition Choose the parameters of the quadrature formula properly such that it is likely of degree of precision 2N-1. This formula is called Gaussian formula.

Gaussian nodes is likely of degree of precision 2N-1.

are the zeros of the Nth Legendre polynomial. Theorem Suppose that are the roots of the Nth Legendre polynomial. For each, the numbers are defined by If is any polynomial of degree less than 2N, then

has the degree of precision 1. Midpoint Rule two-point Gaussian formula Three-point Gaussian formula has the degree of precision 3.

Truncation errors for Gaussian formulas Example LetWe have For See Table 5.8, P240 Let We have Change of variables

Example Approximate the integral using Gaussian quadrature with n=2 and n=3.