Numerical Integra/on

Similar documents
Numerical Integra/on

Numerical Integration (Quadrature) Another application for our interpolation tools!

Chapter 5: Numerical Integration and Differentiation

Numerical Integration of Functions

Jim Lambers MAT 460/560 Fall Semester Practice Final Exam

Extrapolation in Numerical Integration. Romberg Integration

CS 450 Numerical Analysis. Chapter 8: Numerical Integration and Differentiation

Integration. Topic: Trapezoidal Rule. Major: General Engineering. Author: Autar Kaw, Charlie Barker.

TABLE OF CONTENTS INTRODUCTION, APPROXIMATION & ERRORS 1. Chapter Introduction to numerical methods 1 Multiple-choice test 7 Problem set 9

Section 6.6 Gaussian Quadrature

Romberg Integration and Gaussian Quadrature

Review. Numerical Methods Lecture 22. Prof. Jinbo Bi CSE, UConn

8.3 Numerical Quadrature, Continued

LECTURE 14 NUMERICAL INTEGRATION. Find

MA1023-Methods of Mathematics-15S2 Tutorial 1

Numerical Analysis Solution of Algebraic Equation (non-linear equation) 1- Trial and Error. 2- Fixed point

MA6452 STATISTICS AND NUMERICAL METHODS UNIT IV NUMERICAL DIFFERENTIATION AND INTEGRATION

Numerical integration and differentiation. Unit IV. Numerical Integration and Differentiation. Plan of attack. Numerical integration.

Preface. 2 Linear Equations and Eigenvalue Problem 22

Bindel, Spring 2012 Intro to Scientific Computing (CS 3220) Week 12: Monday, Apr 16. f(x) dx,

Integration, differentiation, and root finding. Phys 420/580 Lecture 7

Numerical Methods I: Numerical Integration/Quadrature

Numerical Methods for Engineers. and Scientists. Applications using MATLAB. An Introduction with. Vish- Subramaniam. Third Edition. Amos Gilat.

NUMERICAL INTEGRATION. By : Dewi Rachmatin

Outline. 1 Numerical Integration. 2 Numerical Differentiation. 3 Richardson Extrapolation

Numerical Methods for Engineers

Numerical Analysis. A Comprehensive Introduction. H. R. Schwarz University of Zürich Switzerland. with a contribution by

12.0 Properties of orthogonal polynomials

APPM/MATH Problem Set 6 Solutions

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

Do not turn over until you are told to do so by the Invigilator.

3. Numerical Quadrature. Where analytical abilities end...

COURSE Numerical integration of functions (continuation) 3.3. The Romberg s iterative generation method

Then, Lagrange s interpolation formula is. 2. What is the Lagrange s interpolation formula to find, if three sets of values. are given.

COURSE Numerical integration of functions

Computational Methods

In numerical analysis quadrature refers to the computation of definite integrals.

MA 3021: Numerical Analysis I Numerical Differentiation and Integration

