Lecture 26 Integration
Lecture 26 Integration
Numerical Integration
a
b
f ( x)dx
a
b
a
0 a1 x ... a n x
n
dx
b (b 2 a 2 ) (b n 1 a n 1 )
a
f ( x)dx a0 (b a) a1
2
... an
n 1
TRAPEZOIDAL RULE
When n=1
When n=2
When n=4
generalization
TRAPEZOIDAL RULE
Solution
TRAPEZOIDAL RULE
TRAPEZOIDAL RULE
SOLUTION
SOLUTION
SIMPSON’S 3/8 RULE
3
BOOLE’S RULE
SOLUTION
BOOLE’S RULE
WEDDLE’S RULE
SOLUTION
WEDDLE’S RULE
Successive application of
Richardson's Extrapolation
STOP if
I (n, n) I (n, n 1)
or
After a given number of steps,
for example, STOP at I(4,4)
The computations are continued until the successive values are close to each
other.
The general extrapolation formula used in this scheme is
Estimates using Trapezoid method intervals of size h, h/2, h/4, h/8 ...
b
are combined to improve the approximation of f(x) dx
a
Trapezoid M ethod :
n 1
b
f ( xi ) f ( x0 ) f ( xn )
1
f ( x )dx h
2
a i 1
It can be expressed as :
n
b
f ( x )dx ci f ( xi )
a
i 0
h i 1,2,..., n 1
where ci
0.5 h i 0 and n
Department of Computer Science 85
General Integration Formula
n
b
f ( x )dx ci f ( xi )
a
i 0
ci : Weights xi : Nodes
Problem :
How do we select ci and xi so that the formula
gives a good approximation of the integral?
An integral of the
d b
g(x, y) dx dy = VOLUME
c a
y=d
g(x, y) dx dy
c a
y=c
x=a x=b
Department of Computer Science
Double Integration
,
An integral of the
d b
g(x, y) dx dy = VOLUME
c a