Simpson Rule For Integration.

Slides:



Advertisements
Similar presentations
“Teach A Level Maths” Vol. 1: AS Core Modules
Advertisements

Numerical Integration
ES 240: Scientific and Engineering Computation. Chapter 17: Numerical IntegrationIntegration  Definition –Total area within a region –In mathematical.
TECHNIQUES OF INTEGRATION
Integrals 5.
Simultaneous Linear Equations
Chapter 7 Numerical Differentiation and Integration
Chapter 18 Interpolation The Islamic University of Gaza
1 Chapter 4 Interpolation and Approximation Lagrange Interpolation The basic interpolation problem can be posed in one of two ways: The basic interpolation.
LOGO 1 MATH 2040 Introduction to Mathematical Finance Instructor: Dr. Ken Tsang.
Newton-Cotes Integration Formula
Numerical integration continued --- Simpson’s rules - We can add more segments OR - We can use a higher order polynomial.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Interpolation Chapter 18.
Chapter 6 Numerical Interpolation
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Numerical Differentiation and Integration ~ Newton-Cotes.
8 Indefinite Integrals Case Study 8.1 Concepts of Indefinite Integrals
Chapter 6 Differential Calculus
1 Chapter 2 Matrices Matrices provide an orderly way of arranging values or functions to enhance the analysis of systems in a systematic manner. Their.
Numerical Integration Formulas
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Numerical Differentiation and Integration Part 6 Calculus.
Ch 8.1 Numerical Methods: The Euler or Tangent Line Method
19.5 Numeric Integration and Differentiation
Boyce/DiPrima 9th ed, Ch 8.4: Multistep Methods Elementary Differential Equations and Boundary Value Problems, 9th edition, by William E. Boyce and Richard.
Simpson’s 1/3 rd Rule of Integration. What is Integration? Integration The process of measuring the area under a.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 21 Newton-Cotes Integration Formula.
Integrals 5.
1 NUMERICAL INTEGRATION Motivation: Most such integrals cannot be evaluated explicitly. Many others it is often faster to integrate them numerically rather.
21: Simpson’s Rule © Christine Crisp “Teach A Level Maths” Vol. 1: AS Core Modules.
1 Simpson’s 1/3 rd Rule of Integration. 2 What is Integration? Integration The process of measuring the area under a curve. Where: f(x) is the integrand.
Chapters 5 and 6: Numerical Integration
CSE 330 : Numerical Methods
SECOND-ORDER DIFFERENTIAL EQUATIONS Series Solutions SECOND-ORDER DIFFERENTIAL EQUATIONS In this section, we will learn how to solve: Certain.
Numerical Methods Part: Simpson Rule For Integration.
Today’s class Spline Interpolation Quadratic Spline Cubic Spline Fourier Approximation Numerical Methods Lecture 21 Prof. Jinbo Bi CSE, UConn 1.
Numerical Methods For Slides Thanks to Lecture 6 Interpolation
Numerical Methods Fast Fourier Transform Part: Theoretical Development of Fast Fourier Transform
In section 11.9, we were able to find power series representations for a certain restricted class of functions. Here, we investigate more general problems.
Engineering Analysis – Computational Fluid Dynamics –
Chap. 11 Numerical Differentiation and Integration
CHAPTER 3 NUMERICAL METHODS
Lecture 22 Numerical Analysis. Chapter 5 Interpolation.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 6 - Chapter 21.
Numerical Integration
3 DERIVATIVES.  Remember, they are valid only when x is measured in radians.  For more details see Chapter 3, Section 4 or the PowerPoint file Chapter3_Sec4.ppt.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 7 Roots of Polynomials.
Jump to first page Chapter 3 Splines Definition (3.1) : Given a function f defined on [a, b] and a set of numbers, a = x 0 < x 1 < x 2 < ……. < x n = b,
Math 3120 Differential Equations with Boundary Value Problems
Lecture 40 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Sampling Design and Analysis MTH 494 Lecture-21 Ossam Chohan Assistant Professor CIIT Abbottabad.
Copyright © Cengage Learning. All rights reserved Inequalities 2. Equations and Inequalities.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 5 Integration and Differentiation.
Lecture 39 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
1 Chapter 4 Interpolation and Approximation Lagrange Interpolation The basic interpolation problem can be posed in one of two ways: The basic interpolation.
Quadrature – Concepts (numerical integration) Don Allen.
Interpolation - Introduction
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 20 Numerical Integration of Functions.
CHAPTER 3 NUMERICAL METHODS
Part 6 - Chapter 21.
Chapter 7 Numerical Differentiation and Integration
Numerical Integration Formulas
Chapter 7 Numerical Differentiation and Integration
Numerical Computation and Optimization
5.3 Higher-Order Taylor Methods
Numerical Analysis Lecture 2.
SKTN 2393 Numerical Methods for Nuclear Engineers
Simpson’s 1/3rd Rule of Integration
Romberg Rule of Integration
Presentation transcript:

