Professional Documents
Culture Documents
Section S
Second Semester A.Y. 2013-2014
Gaussian Quadratures
A fixed number of abscissas and weights are chosen to ensure the
achievement of the maximum degree of precision possible
Mathematics Division
Institute of Mathematical Sciences and Physics
University of the Philippines Los Ba
nos
MATH 174
1 / 26
MATH 174
2 / 26
Romberg Integration
MATH 174
3 / 26
MATH 174
4 / 26
ba
.
2k 1
0.7500000000
0.7083333333
0.6970238095
0.6941218504
0.6933912022
0.6944444444
0.6932539683
0.6931545307
0.6931476528
0.6931746032
0.6931479015
0.6931471943
0.6931474776
0.6931471831
MATH 174
5 / 26
MATH 174
6 / 26
8 / 26
Estimation of the errors will result for the following termination rule.
Romberg Integration Algorithm Termination Rule
Let be the specified convergence tolerance. If
Rn,n Rn1,n1
<
2n1
then halt the algorithm. Else, proceed with iteration.
MATH 174
R2,2 R1,1
0.0277777778.
21
7 / 26
MATH 174
R3,3 R2,2
0.0003174603.
22
R4,4 R3,3
0.0000033907.
23
MATH 174
9 / 26
MATH 174
10 / 26
108
ex 1
dx,
x
R5,5 R4,4
0.00000001848125.
24
MATH 174
11 / 26
MATH 174
12 / 26
Z
Consider the (NOT-so improper) integral
quadrature rules, we can get the following tally of errors per varying
number of nodes.
n
2
4
8
16
32
64
EOC
TOC
Trapezoidal
3.502 102
1.193 102
3.982 103
1.311 103
4.269 104
1.380 104
1.5986
2
Simpsons
1.336 102
4.229 103
1.334 103
4.202 104
1.324 104
4.169 105
1.6651
4
Midpoint
1.117 102
3.963 103
1.361 103
4.568 104
1.509 104
4.930 105
1.5667
2
2-pt Gaussian
1.338 102
4.225 104
1.331 104
4.194 105
1.321 105
4.161 106
1.6659
4
Z
Consider A =
quadrature rules earlier with this new form for A yields the following error
data:
MATH 174
13 / 26
MATH 174
14 / 26
Trapezoidal
2.438 101
6.211 102
1.560 102
3.905 103
9.765 104
2.441 104
1.9939
2
Simpsons
2.500 102
1.563 103
9.766 105
6.104 106
3.815 107
2.384 108
4.0000
4
Midpoint
1.195 101
3.091 102
7.791 103
1.952 103
4.882 104
1.221 104
1.9894
2
2-pt Gaussian
1.042 103
6.510 105
4.069 106
2.543 107
1.589 108
9.934 1010
4.000
4
Removable Discontinuity
Recall that f (x) has a removable discontinuity at x = a if lim f (x) exists
xa
1 + 1 + x +
f (x) =
MATH 174
15 / 26
MATH 174
16 / 26
sin x
sin x
dx. Notice that even if f (x) = is undefined at
x
x
0
x = 0, lim f (x) = 0. So f has a removable discontinuity at x = 0.
2. B =
x0
f (x) =
.
x
1,
x=0
x3
x5
+ + ...
x5/2 x9/2
1/2
3!
5!
=
x
+
+ ....
3!
5!
x1/22
This shows that quadrature rules may not perform optimally with the
current integrand. Hence,
Z a change in variable is in place.
1
2 sin(u2 )du.
Let x = u2 = B =
MATH 174
17 / 26
MATH 174
18 / 26
f (x) = x2/3
(cos( x 1))e
3
x2 (1 + 3 x)
dx.
+
X
x2k/5
(1)k
(2k)!
k=1
4/15
x
x1/15
2
+ k/2
X
x
k!
x2/15
24
k=1
x7/30
+
X
!
(1)k xk/3
k=1
+ ....
lim f (x) = .
MATH 174
19 / 26
6
9 (cos u
30u
0
x0+
15
1)eu
du.
1 + u10
MATH 174
20 / 26
x0
The first summand has a removable discontinuity, while the second can
easily be computed manually.
Z
4. D =
0
ln x
dx. Let f be the integrand.
1 + x2
Notice that
lim f (x) =
x0
MATH 174
21 / 26
MATH 174
22 / 26
24 / 26
ex
dx.
x
1
= E =
If we let x =
u
Hence,
Substitution Rule
x=
1
u
MATH 174
23 / 26
e1/u
du
2
1/u
u
1
Z 1 1/u
e
E=
du.
u
0
MATH 174
Z
Z
6. F =
7. G =
t2 et dt.
Z
F =
Another way to solve this improper integral is via the substitution rule
ex
dx.
1 + x + x2
1
. Then
u
2
t2 et dt +
x = tan .
Z
e1/u
du.
u4
MATH 174
25 / 26
e tan
d.
1 + sin cos
MATH 174
26 / 26