1 chapter 5 numerical integration. 2 a review of the definite integral
TRANSCRIPT
![Page 1: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/1.jpg)
1
Chapter 5Numerical Integration
![Page 2: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/2.jpg)
2
A Review of the Definite Integral
![Page 3: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/3.jpg)
3
Riemann Sum A summation of the
form
is called a Riemann
sum.
![Page 4: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/4.jpg)
4
5.2 Improving the Trapezoid Rule The trapezoid rule for computing integrals:
The error:
![Page 5: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/5.jpg)
5
5.2 Improving the Trapezoid Rule
So that
Therefore,
Error estimation:
Improvement of the approximation:
the corrected trapezoid rule
![Page 6: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/6.jpg)
6
Example 5.1
![Page 7: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/7.jpg)
7
Example 5.2
![Page 8: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/8.jpg)
8
h4
![Page 9: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/9.jpg)
9
Approximate Corrected Trapezoid Rule
![Page 10: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/10.jpg)
10
![Page 11: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/11.jpg)
11
5.3 Simpson’s Rule and Degree of Precision
![Page 12: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/12.jpg)
12
let
![Page 13: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/13.jpg)
13
![Page 14: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/14.jpg)
14
Example 5.3
![Page 15: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/15.jpg)
15
![Page 16: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/16.jpg)
16
The Composite RuleAssume
Example 5.4
![Page 17: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/17.jpg)
17
![Page 18: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/18.jpg)
18
Example 5.5
h4
It’s OK!!
![Page 19: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/19.jpg)
19
Discussion From our experiments:
From the definition of Simpson’s rule:
Why? Why Simpson’s rule is “more accurate than it ought to be”?
![Page 20: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/20.jpg)
20
![Page 21: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/21.jpg)
21
![Page 22: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/22.jpg)
22
![Page 23: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/23.jpg)
23
![Page 24: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/24.jpg)
24
Example 5.6
![Page 25: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/25.jpg)
25
5.4 The Midpoint Rule Consider the integral:
And the Taylor approximation:
The midpoint rule:
Its composite rule:
because
![Page 26: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/26.jpg)
26
![Page 27: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/27.jpg)
27
![Page 28: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/28.jpg)
28
Example 5.7
![Page 29: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/29.jpg)
29
![Page 30: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/30.jpg)
30
![Page 31: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/31.jpg)
31
5.5 Application: Stirling’s Formula Stirling’s formula is an interest
ing and useful way to approximate the factorial function, n!, for large values of n.
Use Stirling’s formula to show that
for all x.
0!
lim
n
xn
n
Example
![Page 32: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/32.jpg)
32
5.6 Gaussian Quadrature Gaussian quadrature is a very powerful tool for approximati
ng integrals. The quadrature rules are all base on special values of weigh
ts and abscissas (called Gauss points) The quadrature rule is written in the form
n
i
ni
nin dxxfxfwfG
1
1
1
)()( )()()(
weights Gauss points
![Page 33: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/33.jpg)
33
![Page 34: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/34.jpg)
34
Example 5.8
![Page 35: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/35.jpg)
35
Question
k
×
![Page 36: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/36.jpg)
36
Discussion The high accuracy of Gaussian quadrature then comes from the f
act that it integrates very-high-degree polynomials exactly.
We should choose N=2n-1, because a polynomial of degree 2n-1 has 2n coefficients, and thus the number of unknowns (n weights plus n abscissas) equals the number of equations.
Taking N=2n will yield a contradiction.
![Page 37: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/37.jpg)
37
Only to find an example
![Page 38: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/38.jpg)
38
![Page 39: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/39.jpg)
39
Finding Gauss Points
![Page 40: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/40.jpg)
40
Theorem 5.3
![Page 41: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/41.jpg)
41
Theorem 5.4
![Page 42: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/42.jpg)
42
![Page 43: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/43.jpg)
43
Other Intervals, Other Rules
)1)((2
1 zabax
![Page 44: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/44.jpg)
44
Example 5.9
Table 5.5
![Page 45: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/45.jpg)
45
Error estimation!! See exercise!!
![Page 46: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/46.jpg)
46
Example 5.10
![Page 47: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/47.jpg)
47
![Page 48: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/48.jpg)
48
5.7 Extrapolation Methods One of the most important ideas in
computational mathematics is— We can take the information from a few
approximations and Use that to both estimate the error in the
approximation and generate a significantly improved approximation
In this section we will embark on a more detailed study of some of these ideas.
![Page 49: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/49.jpg)
49
Approximation
![Page 50: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/50.jpg)
50
Estimating p
![Page 51: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/51.jpg)
51
Example 5.11
![Page 52: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/52.jpg)
52
![Page 53: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/53.jpg)
53
Example 5.12
)(",)(',0 when4
1)(",
2
1)(' ,)( 2/32/12/1
xfxfx
xxfxxfxxf
![Page 54: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/54.jpg)
54
![Page 55: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/55.jpg)
55
Error Estimation and an Improved Approximation
I2n-In
![Page 56: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/56.jpg)
56
Example 5.13
![Page 57: 1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral](https://reader030.vdocument.in/reader030/viewer/2022032702/56649cc35503460f9498c1a9/html5/thumbnails/57.jpg)
57
Example 5.14
O(h2): Error of trapezoid ruleO(h4): Error of Richardson extrapolation