Simpson Rule For Integration. 1

Introduction The main objective in this chapter is to develop appropriated formulas for obtaining the integral expressed in the following form: (1) where is a given function. Most (if not all) of the developed formulas for integration is based on a simple concept of replacing a given (oftently complicated) function by a simpler function (usually a polynomial function) where represents the order of the polynomial function.

In the previous chapter, it has been explained and illustrated that Simpsons 1/3 rule for integration can be derived by replacing the given function with the 2nd –order (or quadratic) polynomial function , defined as: (2)

In a similar fashion, Simpson rule for integration can be derived by replacing the given function with the 3rd-order (or cubic) polynomial (passing through 4 known data points) function defined as (3) which can also be symbolically represented in Figure 1.

Method 1 The unknown coefficients (in Eq. (3)) can be obtained by substituting 4 known coordinate data points into Eq. (3), as following (4)

Eq. (4) can be expressed in matrix notation as (5) The above Eq. (5) can be symbolically represented as (6)

Thus, (7) Substituting Eq. (7) into Eq. (3), one gets (8)

Remarks As indicated in Figure 1, one has (9) With the help from MATLAB [2], the unknown vector (shown in Eq. 7) can be solved.

Method 2 Using Lagrange interpolation, the cubic polynomial function that passes through 4 data points (see Figure 1) can be explicitly given as (10)

Simpsons Rule For Integration Thus, Eq. (1) can be calculated as (See Eqs. 8, 10 for Method 1 and Method 2, respectively): Integrating the right-hand-side of the above equations, one obtains (11)

Since hence , and the above equation becomes: (12) The error introduced by the Simpson 3/8 rule can be derived as [Ref. 1]: , where (13)

Example 1 (Single Simpson rule) Compute by using a single segment Simpson rule Solution In this example:

Applying Eq. (12), one has: The “exact” answer can be computed as

3. Multiple Segments for Simpson Rule Using = number of equal (small) segments, the width can be defined as (14) Notes: = multiple of 3 = number of small segments

The integral, shown in Eq. (1), can be expressed as (15)

Substituting Simpson rule (See Eq. 12) into Eq. (15), one gets (16) (17)

Example 2 (Multiple segments Simpson rule) Compute using Simple multiple segments rule, with number (of ) segments = = 6 (which corresponds to 2 “big” segments).

Solution In this example, one has (see Eq. 14):

Applying Eq. (17), one obtains:

Example 3 (Mixed, multiple segments Simpson and rules) Compute using Simpson 1/3 rule (with 4 small segments), and Simpson 3/8 rule (with 3 small segments). Solution: In this example, one has:

Similarly:

For multiple segments using Simpson rule, one obtains (See Eq. 19):

For multiple segments using Simpson 3/8 rule, one obtains (See Eq. 17): The mixed (combined) Simpson 1/3 and 3/8 rules give:

Remarks: (a) Comparing the truncated error of Simpson 1/3 rule (18) With Simple 3/8 rule (See Eq. 13), the latter seems to offer slightly more accurate answer than the former. However, the cost associated with Simpson 3/8 rule (using 3rd order polynomial function) is significant higher than the one associated with Simpson 1/3 rule (using 2nd order polynomial function).

(b) The number of multiple segments that can be used in the conjunction with Simpson 1/3 rule is 2,4,6,8,.. (any even numbers). (19)

However, Simpson 3/8 rule can be used with the number of segments equal to 3,6,9,12,.. (can be either certain odd or even numbers). (c) If the user wishes to use, say 7 segments, then the mixed Simpson 1/3 rule (for the first 4 segments), and Simpson 3/8 rule (for the last 3 segments).

4. Computer Algorithm For Mixed Simpson 1/3 and 3/8 rule For Integration Based on the earlier discussions on (Single and Multiple segments) Simpson 1/3 and 3/8 rules, the following “pseudo” step-by-step mixed Simpson rules can be given as Step 1 User’s input information, such as Given function integral limits = number of small, “h” segments, in conjunction with Simpson 1/3 rule.

= number of small, “h” segments, in conjunction with Simpson 3/8 rule. Notes: = a multiple of 2 (any even numbers) = a multiple of 3 (can be certain odd, or even numbers)

Step 2 Compute

Step 3 Compute “multiple segments” Simpson 1/3 rule (See Eq. 19) (19, repeated)

Step 4 Compute “multiple segments” Simpson 3/8 rule (See Eq. 17) (17, repeated) Step 5 (20) and print out the final approximated answer for I.