Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 22.

Slides:



Advertisements
Similar presentations
Numerical Integration
Advertisements

Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Curve Fitting ~ Least Squares Regression Chapter.
1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral.
Computational Methods in Physics PHYS 3437
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
Numerical Integration
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Ordinary Differential Equations Equations which are.
Newton-Cotes Integration Formula
MANE 4240 & CIVL 4240 Introduction to Finite Elements Numerical Integration in 1D Prof. Suvranu De.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 181 Interpolation Chapter 18 Estimation of intermediate.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 22 Integration of Equations.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 171 CURVE.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 181 Interpolation.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Interpolation Chapter 18.
Chapter 6 Numerical Interpolation
Integration of Equations
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Numerical Differentiation and Integration Standing.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 171 Least.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Numerical Differentiation and Integration ~ Newton-Cotes.
8/8/ Gauss Quadrature Rule of Integration Major: All Engineering Majors Authors: Autar Kaw, Charlie Barker
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Numerical Differentiation and Integration Standing.
Numerical Integration Formulas
Chapter 8 Traffic-Analysis Techniques. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 8-1.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Numerical Differentiation and Integration Part 6 Calculus.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 21 Newton-Cotes Integration Formula.
1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral.
Lecture 19 - Numerical Integration CVEN 302 July 22, 2002.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Roots of Equations ~ Open Methods Chapter 6 Credit:
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 7.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. ~ Ordinary Differential Equations ~ Stiffness and Multistep.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 261 Stiffness.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 6 - Chapter 21.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 7 - Chapter 25.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 27.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 4 Chapter 15 General Least Squares and Non- Linear.
Use of Newton-Cotes Formulas and eventual shortcomings Matlab code to increase number of segments with trapezoid, 1/3 and 3/8 rule.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Truncation Errors and the Taylor Series Chapter 4.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 5 Integration and Differentiation.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 6 - Chapters 22 and 23.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 21 Numerical Differentiation.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 20 Numerical Integration of Functions.
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=
Gauss Quadrature Rule of Integration
Numerical Integration Formulas
Chapter 22.
Integration with Unequal Segments
NUMERICAL DIFFERENTIATION AND INTEGRATION
Two-Point Gaussian Quadrature Rule
NUMERICAL DIFFERENTIATION AND INTEGRATION
Chapter 7 Numerical Differentiation and Integration
Chapter 26.
Gauss Quadrature Rule of Integration
Two-Point Gaussian Quadrature Rule
Numerical Computation and Optimization
Numerical Integration of Functions
Pengintegralan Numerik (lanjutan) Pertemuan 10
SKTN 2393 Numerical Methods for Nuclear Engineers
Numerical Computation and Optimization
Numerical Computation and Optimization
Romberg Rule of Integration
Numerical Integration
Presentation transcript:

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 22

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 2 Integration of Equations Chapter 22 Functions to be integrated numerically are in two forms: –A table of values. We are limited by the number of points that are given. –A function. We can generate as many values of f(x) as needed to attain acceptable accuracy. Will focus on two techniques that are designed to analyze functions: –Romberg integration –Gauss quadrature

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3 Romberg Integration Is based on successive application of the trapezoidal rule to attain efficient numerical integrals of functions. Richardson’s Extrapolation/ Uses two estimates of an integral to compute a third and more accurate approximation.

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 4 The estimate and error associated with a multiple- application trapezoidal rule can be represented generally as I =exact value of integral I(h) =the approximation from an n segment application of trapezoidal rule with step size h E(h) =the truncation error Assumed constant regardless of step size

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 5 Improved estimate of the integral

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 6 Figure 22.3

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 7 Gauss Quadrature Gauss quadrature implements a strategy of positioning any two points on a curve to define a straight line that would balance the positive and negative errors. Hence the area evaluated under this straight line provides an improved estimate of the integral.

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 8 Figure 22.6

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 9 Method of Undetermined Coefficients/ The trapezoidal rule yields exact results when the function being integrated is a constant or a straight line, such as y=1 and y=x: Solve simultaneously Trapezoidal rule

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 10 Figure 22.7

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 11 Derivation of the Two-Point Gauss-Legendre Formula/ The object of Gauss quadrature is to determine the equations of the form However, in contrast to trapezoidal rule that uses fixed end points a and b, the function arguments x 0 and x 1 are not fixed end points but unknowns. Thus, four unknowns to be evaluated require four conditions. First two conditions are obtained by assuming that the above eqn. for I fits the integral of a constant and a linear function exactly. The other two conditions are obtained by extending this reasoning to a parabolic and a cubic functions.

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 12 Solved simultaneously Yields an integral estimate that is third order accurate

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 13 Figure 22.8

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 14 Notice that the integration limits are from -1 to 1. This was done for simplicity and make the formulation as general as possible. A simple change of variable is used to translate other limits of integration into this form. Provided that the higher order derivatives do not increase substantially with increasing number of points (n), Gauss quadrature is superior to Newton- Cotes formulas. Error for the Gauss- Legendre formulas

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 15 Improper Integrals Improper integrals can be evaluated by making a change of variable that transforms the infinite range to one that is finite, where –A is chosen as a sufficiently large negative value so that the function has begun to approach zero asymptotically at least as fast as 1/x 2.