Numerical Computation and Optimization

Slides:



Advertisements
Similar presentations
Numerical Integration
Advertisements

Romberg Rule of Integration
CISE301_Topic61 SE301: Numerical Methods Topic 6 Numerical Differentiation Lecture 23 KFUPM Read Chapter 23, Sections 1-2.
NUMERICAL DIFFERENTIATION AND INTEGRATION
Numerical Computation
Chapter 7 Numerical Differentiation and Integration
Today’s class Romberg integration Gauss quadrature Numerical Methods
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.
Index FAQ Numerical Approximations of Definite Integrals Riemann Sums Numerical Approximation of Definite Integrals Formulae for Approximations Properties.
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.
Integrals 5.
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.
CSE 330 : Numerical Methods
Wicomico High School Mrs. J. A. Austin AP Calculus 1 AB Third Marking Term.
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.
EE3561_Unit 7Al-Dhaifallah EE 3561 : Computational Methods Unit 7 Numerical Integration Dr. Mujahed AlDhaifallah ( Term 342)
Numerical Methods For Slides Thanks to Lecture 6 Interpolation
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.
Trapezoidal Rule of Integration
11/30/ Romberg Rule of Integration Mechanical Engineering Majors Authors: Autar Kaw, Charlie Barker
12/1/ Trapezoidal Rule of Integration Civil Engineering Majors Authors: Autar Kaw, Charlie Barker
CSE 330 : Numerical Methods Lecture 15: Numerical Integration - Trapezoidal Rule Dr. S. M. Lutful Kabir Visiting Professor, BRAC University & Professor.
Distance Traveled Area Under a curve Antiderivatives
Ch 8.2: Improvements on the Euler Method Consider the initial value problem y' = f (t, y), y(t 0 ) = y 0, with solution  (t). For many problems, Euler’s.
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.
3/12/ Trapezoidal Rule of Integration Computer Engineering Majors Authors: Autar Kaw, Charlie Barker
SE301_Topic 6Al-Amer20051 SE301:Numerical Methods Topic 6 Numerical Integration Dr. Samir Al-Amer Term 053.
3/20/ Trapezoidal Rule of Integration Chemical Engineering Majors Authors: Autar Kaw, Charlie Barker
Quadrature – Concepts (numerical integration) Don Allen.
Numerical Analysis Lecture 28. Chapter 7 Numerical Differentiation and Integration.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 20 Numerical Integration of Functions.
Numerical Integration
Trapezoidal Rule of Integration
Air Force Admin College, Coimbatore
Chapter 7 Numerical Differentiation and Integration
Numerical Analysis Lecture 42.
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=
Copyright © Cengage Learning. All rights reserved.
Gauss Quadrature Rule of Integration
Differentiation-Continuous Functions
Chapter 22.
NUMERICAL DIFFERENTIATION AND INTEGRATION
Chapter 7 Numerical Differentiation and Integration
Trapezoidal Rule of Integration
Trapezoidal Rule of Integration
Copyright © Cengage Learning. All rights reserved.
Gauss Quadrature Rule of Integration
Numerical Analysis Lecture 26.
Copyright © Cengage Learning. All rights reserved.
Simpson’s 1/3rd Rule of Integration
Numerical Computation and Optimization
Numerical Integration of Functions
Simpson’s 1/3rd Rule of Integration
Pengintegralan Numerik (lanjutan) Pertemuan 10
Simpson’s 1/3rd Rule of Integration
Romberg Rule of Integration
Simpson’s 1/3rd Rule of Integration
Numerical Integration
Romberg Rule of Integration
Numerical Computation and Optimization
Romberg Rule of Integration
Romberg Rule of Integration
Air Force Admin College, Coimbatore
Presentation transcript:

Numerical Computation and Optimization Numerical Integration Romberg Rule By Assist Prof. Dr. Ahmed Jabbar

Basis of Romberg Rule Integration f(x) a b y x The process of measuring the area under a curve. Where: f(x) is the integrand a= lower limit of integration b= upper limit of integration

What is The Romberg Rule? Romberg Integration is an extrapolation formula of the Trapezoidal Rule for integration. It provides a better approximation of the integral by reducing the True Error.

Error in Multiple Segment Trapezoidal Rule The true error in a multiple segment Trapezoidal Rule with n segments for an integral Is given by where for each i, is a point somewhere in the domain , .

Error in Multiple Segment Trapezoidal Rule The term can be viewed as an approximate average value of in . This leads us to say that the true error, Et previously defined can be approximated as

Error in Multiple Segment Trapezoidal Rule Value Et 1 11868 807 7.296 --- 2 11266 205 1.854 5.343 3 11153 91.4 0.8265 1.019 4 11113 51.5 0.4655 0.3594 5 11094 33.0 0.2981 0.1669 6 11084 22.9 0.2070 0.09082 7 11078 16.8 0.1521 0.05482 8 11074 12.9 0.1165 0.03560 Table 1 shows the results obtained for the integral using multiple segment Trapezoidal rule for Table 1: Multiple Segment Trapezoidal Rule Values Exact value=11061

