Professional Documents
Culture Documents
University of Palestine Gaza Strip Civil Engineering College Numerical Analysis CIVL 3309 Dr. Suhail Lubbad
University of Palestine Gaza Strip Civil Engineering College Numerical Analysis CIVL 3309 Dr. Suhail Lubbad
Gaza Strip
I = ∫ b
f . x/dx=F . x/∣a =F .b/−F. a/
a
I≡ :Integral of the function f(x)≡ integrand. The function independent variable is x ,
Such integral is taken between the limits a and b
The total value or summation of f . x/dx over the interval [ a b ]
Numerical integration
Pre-computer Era
1
equal-area graphical integration
2
Numerical integration or quadrature methods
to obtain integrals.
b b
I = ∫ ∫
f .x / dx≈ f n .x/dx
a a
b b
I = ∫ f .x/ dx≈ ∫ f 1 .x/ dx
a a
The equation of the line passing through f(a) and f(b) is?
f . b/ − f .a/
f 1 .x /=f .a/,
b−a
.x − a/ HOW?
1 3
Et = − f ′ ′ . 0 /.b − a/
12
where 0 lies between a and b, usually the average value of f ' ' is used.
If interested
Box 21.2 Derivation and Error Estimate of the Trapezoidal Rule
Average value of a function can be computed by
b
∫ f .x/ dx
a
Average (Mean) of f .x/ =
b−a
EXAMPLE 21.1
2 3 4 5
f .x/=0.2,25x − 200x ,675x − 900x ,400x
Et =1.640533−0.1728=1.467733
Ea = 2.56
Thus
Composite/Multiple Application Trapezoidal Rule
I = ∫ f . x / dx , ∫ f . x / dx , ⋯ , ∫ f .x / dx
x0 x1 xn−1
n−1
[ ]
n−1
=
h
f0.x/ , 2 ∑ f i.x/ , fn.x/ =.+
b−a /
i=1
2 i=1 width +
2n
average height
3
. b−a /
Error analysis is then: Ea = − 2 f ' ' .0/
-
12n
n
∑ f ' ' . 0i /
i=1
f ' ' .0 / =
where -
n
Computer Algorithms for the Trapezoidal Rule
Question 21.1
Analytically and
by trapezoid rule