Numerical Integration

Slides:



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

ES 240: Scientific and Engineering Computation. Chapter 17: Numerical IntegrationIntegration  Definition –Total area within a region –In mathematical.
NUMERICAL DIFFERENTIATION AND INTEGRATION
Chapter 7 Numerical Differentiation and Integration
Lecture 18 - Numerical Differentiation
Numerical Integration
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 30 Numerical Integration & Differentiation.
Newton-Cotes Integration Formula
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.
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW III.
Numerical Integration Lecture (I)1
1 Chapter 6 NUMERICAL DIFFERENTIATION. 2 When we have to differentiate a function given by a set of tabulated values or when a complicated function is.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Numerical Differentiation and Integration Standing.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 27 Numerical Integration & Differentiation.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Numerical Differentiation and Integration ~ Newton-Cotes.
NUMERICAL DIFFERENTIATION The derivative of f (x) at x 0 is: An approximation to this is: for small values of h. Forward Difference Formula.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Numerical Differentiation and Integration Standing.
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.
Numerical Integration Formulas
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.
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.
1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral.
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.
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.
Introduction to Numerical Analysis I
Chapters 5 and 6: Numerical Integration
4.6 Numerical Integration Trapezoid and Simpson’s Rules.
MA2213 Lecture 4 Numerical Integration. Introduction Definition is the limit of Riemann sums I(f)
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
EE3561_Unit 7Al-Dhaifallah EE 3561 : Computational Methods Unit 7 Numerical Integration Dr. Mujahed AlDhaifallah ( Term 342)
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 6 - Chapter 21.
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.
The purpose of Chapter 5 is to develop the basic principles of numerical integration Usefule Words integrate, integral 积分(的), integration 积分(法), quadrature.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 5 Integration and Differentiation.
SE301_Topic 6Al-Amer20051 SE301:Numerical Methods Topic 6 Numerical Integration Dr. Samir Al-Amer Term 053.
Quadrature – Concepts (numerical integration) Don Allen.
Numerical Integration
Air Force Admin College, Coimbatore
Chapter 4, Integration of Functions
NUMERICAL DIFFERENTIATION Forward Difference Formula
Part 6 - Chapter 21.
Chapter 7 Numerical Differentiation and Integration
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=
Numerical Integration Formulas
NUMERICAL DIFFERENTIATION AND INTEGRATION
Numerical Analysis Lecture 27.
NUMERICAL DIFFERENTIATION AND INTEGRATION
Chapter 7 Numerical Differentiation and Integration
Trapezoidal Rule of Integration
Composite Numerical Integration
4.3 Elements of Numerical Integration
Elements of Numerical Integration
SKTN 2393 Numerical Methods for Nuclear Engineers
Numerical Computation and Optimization
Numerical Integration
Air Force Admin College, Coimbatore
Elements of Numerical Integration
Presentation transcript:

Numerical Integration Lecture 8 Chapter 7 Numerical Integration

Integration Indefinite Integrals Definite Integrals Indefinite Integrals of a function are functions that differ from each other by a constant. Definite Integrals Definite Integrals are numbers.

Why Numerical Integration? Very often, the function f(x) to differentiate or the integrand to integrate is too complex to derive exact analytical solutions. In most cases in engineering, the function f(x) is only available in a tabulated form with values known only at discrete points. Numerical Solution

Numerical Integration The general form of numerical integration of a function f (x) over some interval [a, b] is a weighted sum of the function values at a finite number (n) of sample points (nodes), referred to as ‘quadrature’:

One interpretation of the definite integral is Integral = area under the curve f(x) a b

Newton-Cotes Integration Common numerical integration scheme Based on the strategy of replacing a complicated function or tabulated data with some approximating function that is easy to integrate Pn(x) is an nth order polynomial

Trapezoidal Rule Corresponds to the case where the polynomial is a first order F(b) h F(a)

From the trapezoidal rule we can obtain for the total area of (n-1) intervals where there are n equally spaced base points.

Error Estimate in the trapezoidal rule It can be obtained by integrating the interpolation error we defined in previous chapter for Lagrange polynomial as

Example

1

2 1 1 1/2 1 1 1 2 2 2 1/4 1/2 3/4 1

Remark 1: in this example instead of re-computation of some function values when h is changed to h/2 we observe that

Simpson’s Rules Simpson’s 1/3 rule can be obtained by passing a parabolic interpolant through three adjacent nodes. The area under the parabola is

1 4 2 f(x1), f(xn) f(x2), f(x4), f(x6),.. f(x3), f(x5), f(x7),.. To obtain the total area of (n-1) even intervals we apply the following general Simpson’s 1/3 rule Note: f(x1), f(xn) 1 f(x2), f(x4), f(x6),.. 4 f(x3), f(x5), f(x7),.. 2

Remark 2: Simpson’s 1/3 rule requires the number of intervals to be even. If this condition is not satisfied, we can integrate over the first (or last) three intervals with Simpson’s 3/8 rule which can be obtained by passing a cubic interpolant through four adjacent nodes, and defined by The error in the Simpson’s rule is

Simpson’s 3/8 rule Simpson’s 1/3 rule Because the number of panels is odd, we compute the integral over the first three intervals by Simpson’s 3/8 rule, and use the 1/3 rule for the last two intervals:

To be continued in Lecture 9 Summary Newton Cotes formulae for Numerical integration. Trapezoidal Rule Simpson’s Rules. Romberg Integration Double Integrals To be continued in Lecture 9