Error in Multiple Segment Trapezoidal Rule The true error gets approximately quartered as the number of segments is doubled. This information is used to get a better approximation of the integral, and is the basis of Richardson’s extrapolation.

Richardson’s Extrapolation for Trapezoidal Rule The true error, in the n-segment Trapezoidal rule is estimated as where C is an approximate constant of proportionality. Since Where TV = true value and = approx. value

Richardson’s Extrapolation for Trapezoidal Rule From the previous development, it can be shown that when the segment size is doubled and that 𝑇𝑉≈ 𝐼 2𝑛 + 𝐼 2𝑛 − 𝐼 𝑛 3 which is Richardson’s Extrapolation.

Example 1 The vertical distance covered by a rocket from 8 to 30 seconds is given by Use Richardson’s rule to find the distance covered. Use the 2-segment and 4-segment Trapezoidal rule results given in Table 1. b) Find the true error, Et for part (a). c) Find the absolute relative true error, for part (a).

Solution a) 𝐼 2 =11266𝑚 𝐼 4 =11113𝑚 Using Richardson’s extrapolation formula for Trapezoidal rule 𝑇𝑉≈ 𝐼 2𝑛 + 𝐼 2𝑛 − 𝐼 𝑛 3 and choosing n=2, 𝑇𝑉≈ 𝐼 4 + 𝐼 4 − 𝐼 2 3 =11113+ 11113−11266 3 =11062𝑚

Solution (cont.) b) The exact value of the above integral is Hence

Solution (cont.) c) The absolute relative true error would then be Table 2 shows the Richardson’s extrapolation results using 1, 2, 4, 8 segments. Results are compared with those of Trapezoidal rule.

Solution (cont.) Table 2: The values obtained using Richardson’s extrapolation formula for Trapezoidal rule for n Trapezoidal Rule for Trapezoidal Rule Richardson’s Extrapolation for Richardson’s Extrapolation 1 2 4 8 11868 11266 11113 11074 7.296 1.854 0.4655 0.1165 -- 11065 11062 11061 0.03616 0.009041 0.0000 Table 2: Richardson’s Extrapolation Values

Romberg Integration Romberg integration is same as Richardson’s extrapolation formula as given previously. However, Romberg used a recursive algorithm for the extrapolation. Recall This can alternately be written as

Romberg Integration Note that the variable TV is replaced by as the value obtained using Richardson’s extrapolation formula. Note also that the sign is replaced by = sign. Hence the estimate of the true value now is Where Ch4 is an approximation of the true error.

Romberg Integration Determine another integral value with further halving the step size (doubling the number of segments), 𝐼 4𝑛 𝑅 = 𝐼 4𝑛 + 𝐼 4𝑛 − 𝐼 2𝑛 3 It follows from the two previous expressions that the true value TV can be written as 𝑇𝑉≈ 𝐼 4𝑛 𝑅 + 𝐼 4𝑛 𝑅 − 𝐼 2𝑛 𝑅 15 = 𝐼 4𝑛 + 𝐼 4𝑛 𝑅 − 𝐼 2𝑛 𝑅 4 3−1 −1

Romberg Integration A general expression for Romberg integration can be written as 𝐼 𝑘,𝑗 = 𝐼 𝑘−1,𝑗+1 + 𝐼 𝑘−1,𝑗+1 − 𝐼 𝑘−1,𝑗 4 𝑘−1 −1 ,𝑘≥2 The index k represents the order of extrapolation. k=1 represents the values obtained from the regular Trapezoidal rule, k=2 represents values obtained using the true estimate as O(h2). The index j represents the more and less accurate estimate of the integral.

Example 2 The vertical distance covered by a rocket from t=8 to t=30 seconds is given by Use Romberg’s rule to find the distance covered. Use the 1, 2, 4, and 8-segment Trapezoidal rule results as given in the Table 1.

Solution From Table 1, the needed values from original Trapezoidal rule are where the above four values correspond to using 1, 2, 4 and 8 segment Trapezoidal rule, respectively.

Solution (cont.) To get the first order extrapolation values, Similarly,

Solution (cont.) For the second order extrapolation values, Similarly,

For the third order extrapolation values, Solution (cont.) For the third order extrapolation values, Table 3 shows these increased correct values in a tree graph.

Solution (cont.) 11868 1126 11113 11074 11065 11062 11061 1-segment Table 3: Improved estimates of the integral value using Romberg Integration 11868 1126 11113 11074 11065 11062 11061 1-segment 2-segment 4-segment 8-segment First Order Second Order Third Order