Romberg Rule of Integration

27
06/14/22 http:// numericalmethods.eng.usf.edu 1 Romberg Rule of Integration Major: All Engineering Majors Authors: Autar Kaw, Charlie Barker http://numericalmethods.eng.u sf.edu Transforming Numerical Methods Education for STEM Undergraduates

description

Romberg Rule of Integration. Major: All Engineering Majors Authors: Autar Kaw, Charlie Barker http://numericalmethods.eng.usf.edu Transforming Numerical Methods Education for STEM Undergraduates. Romberg Rule of Integration http://numericalmethods.eng.usf.edu. f(x). y. a. b. x. - PowerPoint PPT Presentation

Transcript of Romberg Rule of Integration

Page 1: Romberg Rule of Integration

04/19/23http://

numericalmethods.eng.usf.edu 1

Romberg Rule of Integration

Major: All Engineering Majors

Authors: Autar Kaw, Charlie Barker

http://numericalmethods.eng.usf.eduTransforming Numerical Methods Education for STEM

Undergraduates

Page 2: Romberg Rule of Integration

Romberg Rule of Integration

http://numericalmethods.eng.usf.edu

Page 3: Romberg Rule of Integration

http://numericalmethods.eng.usf.edu3

Basis of Romberg RuleIntegration

b

a

dx)x(fI

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

f(x)

a b

y

x

b

a

dx)x(f

Page 4: Romberg Rule of Integration

http://numericalmethods.eng.usf.edu4

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.

Page 5: Romberg Rule of Integration

http://numericalmethods.eng.usf.edu5

Error in Multiple Segment Trapezoidal Rule

The true error in a multiple segment Trapezoidal

Rule with n segments for an integral

Is given by

b

a

dx)x(fI

n

f

n

abE

n

ii

t

12

3

12

where for each i, is a point somewhere in the domain , .

i iha,hia 1

Page 6: Romberg Rule of Integration

http://numericalmethods.eng.usf.edu6

Error in Multiple Segment Trapezoidal Rule

The term can be viewed as an

n

fn

ii

1

approximate average value of in .

xf b,a

This leads us to say that the true error, Et

previously defined can be approximated as

2

1

nEt

Page 7: Romberg Rule of Integration

http://numericalmethods.eng.usf.edu7

Error in Multiple Segment Trapezoidal Rule

Table 1 shows the results obtained for the integral using multiple segment Trapezoidal rule for

n 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

30

8

892100140000

1400002000 dtt.

tlnx

Table 1: Multiple Segment Trapezoidal Rule Values

%t %a

Page 8: Romberg Rule of Integration

http://numericalmethods.eng.usf.edu8

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.

Page 9: Romberg Rule of Integration

http://numericalmethods.eng.usf.edu9

Richardson’s Extrapolation for Trapezoidal Rule

The true error, in the n-segment Trapezoidal rule is estimated as

tE

2n

CEt

where C is an approximate constant of proportionality. Since

nt ITVE

Where TV = true value and = approx. value

nI

Page 10: Romberg Rule of Integration

http://numericalmethods.eng.usf.edu10

Richardson’s Extrapolation for Trapezoidal Rule

From the previous development, it can be shown that

nITVn

C222

when the segment size is doubled and that

32

2nn

n

IIITV

which is Richardson’s Extrapolation.

Page 11: Romberg Rule of Integration

http://numericalmethods.eng.usf.edu11

Example 1

The vertical distance covered by a rocket from 8 to 30 seconds is given by

30

8

892100140000

1400002000 dtt.

tlnx

a) 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).

a

Page 12: Romberg Rule of Integration

http://numericalmethods.eng.usf.edu12

Solution

a) mI 112662 mI 111134

Using Richardson’s extrapolation formula for Trapezoidal rule

32

2nn

n

IIITV

and choosing n=2,

324

4

IIITV

3

112661111311113

m11062

Page 13: Romberg Rule of Integration

http://numericalmethods.eng.usf.edu13

Solution (cont.)

b)The exact value of the above integral is

30

8

892100140000

1400002000 dtt.

tlnx

m11061

Hence

ValueeApproximatValueTrueEt

1106211061

m1

Page 14: Romberg Rule of Integration

http://numericalmethods.eng.usf.edu14

