CISE301_Topic71 SE301: Numerical Methods Topic 7 Numerical Integration Lecture 24-27 KFUPM (Term 101) Section 04 Read Chapter 21, Section 1 Read Chapter.

Slides:



Advertisements
Similar presentations
Numerical Integration
Advertisements

Section 5.7 Numerical Integration. Approximations for integrals: Riemann Sums, Trapezoidal Rule, Simpson's Rule Riemann Sum: Trapezoidal Rule: Simpson’s.
CISE301_Topic61 SE301: Numerical Methods Topic 6 Numerical Differentiation Lecture 23 KFUPM Read Chapter 23, Sections 1-2.
Chapter 7 Numerical Differentiation and Integration
Today’s class Romberg integration Gauss quadrature Numerical Methods
Numerical Integration
KFUPM SE301: Numerical Methods Topic 5: Interpolation Lectures 20-22:
Newton-Cotes Integration Formula
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 Lecture 29 Numerical Integration.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Prentice Hall Slide 5- 1.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Numerical Differentiation and Integration Standing.
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 Standing.
CISE301_Topic7KFUPM1 SE301: Numerical Methods Topic 7 Numerical Integration Lecture KFUPM Read Chapter 21, Section 1 Read Chapter 22, Sections 2-3.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Numerical Differentiation and Integration Part 6 Calculus.
Simpson’s 1/3 rd Rule of Integration. What is Integration? Integration The process of measuring the area under a.
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.
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.
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.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Prentice Hall Slide 5- 1.
9/14/ Trapezoidal Rule of Integration Major: All Engineering Majors Authors: Autar Kaw, Charlie Barker
1 Trapezoidal Rule of Integration. What is Integration Integration: The process of measuring the area under a function.
MA2213 Lecture 4 Numerical Integration. Introduction Definition is the limit of Riemann sums I(f)
Chapter 5 .3 Riemann Sums and Definite Integrals
Chapter 5 Integral. Estimating with Finite Sums Approach.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
CISE301_Topic11 CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4:
4-3 DEFINITE INTEGRALS MS. BATTAGLIA – AP CALCULUS.
Section 5.3 – The Definite Integral
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)
Integration Copyright © Cengage Learning. All rights reserved.
CHAPTER 4 SECTION 4.4 THE FUNDAMENTAL THEOREM OF CALCULUS.
SECTION 4-4 A Second Fundamental Theorem of Calculus.
Trapezoidal Rule of Integration
CHAPTER 3 NUMERICAL METHODS
CSE 330 : Numerical Methods Lecture 15: Numerical Integration - Trapezoidal Rule Dr. S. M. Lutful Kabir Visiting Professor, BRAC University & Professor.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 6 - Chapter 21.
KFUPM SE301: Numerical Methods Topic 5: Interpolation Lectures 20-22:
Math – Integration 1. We know how to calculate areas of some shapes. 2.
Chapter 5 – The Definite Integral. 5.1 Estimating with Finite Sums Example Finding Distance Traveled when Velocity Varies.
Distance Traveled Area Under a curve Antiderivatives
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.
Clicker Question 1 What is ? (Hint: u-sub) – A. ln(x – 2) + C – B. x – x 2 + C – C. x + ln(x – 2) + C – D. x + 2 ln(x – 2) + C – E. 1 / (x – 2) 2 + C.
Quadrature – Concepts (numerical integration) Don Allen.
Numerical Integration
Chapter 5 AP Calculus BC.
NUMERICAL DIFFERENTIATION Forward Difference Formula
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=
Fundamental Theorem of Calculus
Copyright © Cengage Learning. All rights reserved.
Numerical Computation and Optimization
Numerical Integration
Numerical Computation and Optimization
Objectives Approximate a definite integral using the Trapezoidal Rule.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Presentation transcript:

CISE301_Topic71 SE301: Numerical Methods Topic 7 Numerical Integration Lecture KFUPM (Term 101) Section 04 Read Chapter 21, Section 1 Read Chapter 22, Sections 2-3

CISE301_Topic72 L ecture 24 Introduction to Numerical Integration  Definitions  Upper and Lower Sums  Trapezoid Method (Newton-Cotes Methods)  Romberg Method  Gauss Quadrature  Examples

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

CISE301_Topic74 Fundamental Theorem of Calculus

CISE301_Topic75 The Area Under the Curve One interpretation of the definite integral is: Integral = area under the curve ab f(x)

CISE301_Topic76 Upper and Lower Sums ab f(x) The interval is divided into subintervals.

CISE301_Topic77 Upper and Lower Sums ab f(x)

CISE301_Topic78 Example

9 Example

