0% found this document useful (0 votes)
12 views22 pages

Integration Web

Uploaded by

benclick19
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views22 pages

Integration Web

Uploaded by

benclick19
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

11/28/2007

Numerical Integration

Quadrature

1
11/28/2007

Newton-Cotes Quadrature
(quadrature based on polynomial interpolation)

2
11/28/2007

Integration The process of measuring


the area under a curve.

b ∫ f ( x )dx
a
f(x)
I = ∫ f ( x )dx y

Where:
f(x) is the integrand
a= lower limit of integration
b= upper limit of integration

a b x

Approximate f (x) by a straight line

3
11/28/2007

Derivation of trapezoidal rule from Lagrange Polynomial

Integrate P1 to get trapezoidal rule


Integrate E1 to get the truncation error/degree of precision

Approximate f (x) by a quadratic curve

4
11/28/2007

Derivation of Simpson’s rule from Lagrange Polynomial

Integrate P2 to get Simpson’s rule


Integrate E2 to get the truncation error/degree of precision

Approximate f (x) by a cubic curve

5
11/28/2007

For a fair comparison of various methods use the same number of


function evaluations in each method.
E.g. Five evaluations in [x0,x4]

composite trapezoidal rule

composite Simpson’s rule

6
11/28/2007

7
11/28/2007

8
11/28/2007

9
11/28/2007

Composite Simpson’s Rule


f(x)

b x2 x4
∫ f ( x )dx = ∫ f ( x )dx + ∫ f ( x )dx + .....
a x0 x2
. . .
x2 M

+ ∫ f ( x)dx x

. x 2 M −2 x0 x2 x2M x2M
-2

. Apply Simpson’s Rule over each interval,

b
⎡ f ( x0 ) + 4 f ( x1 ) + f ( x2 )⎤
∫ f ( x )dx = ( x2 − x0 )⎢ ⎥⎦ + ...
a ⎣ 6
⎡ f ( x2 M − 2 ) + 4 f ( x2 M −1 ) + f ( x2 M ) ⎤
+ ( x2 M − x 2 M − 2 ) ⎢ ⎥⎦
⎣ 6

xi − xi − 2 = 2 h

Composite Simpson’s Rule


Then
b
⎡ f ( x0 ) + 4 f ( x1 ) + f ( x2 )⎤
∫ f ( x )dx = 2h ⎢ ⎥⎦ + ...
a ⎣ 6
⎡ f ( x2 ) + 4 f ( x3 ) + f ( x4 )⎤
+ 2h ⎢ ⎥⎦ + ...
⎣ 6

⎡ f ( x2 M − 2 ) + 4 f ( x2 M −1 ) + f ( x2 M ) ⎤
+ 2h ⎢ ⎥⎦
⎣ 6
b
∫ f ( x )dx =
h
[ f ( x0 ) + 4{ f ( x1 ) + f ( x3 ) + ... + f ( x2 M −1 )}+ ...]
a 3
... + 2{ f ( x2 ) + f ( x4 ) + ... + f ( x2 M − 2 )}+ f ( x2 M )}]

⎡ ⎤
h⎢M
= ∑ ( f ( x2i −2 ) + 4 f ( x2i −1 ) + f ( x2i ) )⎥⎥
3 ⎢ i =1
⎣⎢ ⎦⎥

10
11/28/2007

Recursive Rules

11
11/28/2007

12
11/28/2007

13
11/28/2007

Romberg Integration

recall that

14
11/28/2007

Romberg Integration
The pattern for integration rules of increasing accuracy is of the form:

.....

Romberg Integration relies on


Richardson’s extrapolation

15
11/28/2007

16
11/28/2007

17
11/28/2007

Gauss Quadrature

18
11/28/2007

Basis of the Gaussian


Quadrature Rule
Previously, the Trapezoidal Rule can be developed by the method
of undetermined coefficients as:

b
∫ f ( x )dx ≅ c1 f ( a ) + c 2 f ( b )
a

b−a b−a
= f(a)+ f (b)
2 2

Basis of the Gaussian


Quadrature Rule

The two-point Gauss Quadrature Rule is an extension of the


Trapezoidal Rule approximation where the arguments of the
function are not predetermined as a and b but as unknowns
x1 and x2. In the two-point Gauss Quadrature Rule, the
integral is approximated as

b
I = ∫ f ( x )dx ≈ c1 f ( x1 ) + c 2 f ( x 2 )
a

19
11/28/2007

To find wi, xi we need four conditions


= find wi, xi so that the integration rule has degree of precision 3

20
11/28/2007

21
11/28/2007

22

You might also like