Numerical Integration

Slides:



Advertisements
Similar presentations
Mathematics1 Mathematics 1 Applied Informatics Štefan BEREŽNÝ.
Advertisements

Section 5.7 Numerical Integration. Approximations for integrals: Riemann Sums, Trapezoidal Rule, Simpson's Rule Riemann Sum: Trapezoidal Rule: Simpson’s.
Chapter 7 Numerical Differentiation and Integration
8 TECHNIQUES OF INTEGRATION. There are two situations in which it is impossible to find the exact value of a definite integral. TECHNIQUES OF INTEGRATION.
1 Example 1 (a) Estimate by the Midpoint, Trapezoid and Simpson's Rules using the regular partition P of the interval [0,2] into 6 subintervals. (b) Find.
Integrals 5.
Numerical Computation
4.6 Numerical Integration Trapezoid and Simpson’s Rules.
4.6 Numerical Integration. The Trapezoidal Rule One method to approximate a definite integral is to use n trapezoids.
1 Trapezoidal Rule of Integration. What is Integration Integration: The process of measuring the area under a function.
Copyright © Cengage Learning. All rights reserved.
Infinite Series Copyright © Cengage Learning. All rights reserved.
7 Applications of Integration
Integration 4 Copyright © Cengage Learning. All rights reserved.
Homework questions thus far??? Section 4.10? 5.1? 5.2?
Integration Copyright © Cengage Learning. All rights reserved.
The Trapezoidal Rule Some elementary functions simply do not have antiderivatives that are elementary functions. For example, there is no elementary function.
CHAPTER 4 SECTION 4.2 AREA.
Trapezoidal Rule of Integration
Section 5.9 Approximate Integration Practice HW from Stewart Textbook (not to hand in) p. 421 # 3 – 15 odd.
Definite Integrals Riemann Sums and Trapezoidal Rule.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 6 - Chapter 21.
1 Warm-Up a)Write the standard equation of a circle centered at the origin with a radius of 2. b)Write the equation for the top half of the circle. c)Write.
Chapter 6 Integration Section 4 The Definite Integral.
Applications of Integration 7 Copyright © Cengage Learning. All rights reserved.
4.3 Riemann Sums and Definite Integrals
Integration Copyright © Cengage Learning. All rights reserved.
4 Integration.
Numerical Integration
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
CHAPTER 3 NUMERICAL METHODS
Air Force Admin College, Coimbatore
7 Applications of Integration
Part 6 - Chapter 21.
Chapter 7 Numerical Differentiation and Integration
Approximate Integration
Copyright © Cengage Learning. All rights reserved.
NUMERICAL INTEGRATION
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Integration Review Problems
Simpson’s Rule Nicole Typaldos.
TECHNIQUES OF INTEGRATION
Chapter 7 Numerical Differentiation and Integration
Copyright © Cengage Learning. All rights reserved.
Composite Numerical Integration
MATH 1910 Chapter 4 Section 2 Area.
Numerical Analysis Lecture 26.
Ch. 6 – The Definite Integral
Copyright © Cengage Learning. All rights reserved.
Chapter 6 Applications of Derivatives Section 6.5 Trapezoidal Rule.
Applications of Integration
7 Applications of Integration
Riemann Sums and Definite Integrals
AREA Section 4.2.
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Numerical Computation and Optimization
Objectives Approximate a definite integral using the Trapezoidal Rule.
Increasing and Decreasing Functions and the First Derivative Test
Copyright © Cengage Learning. All rights reserved.
7 Applications of Integration
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
AREA Section 4.2.
Section 4 The Definite Integral
Air Force Admin College, Coimbatore
Presentation transcript:

Numerical Integration MATH 1910 Chapter 4 Section 6 Numerical Integration

Objectives 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.

The Trapezoidal Rule 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 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 The area of the ith trapezoid is This implies that the sum of the areas of the n trapezoids

The Trapezoidal Rule Letting you can take the limits as to obtain The result is summarized in the following theorem.

The Trapezoidal Rule

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

Example 1 – Solution When n = 4, ∆x = π/4, and you obtain

Example 1 – Solution cont’d When and you obtain

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).

Simpson’s Rule

Simpson’s Rule 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 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 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

Example 2 – Approximation with Simpson’s Rule Use Simpson’s Rule to approximate Compare the results for n = 4 and n = 8.

Example 2 – Solution cont’d When n = 4, you have When n = 8, you have

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.

Error Analysis

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.

Example 3 – Solution So, by Theorem 4.20, you can write cont’d 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.

Example 3 – Solution cont’d 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 – Solution cont’d So, by adding and subtracting the error from this estimate, you know that