10 Upper and Lower Sums Estimates based on Upper and Lower Sums are easy to obtain for monotonic functions (always increasing or always decreasing). For non-monotonic functions, finding maximum and minimum of the function can be difficult and other methods can be more attractive.

CISE301_Topic711 Newton-Cotes Methods  In Newton-Cote Methods, the function is approximated by a polynomial of order n.  Computing the integral of a polynomial is easy.

CISE301_Topic712 Newton-Cotes Methods Trapezoid Method ( First Order Polynomials are used ) Simpson 1/3 Rule ( Second Order Polynomials are used )

CISE301_Topic713 L ecture 25 Trapezoid Method  Derivation-One Interval  Multiple Application Rule  Estimating the Error  Recursive Trapezoid Method Read 21.1

CISE301_Topic714 Trapezoid Method f(x)

CISE301_Topic715 Trapezoid Method Derivation-One Interval

CISE301_Topic716 Trapezoid Method f(x)

CISE301_Topic717 Trapezoid Method Multiple Application Rule ab f(x) x

CISE301_Topic718 Trapezoid Method General Formula and Special Case

CISE301_Topic719 Example Given a tabulated values of the velocity of an object. Obtain an estimate of the distance traveled in the interval [0,3]. Time (s) Velocity (m/s) Distance = integral of the velocity

CISE301_Topic720 Example 1 Time (s) Velocity (m/s)

CISE301_Topic721 Error in estimating the integral Theorem

CISE301_Topic722 Estimating the Error For Trapezoid Method

CISE301_Topic723 Example

CISE301_Topic724 Example x f(x)

CISE301_Topic725 Example x f(x)

CISE301_Topic726 Recursive Trapezoid Method f(x)

CISE301_Topic727 Recursive Trapezoid Method f(x) Based on previous estimate Based on new point

CISE301_Topic728 Recursive Trapezoid Method f(x) Based on previous estimate Based on new points

CISE301_Topic729 Recursive Trapezoid Method Formulas

CISE301_Topic730 Recursive Trapezoid Method

Example on Recursive Trapezoid CISE301_Topic731 nhR(n,0) 0 (b-a)=/2(/4)[sin(0) + sin(/2)]= (b-a)/2=/4R(0,0)/2 + (/4) sin(/4) = (b-a)/4=/8R(1,0)/2 + (/8)[sin(/8)+sin(3/8)] = (b-a)/8=/16R(2,0)/2 + (/16)[sin(/16)+sin(3/16)+sin(5/16)+ sin(7/16)] = Estimated Error = |R(3,0) – R(2,0)| =

CISE301_Topic732 Advantages of Recursive Trapezoid Recursive Trapezoid:  Gives the same answer as the standard Trapezoid method.  Makes use of the available information to reduce the computation time.  Useful if the number of iterations is not known in advance.

CISE301_Topic733 L ecture 26 Romberg Method  Motivation  Derivation of Romberg Method  Romberg Method  Example  When to stop? Read 22.2

CISE301_Topic734 Motivation for Romberg Method  Trapezoid formula with a sub-interval h gives an error of the order O(h 2 ).  We can combine two Trapezoid estimates with intervals h and h/2 to get a better estimate.

CISE301_Topic735 Romberg Method First column is obtained using Trapezoid Method R(0,0) R(1,0)R(1,1) R(2,0)R(2,1)R(2,2) R(3,0)R(3,1)R(3,2)R(3,3) The other elements are obtained using the Romberg Method

CISE301_Topic736 First Column Recursive Trapezoid Method

CISE301_Topic737 Derivation of Romberg Method

CISE301_Topic738 Romberg Method R(0,0) R(1,0)R(1,1) R(2,0)R(2,1)R(2,2) R(3,0)R(3,1)R(3,2)R(3,3)

CISE301_Topic739 Property of Romberg Method R(0,0) R(1,0)R(1,1) R(2,0)R(2,1)R(2,2) R(3,0)R(3,1)R(3,2)R(3,3) Error Level

CISE301_Topic740 Example 0.5 3/81/3

CISE301_Topic741 Example (cont.) 0.5 3/81/3 11/321/3

CISE301_Topic742 When do we stop?

CISE301_Topic743 L ecture 27 Gauss Quadrature  Motivation  General integration formula Read 22.3

CISE301_Topic744 Motivation

CISE301_Topic745 General Integration Formula

CISE301_Topic746 Lagrange Interpolation

Example  Determine the Gauss Quadrature Formula of If the nodes are given as (-1, 0, 1)  Solution: First we need to find l 0 (x), l 1 (x), l 2 (x)  Then compute: CISE301_Topic747

Solution CISE301_Topic748

Using the Gauss Quadrature Formula CISE301_Topic749

Using the Gauss Quadrature Formula CISE301_Topic750

CISE301_Topic751 Improper Integrals