4.3 Elements of Numerical Integration

Slides:



Advertisements
Similar presentations
Numerical Integration
Advertisements

PROGRAM 8 consider a function y = f(x). In order to evaluate definite integral I = a ∫ b y dx = a ∫ b f(x) dx Divide the interval (b-a) of x into n equal.
1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral.
Mathematics1 Mathematics 1 Applied Informatics Štefan BEREŽNÝ.
Section 5.7 Numerical Integration. Approximations for integrals: Riemann Sums, Trapezoidal Rule, Simpson's Rule Riemann Sum: Trapezoidal Rule: Simpson’s.
Chapter 7 Numerical Differentiation and Integration
Numerical Integration
Newton-Cotes Integration Formula
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.
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.
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.
Integrals 5.
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 NUMERICAL INTEGRATION Motivation: Most such integrals cannot be evaluated explicitly. Many others it is often faster to integrate them numerically rather.
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
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.
4.6 Numerical Integration -Trapezoidal Rule -Simpson’s Rule
Introduction to Numerical Analysis I
Chapters 5 and 6: Numerical Integration
4.6 Numerical Integration Trapezoid and Simpson’s Rules.
4.6 Numerical Integration. The Trapezoidal Rule One method to approximate a definite integral is to use n trapezoids.
1 Numerical Integration Section Why Numerical Integration? Let’s say we want to evaluate the following definite integral:
MA2213 Lecture 4 Numerical Integration. Introduction Definition is the limit of Riemann sums I(f)
Integration Copyright © Cengage Learning. All rights reserved.
Section 5.9 Approximate Integration Practice HW from Stewart Textbook (not to hand in) p. 421 # 3 – 15 odd.
Chap. 11 Numerical Differentiation and 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.
The purpose of Chapter 5 is to develop the basic principles of numerical integration Usefule Words integrate, integral 积分(的), integration 积分(法), quadrature.
Fourier Approximation Related Matters Concerning Fourier Series.
Sec 21: Generalizations of the Euler Method Consider a differential equation n = 10 estimate x = 0.5 n = 10 estimate x =50 Initial Value Problem Euler.
SE301_Topic 6Al-Amer20051 SE301:Numerical Methods Topic 6 Numerical Integration Dr. Samir Al-Amer Term 053.
Copyright © Cengage Learning. All rights reserved. 7 Techniques of Integration.
Quadrature – Concepts (numerical integration) Don Allen.
Numerical Integration
Air Force Admin College, Coimbatore
NUMERICAL DIFFERENTIATION Forward Difference Formula
Part 6 - Chapter 21.
Numerical Analysis Lecture 42.
1. 2 What is Integration? Integration The process of measuring the area under a curve. Where: f(x) is the integrand a= lower limit of integration b=
4.4 The Fundamental Theorem of Calculus
Numerical Integration Formulas
Integration & Area Under a Curve
Calculus for ENGR2130 Lesson 2 Anti-Derivative or Integration
Chapter 7 Numerical Differentiation and Integration
NUMERICAL INTEGRATION
Copyright © Cengage Learning. All rights reserved.
Composite Numerical Integration
Elements of Numerical Integration
POLYNOMIAL INTERPOLATION
Numerical Analysis Lecture 26.
Elements of Numerical Integration
Summation Formulas Constant Series.
Copyright © Cengage Learning. All rights reserved.
5.3 Higher-Order Taylor Methods
SKTN 2393 Numerical Methods for Nuclear Engineers
Numerical Integration
Numerical Computation and Optimization
Objectives Approximate a definite integral using the Trapezoidal Rule.
Numerical Integration
Air Force Admin College, Coimbatore
Elements of Numerical Integration
Presentation transcript:

4.3 Elements of Numerical Integration The need often arises for evaluating the definite integral of a function that has no explicit antiderivative or whose antiderivative is not easy to obtain. The basic method involved in approximating is called numerical quadrature. It uses a sum to approximate .

Basic Idea We first select a set of distinct nodes from the interval . Then we integrate the Lagrange interpolating polynomial and its truncation error term over to obtain The quadrature formula is, therefore, with error given by

Before discussing the general situation of quadrature formulas, let us consider formulas produced by using first and second Lagrange polynomials with equally spaced nodes. This gives the Trapezoidal rule and Simpson’s rule, which are commonly introduced in calculus courses.

the Trapezoidal rule To derive the Trapezoidal rule for approximating let and use the linear Lagrange polynomial then, Apply theWeighted Mean Value Theorem for Integrals to the error term

the Trapezoidal rule Thus, we have Since the error term for the Trapezoidral rule involves , the rule gives the exact result when applied to any function whose second derivative is identically zero, that is, any polynomial of degree one or less.

Simpson’s rule Simpson’s rule results from integrating over the second Lagrange polynomial with nodes and ,where . Therefore, .

Simpson’s rule Simpson’s Rule: Since the error term involves the fourth derivative of , Simpson’s rule gives exact results when applied to any polynomial of degree three or less.

Degree of accuracy Definition 4.1 The degree of accuracy, or precision, of a quadrature formula is the largest positive integer n such that the formula is exact for Definition 4.1 implies that Trapezoidal and Simpson’s rules have degree of precision one and three, respectively.

Example 1 The quadrature formula is exact for all polynomials of degree less than or equal to 2. Determine the constants A,B,C. Solution. Let f(x)=1,x,x2 ,we obtain a system of linear equations Thus,

Example 2 Find the constants A-1, A0 ,A1 so that the quadrature formula has the highest possible degree of precision and find its degree of precision 。 解:令求积公式对f(x)=1, x, x2准确成立,则有

Example 2 Find the constants A-1, A0 ,A1 so that the quadrature formula has the highest possible degree of precision and find its degree of precision 。 解之得 其代数精度至少为2,将f(x)=x3代入求积公式两端相等,而将将f(x)=x4代入求积公式两端不相等,所以其代数精度为3次 .

Closed Newton-Cotes formula The Trapezoidal and Simpson’s rules are examples of a class of methods known as Newton-Cotes formulas. There are tow types of Newton-Cotes formulas, open and closed. The (n+1)-point closed Newton-Cotes formula uses nodes where and It is called closed because the endpoints of the closed interval [a,b] are included as nodes.

Theorem 4.2 For the (n+1)-point closed Newton-Cotes formula

Open Newton-Cotes formula The open Newton-Cotes formulas used nodes where This implies that so we label the endpoints by setting Open formulas contain all the nodes used for the approximation within the open interval (a,b). The formulas become n=0: Midpoint rule