Use of Newton-Cotes Formulas and eventual shortcomings Matlab code to increase number of segments with trapezoid, 1/3 and 3/8 rule.

Slides:



Advertisements
Similar presentations
Evaluating integrals are common in engineering problems. Sometimes, it is difficult to evaluate complex integrals. The need for Gauss Quadrature Therefore,
Advertisements

1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral.
Computational Methods in Physics PHYS 3437
A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.
Romberg Rule of Integration
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
Numerical Integration
MANE 4240 & CIVL 4240 Introduction to Finite Elements Numerical Integration in 1D Prof. Suvranu De.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 29 Numerical Integration.
Chapter 17 Numerical Integration Formulas. Graphical Representation of Integral Integral = area under the curve Use of a grid to approximate an integral.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 22 Integration of Equations.
Chapter 17 Objectives Recognizing that Newton-Cotes integration formulas are based on the strategy of replacing a complicated function or tabulated data.
MA/CS 375 Fall MA/CS 375 Fall 2002 Lecture 32.
Integration of Equations
8/8/ Gauss Quadrature Rule of Integration Major: All Engineering Majors Authors: Autar Kaw, Charlie Barker
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.
Quadrature Greg Beckham. Quadrature Numerical Integration Goal is to obtain the integral with as few computations of the integrand as possible.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Numerical Differentiation and Integration Part 6 Calculus.
Engineering Analysis ENG 3420 Fall 2009
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.
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.
Integration Integration: is the total value, or summation, of f(x) dx over the range from a to b:
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.
Chapters 5 and 6: Numerical Integration
Lecture 22 - Exam 2 Review CVEN 302 July 29, 2002.
Review Taylor Series and Error Analysis Roots of Equations
Given the marginal cost, find the original cost equation. C ' ( x ) = 9 x 2 – 10 x + 7 ; fixed cost is $ 20. In algebra, we were told that what ever was.
EE3561_Unit 7Al-Dhaifallah EE 3561 : Computational Methods Unit 7 Numerical Integration Dr. Mujahed AlDhaifallah ( Term 342)
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.
MECH345 Introduction to Finite Element Methods Chapter 1 Numerical Methods - Introduction.
11/30/ Romberg Rule of Integration Mechanical Engineering Majors Authors: Autar Kaw, Charlie Barker
Chap. 11 Numerical Differentiation and Integration
Numerical Integration
Techniques for Numerical Integration
1/7  4.6 Adaptive Quadrature Methods Chapter 4 Numerical Differentiation and Integration -- Adaptive Quadrature Methods   /2  /4  /8 Predict the.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 5 Integration and Differentiation.
Chapters 5 and 6: Numerical Integration Code development trapezoid rule Simpson’s rule Gauss quadrature Laguerre quadrature Analysis changing the variable.
SE301_Topic 6Al-Amer20051 SE301:Numerical Methods Topic 6 Numerical Integration Dr. Samir Al-Amer Term 053.
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.
Gauss Quadrature Rule of Integration
Chapter 22.
NUMERICAL DIFFERENTIATION AND INTEGRATION
Two-Point Gaussian Quadrature Rule
NUMERICAL INTEGRATION
Gauss Quadrature Rule of Integration
Two-Point Gaussian Quadrature Rule
NUMERICAL INTEGRATION
Numerical Computation and Optimization
MATH 174: NUMERICAL ANALYSIS I
Numerical Integration of Functions
Splines There are cases where polynomial interpolation is bad
Pengintegralan Numerik (lanjutan) Pertemuan 10
Romberg Rule of Integration
SKTN 2393 Numerical Methods for Nuclear Engineers
Romberg Rule of Integration
Romberg Rule of Integration
Numerical Computation and Optimization
Romberg Rule of Integration
Numerical Integration
Presentation transcript:

Use of Newton-Cotes Formulas and eventual shortcomings Matlab code to increase number of segments with trapezoid, 1/3 and 3/8 rule

Methods to achieve better accuracy at lower effort have been developed Romberg integration - uses Richardson extrapolation Idea behind Richardson extrapolation - improve the estimate at iteration j by using information from iteration j-1

True integral value can be written This is true for any iteration Using

So and which leads to

Plugging back into If

Combine two O(h2) estimates to get an O(h4) estimate Can also combine two O(h4) estimates to get an O(h6) estimate Can combine two O(h6) estimates to get an O(h8) estimate

General pattern is called Romberg Integration j - level of accuracy - j+1 is more accurate (more segments) k - level of integration - k=1 is original trapezoid estimate (O(h2)), k=2 is improved (O(h4)), etc.

Excel example

Gauss quadrature Idea is that if we evaluate the function at certain points, and sum with certain weights, we will get accurate integral Evaluation points and weights are tabulated

Development of Gauss-Legendre quadrature Assume a and b are limits of integration Trapezoid rule should give exact results for constant function or straight line

Trapezoid rule always works in these cases

Now instead of trapezoid, which has fixed end points (a,b), let them float 4 unknowns - x0,x1,c0,c1 4 equations - constant, linear (had before), quadratic, cubic From -1 to 1 to simplify math

Can solve these equations to get and two point Gauss-Legendre formula

Used cubic so this is third order accurate To go to -1 to 1 from other limits - use linear transformation If lower limit is a If upper limit is b

Solve and get So that

Example: Evaluate using two-point Gauss quadrature Exact value is

First transform Substituting

Evaluate that equation atand So the integral is Et is 23% - better than single application of Simpson’s 1/3

Can develop higher order Gauss-Legendre forms using Values for c’s and x’s are tabulated Use the same transformation

Example: do the same integral using 6-point Gauss Legendre quadrature Evaluate at these x and multiply by c

A final example: Determine mass of concrete slab Slab shape

Mass is density times volume Volume is thickness times area Say thickness is 1 ft Determine area

Take measurements at chosen points use symmetry 30 ft 27 ft

Symmetry of slab around x-axis Find area of one half and X 2

Use Simpson’s 1/3 rule Area for 1/2 is ft 2