NUMERICAL METHODS. x n+1 = 2x n x 2 n. In particular: which of them gives faster convergence, and why? [Work to four decimal places.

Fundamental Numerical Methods for Electrical Engineering

Romberg Integration. MATH 375 Numerical Analysis. J. Robert Buchanan. Spring Department of Mathematics

Numerical Methods with MATLAB

Romberg Rule of Integration

Contents. I Basic Methods 13

(f(x) P 3 (x)) dx. (a) The Lagrange formula for the error is given by

Numerical Methods. Scientists. Engineers

NUMERICAL METHODS FOR ENGINEERING APPLICATION

Simpson s 1/3 Rule Simpson s 1/3 rule assumes 3 equispaced data/interpolation/integration points

EAD 115. Numerical Solution of Engineering and Scientific Problems. David M. Rocke Department of Applied Science

Answers to Homework 9: Numerical Integration

Numerical Analysis. Introduction to. Rostam K. Saeed Karwan H.F. Jwamer Faraidun K. Hamasalh

M.SC. PHYSICS - II YEAR

Virtual University of Pakistan

4. Numerical Quadrature. Where analytical abilities end... continued

Math 107H Fall 2008 Course Log and Cumulative Homework List

Scientific Computing: Numerical Integration

Computational methods of elementary particle physics

Interpolation. s(s 1)(s 2) Δ 3 f ! s(s 1) Δ 2 f 0 + 2! f(x s )=f 0 + sδf 0 +

MATHEMATICAL METHODS INTERPOLATION

MA2501 Numerical Methods Spring 2015

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF MATHEMATICS ACADEMIC YEAR / EVEN SEMESTER QUESTION BANK

19.4 Spline Interpolation

BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination December, 2015 BCS-054 : COMPUTER ORIENTED NUMERICAL TECHNIQUES

Ch. 03 Numerical Quadrature. Andrea Mignone Physics Department, University of Torino AA

Numerical Methods. King Saud University

Multistage Methods I: Runge-Kutta Methods

UNIT-II INTERPOLATION & APPROXIMATION

Chap. 19: Numerical Differentiation

Numerical Integration

(x x 0 )(x x 1 )... (x x n ) (x x 0 ) + y 0.

Numerical Mathematics

MTH603 FAQ + Short Questions Answers.

Numerical Analysis Exam with Solutions

Case Study Number 2: Pressure of Strip Load on Retaining Wall - Verifying Jarquio s Solution

LECTURE 16 GAUSS QUADRATURE In general for Newton-Cotes (equispaced interpolation points/ data points/ integration points/ nodes).

Applied Numerical Analysis (AE2220-I) R. Klees and R.P. Dwight

A Class of Numerical Integration Rules With First Order Derivatives

Exam 2. Average: 85.6 Median: 87.0 Maximum: Minimum: 55.0 Standard Deviation: Numerical Methods Fall 2011 Lecture 20

Chapter 5 - Quadrature

NUMERICAL ANALYSIS SYLLABUS MATHEMATICS PAPER IV (A)

Applied Numerical Analysis

School of Sciences Indira Gandhi National Open University Maidan Garhi, New Delhi (For January 2012 cycle)

Numerical Methods for Engineers and Scientists

Name of the Student: Unit I (Solution of Equations and Eigenvalue Problems)

Numerical Methods for Engineers

Physics 115/242 Romberg Integration

SBAME CALCULUS OF FINITE DIFFERENCES AND NUMERICAL ANLAYSIS-I Units : I-V

AM205: Assignment 3 (due 5 PM, October 20)

4.1 Classical Formulas for Equally Spaced Abscissas. 124 Chapter 4. Integration of Functions

Engg. Math. II (Unit-IV) Numerical Analysis

NUMERICAL MATHEMATICS AND COMPUTING

Principles of Scientific Computing Local Analysis

SOLUTION OF EQUATION AND EIGENVALUE PROBLEMS PART A( 2 MARKS)

NUMERICAL ANALYSIS PROBLEMS

Differentiation and Integration

6 Lecture 6b: the Euler Maclaurin formula

STATISTICS AND NUMERICAL METHODS

Exact and Approximate Numbers:

5 Numerical Integration & Dierentiation

FINITE-DIMENSIONAL LINEAR ALGEBRA

Transcription:

Numerical Integra/on

Applica/ons

The Trapezoidal Rule is a technique to approximate the definite integral where For 1 st order: f(a) f(b) a b

Error Es/mate of Trapezoidal Rule Truncation error: From Newton-Gregory formula (interpolation with equally spaced data) where h = step size between data points

Error Es/mate of Trapezoidal Rule take the first order with error term and integrate Since the limits of integration: Then

Error Es/mate of Trapezoidal Rule For small h, it is assumed that the term approximately constant, then is

Mul/ple- Applica/on Trapezoidal Rule Improving the accuracy of the trapezoidal rule is by dividing the integration interval from a to b into a number of segments and apply the method to each segment. Dividing the interval into equally spaced base points (x 0, x 1, x 2,, x n ), gives n segments of equal width h, where: The total integral: Substituting the trapezoidal rule for each interval yields:

Mul/ple- Applica/on Trapezoidal Rule Or in general form and the error is second derivative at point located at segment i

Simpson s 1/3 Rule uses second-order interpolating polynomial to approximate definite integrals where f 2 (x) is represented by a second-order Lagrange polynomial, hence a is designated as x 0 and b as x 2.

Or in compact form Simpson s 1/3 Rule and the truncation error where

Mul/ple- Applica/on Simpson s 1/3 Rule Simpson s 1/3 rule can be improved by dividing the integration interval into a number of segments of equal width: The total integral can be represented as: and the error: is as in previous slide

Simpson s 3/8 Rule uses a third-order Lagrange interpolating polynomial to approximate definite integrals, the total integral is expressed as and the error is as in previous slide

Example Consider the function over the fixed interval Apply the various quadrature formulas to approximate integral of the function. From substitution of the integral limits into f (x): For the trapezoidal rule,

For Simpson s 1/3 rule, Example For Simpson s 3/8 rule, For multiple application formulas, divide the integral limits into equally spaced points, such as, if n = 5, then

Example If we chose, then and the equally spaced points and their corresponding function values are For the multiple-application trapezoidal rule:

Example For the multiple-application Simpson s 1/3 rule:

Example To compute error estimate for the trapezoidal rule, the function s second derivative over the interval can be computed by differentiating the original functions twice to give: The average value of the second derivative: Use integration by parts to evaluate (see Improper Integrals)

Integra/on with Unequal Segments By applying the trapezoidal rule to each segment, the total integral for problems with unequal step sizes or segments is given by: where h i is the width of segment i.

Example Estimate the integral of spaced points with unequally and The exact value of the integration is 3.3333. The function values at each point are

Example Using the formula for integration with unequal segments: which represent an absolute relative error of

Romberg Integra/on This method uses Richardson extrapolation to approximate the definite integral Starting with the multiple application trapezoidal rule For estimates with halving the step size:

Romberg Integra/on To improve the estimates with higher accuracy, if the step size h is further halved

Example Use Romberg integration based on Richardson extrapolation to estimate the integral of with integration limits from a = 0 to b = 0.8. (The exact value of the integral is For integration limits a = 0 and b = 0.8, the segment h is 0.8: Halving the segment, now we have:

Example The total integral: Relative error:

Adap/ve Quadrature is used for unequally spaced points: where

And the error Adap/ve Quadrature

is given by Gauss Quadrature The truncation error The weights a i are given by where the abscissas x i are the n zeros of the Legendre polynomial P n

Gauss Quadrature Legendre polynomials P n (x) is given by

Improper Integrals Given an improper integral or an integral with a nonregular integrand, such as with unbounded derivatives. Before using some numerical method (e.g., Simpson s formula), the integral may be transformed by substitution, integration by parts or series expansion, etc. Example: the substitution x = t 2 transforms the integrals to the regular forms