MATH 174: NUMERICAL ANALYSIS I

Slides:



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

Numerical Integration
ES 240: Scientific and Engineering Computation. Chapter 17: Numerical IntegrationIntegration  Definition –Total area within a region –In mathematical.
Lecture 26: Numerical Integration Trapezoid rule Simpson's rule Simpson's 3/8 rule Boole’s rule Newton-Cotes Formulas.
1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral.
Computational Methods in Physics PHYS 3437
Asymptotic error expansion Example 1: Numerical differentiation –Truncation error via Taylor expansion.
Numerical Integration of Functions
NUMERICAL DIFFERENTIATION AND INTEGRATION
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
Chapter 7 Numerical Differentiation and Integration
Today’s class Romberg integration Gauss quadrature Numerical Methods
Lecture 18 - Numerical Differentiation
Numerical Integration
MANE 4240 & CIVL 4240 Introduction to Finite Elements Numerical Integration in 1D Prof. Suvranu De.
Numerical Integration
CISE301_Topic7KFUPM1 SE301: Numerical Methods Topic 7 Numerical Integration Lecture KFUPM Read Chapter 21, Section 1 Read Chapter 22, Sections 2-3.
MATH 175: NUMERICAL ANALYSIS II Lecturer: Jomar Fajardo Rabajante IMSP, UPLB 2 nd Semester AY
Engineering Analysis ENG 3420 Fall 2009
Numerical Integration Methods
Lecture 28: Comparison of different numerical integrators 1.Adaptive Simpson’s and Trapezoid Rules 2. Romberg Integration 3. Adaptive Gaussian Quadrature.
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.
Automatic Integration
3. Numerical integration (Numerical quadrature) .
Lecture 19 - Numerical Integration CVEN 302 July 22, 2002.
Integration Integration: is the total value, or summation, of f(x) dx over the range from a to b:
Numerical Computation
1 Numerical Analysis Lecture 12 Numerical Integration Dr. Nader Okasha.
Numerical Methods Applications of Loops: The power of MATLAB Mathematics + Coding 1.
MATH 175: Numerical Analysis II Lecturer: Jomar Fajardo Rabajante 2 nd Sem AY IMSP, UPLB.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Numerical Differentiation and Integration ~ Integration.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 22.
Integration For a function f, The “integral of f from a to b” is the area under the graph of the function. If f is continuous, then the area is well defined,
Use of Newton-Cotes Formulas and eventual shortcomings Matlab code to increase number of segments with trapezoid, 1/3 and 3/8 rule.
Techniques for Numerical Integration
Introduction to Numerical Analysis I
The purpose of Chapter 5 is to develop the basic principles of numerical integration Usefule Words integrate, integral 积分(的), integration 积分(法), quadrature.
SE301_Topic 6Al-Amer20051 SE301:Numerical Methods Topic 6 Numerical Integration Dr. Samir Al-Amer Term 053.
MATH 175: Numerical Analysis II Lecturer: Jomar Fajardo Rabajante IMSP, UPLB 2 nd Sem AY
Quadrature – Concepts (numerical integration) Don Allen.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 20 Numerical Integration of Functions.
MATH 175: Numerical Analysis II
Air Force Admin College, Coimbatore
Chapter 7 Numerical Differentiation and Integration
Numerical Analysis Lecture 42.
Chapter 22.
Integration with Unequal Segments
NUMERICAL DIFFERENTIATION AND INTEGRATION
Numerical Analysis Lecture 27.
NUMERICAL INTEGRATION
Composite Numerical Integration
MATH 175: Numerical Analysis II
MATH 175: NUMERICAL ANALYSIS II
MATH 174: NUMERICAL ANALYSIS I
Numerical Integration of Functions
MATH 175: NUMERICAL ANALYSIS II
Romberg Rule of Integration
SKTN 2393 Numerical Methods for Nuclear Engineers
Numerical Integration
Romberg Rule of Integration
MATH 175: Numerical Analysis II
MATH 175: NUMERICAL ANALYSIS II
MATH 175: Numerical Analysis II
MATH 175: NUMERICAL ANALYSIS II
Numerical Computation and Optimization
Romberg Rule of Integration
Numerical Integration
Air Force Admin College, Coimbatore
Elements of Numerical Integration
Presentation transcript:

MATH 174: NUMERICAL ANALYSIS I LECTURER: JOMAR FAJARDO RABAJANTE 1st Sem AY 2018-2019 IMSP, UPLB

IMPROVING OUR NEWTON-COTES FORMULAS

ROMBERG INTEGRATION Applying Richardson Extrapolation to the composite Trapezoidal Rule. Define the following step sizes:

ROMBERG INTEGRATION Formulas for 1st column: (this is a recursive formula for composite Trapezoidal Rule) 1 panel 2 panels j panels

ROMBERG INTEGRATION O(h2) O(h4) O(h6) O(h8) Trapezoidal Simpson’s Boole’s O(h8)

ROMBERG INTEGRATION O(h2) 1 panel O(h4) 2 panels O(h6) 3 panels O(h8)

ROMBERG INTEGRATION Extrapolation Formula: Example:

AUTOMATIC/ADAPTIVE QUADRATURE Using higher-order quadrature formulas requires higher-order derivatives in getting the error bound. We also know that smaller step sizes (more number of panels) improve accuracy. But how small is small? Some functions also vary wildly over some of their domain and vary slowly through other parts, hence equal step sizes is not appropriate.

AUTOMATIC/ADAPTIVE QUADRATURE “Magmamano-mano ba tayo?” It is very tedious to do trial and error in choosing the appropriate panels, and after evaluation we still need to check if this satisfies our tolerable error (remember it is not easy to compute for the error bound). What if instead of doing trial and error, we start by right away inputting our tolerable error bound, and do a process that would automatically target that goal.

AUTOMATIC/ADAPTIVE QUADRATURE For our example, we use Adaptive Trapezoidal Rule. Recall the basic trapezoidal rule: Old error

AUTOMATIC/ADAPTIVE QUADRATURE We can improve the formula by cutting into half:

AUTOMATIC/ADAPTIVE QUADRATURE Then: Assume

AUTOMATIC/ADAPTIVE QUADRATURE Then: The difference is 3 times the new error New error

AUTOMATIC/ADAPTIVE QUADRATURE Hence, for Adaptive Trapezoidal Rule, the ACCURACY TEST is If this is satisfied then is a good approximate with max error of TOL. Input of the user

AUTOMATIC/ADAPTIVE QUADRATURE If this is NOT satisfied then apply again the method individually to With accuracy tests: Etc…

AUTOMATIC/ADAPTIVE QUADRATURE EXAMPLE: TOL=0.03 Solve this on the blackboard

AUTOMATIC/ADAPTIVE QUADRATURE EXAMPLE: Solve this on the blackboard EXERCISE

AUTOMATIC/ADAPTIVE QUADRATURE EXAMPLE: TOL=0.03 Solve this on the blackboard

AUTOMATIC/ADAPTIVE QUADRATURE For Adaptive Simpson’s Rule, the ACCURACY TEST is Defining