Solution (cont.)

c)The absolute relative true error t would then be

10011061

1106211061

t

%.009040

Table 2 shows the Richardson’s extrapolation results using 1, 2, 4, 8 segments. Results are compared with those of Trapezoidal rule.

Page 15: Romberg Rule of Integration

http://numericalmethods.eng.usf.edu15

Solution (cont.)Table 2: The values obtained using Richardson’s extrapolation formula for Trapezoidal rule for

30

8

892100140000

1400002000 dtt.

tlnx

n Trapezoidal Rule

for Trapezoidal Rule

Richardson’s

Extrapolation

for Richardson’s Extrapolation

1248

11868112661111311074

7.2961.854

0.46550.1165

--110651106211061

--0.03616

0.0090410.0000Table 2: Richardson’s Extrapolation

Values

t t

Page 16: Romberg Rule of Integration

http://numericalmethods.eng.usf.edu16

Romberg IntegrationRomberg integration is same as Richardson’s extrapolation formula as given previously. However, Romberg used a recursive algorithm for the extrapolation. Recall

32

2nn

n

IIITV

This can alternately be written as

3

222

nnnRn

IIII

14 122

2

nn

n

III

Page 17: Romberg Rule of Integration

http://numericalmethods.eng.usf.edu17

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.

RnI 2

Romberg Integration

Hence the estimate of the true value now is

42 ChITV Rn

Where Ch4 is an approximation of the true error.

Page 18: Romberg Rule of Integration

http://numericalmethods.eng.usf.edu18

Romberg IntegrationDetermine another integral value with further halving the step size (doubling the number of segments),

3

2444

nnnRn

IIII

It follows from the two previous expressions that the true value TV can be written as

15

244

RnRnRn

IIITV

14 1324

4

RnRn

n

III

Page 19: Romberg Rule of Integration

http://numericalmethods.eng.usf.edu19

Romberg Integration

214 1

11111

k,

IIII

k

j,kj,kj,kj,k

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.

A general expression for Romberg integration can be written as

Page 20: Romberg Rule of Integration

http://numericalmethods.eng.usf.edu20

Example 2

The vertical distance covered by a rocket from

8t to 30t seconds is given by

30

8

892100140000

1400002000 dtt.

tlnx

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.

Page 21: Romberg Rule of Integration

http://numericalmethods.eng.usf.edu21

SolutionFrom Table 1, the needed values from original Trapezoidal rule are

1186811 ,I 1126621 ,I

1111331 ,I 1107441 ,I

where the above four values correspond to using 1, 2, 4 and 8 segment Trapezoidal rule, respectively.

Page 22: Romberg Rule of Integration

http://numericalmethods.eng.usf.edu22

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

110653

118681126611266

31,12,1

2,11,2

IIII

Similarly,

110623

112661111311113

32,13,1

3,12,2

IIII

110613

111131107411074

33,14,1

4,13,2

IIII

Page 23: Romberg Rule of Integration

http://numericalmethods.eng.usf.edu23

Solution (cont.)

For the second order extrapolation values,

1106215

110651106211062

151,22,2

2,21,3

IIII

Similarly,

1106115

110621106111061

152,23,2

3,22,3

IIII

Page 24: Romberg Rule of Integration

http://numericalmethods.eng.usf.edu24

Solution (cont.)

For the third order extrapolation values,

631323

2314,,

,,

IIII

63

110621106111061

m11061

Table 3 shows these increased correct values in a tree graph.

Page 25: Romberg Rule of Integration

http://numericalmethods.eng.usf.edu25

Solution (cont.)

11868

1126

11113

11074

11065

11062

11061

11062

11061

11061

1-segment

2-segment

4-segment

8-segment

First Order

Second Order Third Order

Table 3: Improved estimates of the integral value using Romberg Integration

Page 26: Romberg Rule of Integration

Additional ResourcesFor all resources on this topic such as digital audiovisual lectures, primers, textbook chapters, multiple-choice tests, worksheets in MATLAB, MATHEMATICA, MathCad and MAPLE, blogs, related physical problems, please visit

http://numericalmethods.eng.usf.edu/topics/romberg_method.html

Page 27: Romberg Rule of Integration

THE END

http://numericalmethods.eng.usf.edu