Lar calc10 ch04_sec6
description
Transcript of Lar calc10 ch04_sec6
![Page 1: Lar calc10 ch04_sec6](https://reader035.fdocuments.in/reader035/viewer/2022062319/55896105d8b42a831c8b457d/html5/thumbnails/1.jpg)
Integration
Copyright © Cengage Learning. All rights reserved.
![Page 2: Lar calc10 ch04_sec6](https://reader035.fdocuments.in/reader035/viewer/2022062319/55896105d8b42a831c8b457d/html5/thumbnails/2.jpg)
Numerical Integration
Copyright © Cengage Learning. All rights reserved.
![Page 3: Lar calc10 ch04_sec6](https://reader035.fdocuments.in/reader035/viewer/2022062319/55896105d8b42a831c8b457d/html5/thumbnails/3.jpg)
3
Approximate a definite integral using the Trapezoidal Rule.
Approximate a definite integral using Simpson’s Rule.
Analyze the approximate errors in the Trapezoidal Rule and Simpson’s Rule.
Objectives
![Page 4: Lar calc10 ch04_sec6](https://reader035.fdocuments.in/reader035/viewer/2022062319/55896105d8b42a831c8b457d/html5/thumbnails/4.jpg)
4
The Trapezoidal Rule
![Page 5: Lar calc10 ch04_sec6](https://reader035.fdocuments.in/reader035/viewer/2022062319/55896105d8b42a831c8b457d/html5/thumbnails/5.jpg)
5
One way to approximate a definite integral is to use n trapezoids, as shown in Figure 4.42.
In the development of this method,assume that f is continuous and positive on the interval [a, b].
So, the definite integral
represents the area of the region bounded by the graph of f and the x-axis, from x = a to x = b.
Figure 4.42
The Trapezoidal Rule
![Page 6: Lar calc10 ch04_sec6](https://reader035.fdocuments.in/reader035/viewer/2022062319/55896105d8b42a831c8b457d/html5/thumbnails/6.jpg)
6
First, partition the interval [a, b] into n subintervals, each of width ∆x = (b – a)/n, such that
Then form a trapezoid for each
subinterval (see Figure 4.43).
Figure 4.43
The Trapezoidal Rule
![Page 7: Lar calc10 ch04_sec6](https://reader035.fdocuments.in/reader035/viewer/2022062319/55896105d8b42a831c8b457d/html5/thumbnails/7.jpg)
7
The area of the ith trapezoid is
This implies that the sum of the areas of the n trapezoids
The Trapezoidal Rule
![Page 8: Lar calc10 ch04_sec6](https://reader035.fdocuments.in/reader035/viewer/2022062319/55896105d8b42a831c8b457d/html5/thumbnails/8.jpg)
8
Letting you can take the limits as to obtain
The result is summarized in the following theorem.
The Trapezoidal Rule
![Page 9: Lar calc10 ch04_sec6](https://reader035.fdocuments.in/reader035/viewer/2022062319/55896105d8b42a831c8b457d/html5/thumbnails/9.jpg)
9
The Trapezoidal Rule
![Page 10: Lar calc10 ch04_sec6](https://reader035.fdocuments.in/reader035/viewer/2022062319/55896105d8b42a831c8b457d/html5/thumbnails/10.jpg)
10
Example 1 – Approximation with the Trapezoidal Rule
Use the Trapezoidal Rule to approximate
Compare the results for n = 4 and n = 8, as shown in Figure 4.44.
Figure 4.44
![Page 11: Lar calc10 ch04_sec6](https://reader035.fdocuments.in/reader035/viewer/2022062319/55896105d8b42a831c8b457d/html5/thumbnails/11.jpg)
11
When n = 4, ∆x = π/4, and you obtain
Example 1 – Solution
![Page 12: Lar calc10 ch04_sec6](https://reader035.fdocuments.in/reader035/viewer/2022062319/55896105d8b42a831c8b457d/html5/thumbnails/12.jpg)
12
When and you obtain
Example 1 – Solutioncont’d
![Page 13: Lar calc10 ch04_sec6](https://reader035.fdocuments.in/reader035/viewer/2022062319/55896105d8b42a831c8b457d/html5/thumbnails/13.jpg)
13
Simpson’s Rule
![Page 14: Lar calc10 ch04_sec6](https://reader035.fdocuments.in/reader035/viewer/2022062319/55896105d8b42a831c8b457d/html5/thumbnails/14.jpg)
14
Simpson’s Rule
One way to view the trapezoidal approximation of a definite
integral is to say that on each subinterval you approximate f
by a first-degree polynomial.
In Simpson’s Rule, named after the English mathematician
Thomas Simpson (1710–1761), you take this procedure
one step further and approximate f by second-degree
polynomials.
Before presenting Simpson’s Rule, we list a theorem for
evaluating integrals of polynomials of degree 2 (or less).
![Page 15: Lar calc10 ch04_sec6](https://reader035.fdocuments.in/reader035/viewer/2022062319/55896105d8b42a831c8b457d/html5/thumbnails/15.jpg)
15
Simpson’s Rule
![Page 16: Lar calc10 ch04_sec6](https://reader035.fdocuments.in/reader035/viewer/2022062319/55896105d8b42a831c8b457d/html5/thumbnails/16.jpg)
16
To develop Simpson’s Rule for approximating a definite integral, you again partition the interval [a, b] into n subintervals, each of width ∆x = (b – a)/n.
This time, however, n required to be even, and the subintervals are grouped in pairs such that
On each (double) subinterval [xi – 2, xi ], you can approximate f by a polynomial p of degree less than or equal to 2.
Simpson’s Rule
![Page 17: Lar calc10 ch04_sec6](https://reader035.fdocuments.in/reader035/viewer/2022062319/55896105d8b42a831c8b457d/html5/thumbnails/17.jpg)
17
For example, on the subinterval [x0, x2], choose the
polynomial of least degree passing through the points (x0, y0), (x1, y1), and (x2, y2), as shown in Figure 4.45.
Figure 4.45
Simpson’s Rule
![Page 18: Lar calc10 ch04_sec6](https://reader035.fdocuments.in/reader035/viewer/2022062319/55896105d8b42a831c8b457d/html5/thumbnails/18.jpg)
18
Now, using p as an approximation of f on this subinterval, you have, by Theorem 4.18,
Repeating this procedure on the entire interval [a, b]
produces the following theorem.
Simpson’s Rule
![Page 19: Lar calc10 ch04_sec6](https://reader035.fdocuments.in/reader035/viewer/2022062319/55896105d8b42a831c8b457d/html5/thumbnails/19.jpg)
19
Simpson’s Rule
![Page 20: Lar calc10 ch04_sec6](https://reader035.fdocuments.in/reader035/viewer/2022062319/55896105d8b42a831c8b457d/html5/thumbnails/20.jpg)
20
Use Simpson’s Rule to approximate
Compare the results for n = 4 and n = 8.
Example 2 – Approximation with Simpson’s Rule
![Page 21: Lar calc10 ch04_sec6](https://reader035.fdocuments.in/reader035/viewer/2022062319/55896105d8b42a831c8b457d/html5/thumbnails/21.jpg)
21
When n = 4, you have
When n = 8, you have
Example 2 – Solutioncont’d
![Page 22: Lar calc10 ch04_sec6](https://reader035.fdocuments.in/reader035/viewer/2022062319/55896105d8b42a831c8b457d/html5/thumbnails/22.jpg)
22
Error Analysis
![Page 23: Lar calc10 ch04_sec6](https://reader035.fdocuments.in/reader035/viewer/2022062319/55896105d8b42a831c8b457d/html5/thumbnails/23.jpg)
23
Error Analysis
When you use an approximation technique, it is important to know how accurate you can expect the approximation to be.
The following theorem gives the formulas for estimating the errors involved in the use of Simpson’s Rule and the Trapezoidal Rule.
In general, when using an approximation, you can think of the error E as the difference between and the approximation.
![Page 24: Lar calc10 ch04_sec6](https://reader035.fdocuments.in/reader035/viewer/2022062319/55896105d8b42a831c8b457d/html5/thumbnails/24.jpg)
24
Error Analysis
![Page 25: Lar calc10 ch04_sec6](https://reader035.fdocuments.in/reader035/viewer/2022062319/55896105d8b42a831c8b457d/html5/thumbnails/25.jpg)
25
Example 3 – The Approximate Error in the Trapezoidal Rule
Determine a value of n such that the Trapezoidal Rule will approximate the value of with an error that is less than or equal to 0.01.
Solution:
Begin by letting and finding the second derivative of f.
The maximum value of |f''(x)| on the interval [0, 1] is
|f''(0)| = 1.
![Page 26: Lar calc10 ch04_sec6](https://reader035.fdocuments.in/reader035/viewer/2022062319/55896105d8b42a831c8b457d/html5/thumbnails/26.jpg)
26
Example 3 – Solution
So, by Theorem 4.20, you can write
To obtain an error E that is less than 0.01, you must choose n such that 1/(12n2) ≤ 1/100.
cont’d
![Page 27: Lar calc10 ch04_sec6](https://reader035.fdocuments.in/reader035/viewer/2022062319/55896105d8b42a831c8b457d/html5/thumbnails/27.jpg)
27
So, you can choose n = 3 (because n must be greater than or equal to 2.89) and apply the Trapezoidal Rule, as shown in Figure 4.46, to obtain
Figure 4.46
Example 3 – Solutioncont’d
![Page 28: Lar calc10 ch04_sec6](https://reader035.fdocuments.in/reader035/viewer/2022062319/55896105d8b42a831c8b457d/html5/thumbnails/28.jpg)
28
So, by adding and subtracting the error from this estimate, you know that
Example 3 – Solutioncont’d