Numerical Methods Part: Simpson Rule For Integration.

Slides:



Advertisements
Similar presentations
Numerical Methods Fourier Transform Pair Part: Frequency and Time Domain
Advertisements

Numerical Integration
CSE 330: Numerical Methods
Chapter 7 Numerical Differentiation and Integration
1 Direct Method of Interpolation Electrical Engineering Majors Authors: Autar Kaw, Jai Paul
Major: All Engineering Majors Author(s): Autar Kaw
Newton-Cotes Integration Formula
Numerical integration continued --- Simpson’s rules - We can add more segments OR - We can use a higher order polynomial.
7/2/ Differentiation-Discrete Functions Industrial Engineering Majors Authors: Autar Kaw, Sri Harsha Garapati.
Chapter 6 Numerical Interpolation
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Numerical Differentiation and Integration ~ Newton-Cotes.
Numerical Methods Newton’s Method for One - Dimensional Optimization - Theory
Numerical Methods Golden Section Search Method - Theory
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Numerical Differentiation and Integration Part 6 Calculus.
Numerical Methods Discrete Fourier Transform Part: Discrete Fourier Transform
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.
CSE 330 : Numerical Methods
9/14/ Trapezoidal Rule of Integration Major: All Engineering Majors Authors: Autar Kaw, Charlie Barker
Elliptic Partial Differential Equations - Introduction
Simpson Rule For Integration.
Numerical Methods Part: Cholesky and Decomposition
Numerical Methods Fast Fourier Transform Part: Informal Development of Fast Fourier Transform
Numerical Methods Multi Dimensional Direct Search Methods - Theory
Numerical Methods Fast Fourier Transform Part: Theoretical Development of Fast Fourier Transform
Numerical Methods Continuous Fourier Series Part: Continuous Fourier Series
11/17/ Introduction to Partial Differential Equations Transforming Numerical.
Numerical Methods Part: False-Position Method of Solving a Nonlinear Equation
11/30/ Romberg Rule of Integration Mechanical Engineering Majors Authors: Autar Kaw, Charlie Barker
12/1/ Trapezoidal Rule of Integration Civil Engineering Majors Authors: Autar Kaw, Charlie Barker
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
Newton’s Method, Root Finding with MATLAB and Excel
Numerical Methods Newton’s Method for One - Dimensional Optimization - Theory
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,
Gaussian Elimination Mechanical Engineering Majors Author(s): Autar Kaw Transforming Numerical Methods Education for.
Numerical Methods Multidimensional Gradient Methods in Optimization- Theory
1/30/ Elliptic Partial Differential Equations – Lieberman Method – Part 1 of 2 Elliptic Partial Differential.
Lecture 40 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
2/13/ Elliptic Partial Differential Equations - Introduction Transforming.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 5 Integration and Differentiation.
1 Direct Method of Interpolation Mechanical Engineering Majors Authors: Autar Kaw, Jai Paul
Numerical Methods Part: False-Position Method of Solving a Nonlinear Equation
3/12/ Trapezoidal Rule of Integration Computer Engineering Majors Authors: Autar Kaw, Charlie Barker
3/20/ Trapezoidal Rule of Integration Chemical Engineering Majors Authors: Autar Kaw, Charlie Barker
Numerical Methods Multidimensional Gradient Methods in Optimization- Example
Part 6 - Chapter 21.
Gauss Quadrature Rule of Integration
Differentiation-Discrete Functions
Numerical Methods Multi Dimensional Direct Search Methods - Example
Numerical Methods Part: Cholesky and Decomposition
Elliptic Partial Differential Equations – Direct Method
Chapter 1: False-Position Method of Solving a Nonlinear Equation
Trapezoidal Rule of Integration
Gauss Quadrature Rule of Integration
Direct Method of Interpolation
Simpson’s 1/3rd Rule of Integration
Elliptic Partial Differential Equations – Gauss-Seidel Method
Numerical Methods Golden Section Search Method - Example
Numerical Methods Newton’s Method for One -Dimensional Optimization - Example
Simpson’s 1/3rd Rule of Integration
Simpson’s 1/3rd Rule of Integration
Romberg Rule of Integration
SKTN 2393 Numerical Methods for Nuclear Engineers
Simpson’s 1/3rd Rule of Integration
Romberg Rule of Integration
Romberg Rule of Integration
Romberg Rule of Integration
Presentation transcript:

Numerical Methods Part: Simpson Rule For Integration.

For more details on this topic  Go to  Click on Keyword

You are free to Share – to copy, distribute, display and perform the work to Remix – to make derivative works

Under the following conditions Attribution — You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work). Noncommercial — You may not use this work for commercial purposes. Share Alike — If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.

Chapter 07.08: Simpson Rule For Integration. Major: All Engineering Majors Authors: Duc Nguyen Numerical Methods for STEM undergraduates 510/17/2015 Lecture # 1

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. 6 Introduction The main objective in this chapter is to develop appropriated formulas for obtaining the integral expressed in the following form: where is a given function. (1)

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 2 nd –order (or quadratic) polynomial function, defined as: (2)

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

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 The above Eq. (5) can be symbolically represented as (5) (6)

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

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

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: The error introduced by the Simpson 3/8 rule can be derived as [Ref. 1]:, where (13) (12)

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 Notes: = multiple of 3 = number of small segments (14)

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 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 3 rd order polynomial function) is significant higher than the one associated with Simpson 1/3 rule (using 2 nd order polynomial function). (18)

(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).

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. 4. Computer Algorithm For Mixed Simpson 1/3 and 3/8 rule For Integration

= 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) Step 5 and print out the final approximated answer for I. (17, repeated) (20)

THE END

This instructional power point brought to you by Numerical Methods for STEM undergraduate Committed to bringing numerical methods to the undergraduate Acknowledgement

For instructional videos on other topics, go to This material is based upon work supported by the National Science Foundation under Grant # Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.

The End - Really