Presentation is loading. Please wait.

Presentation is loading. Please wait.

Section 5.7 Numerical Integration. Approximations for integrals: Riemann Sums, Trapezoidal Rule, Simpson's Rule Riemann Sum: Trapezoidal Rule: Simpson’s.

Similar presentations


Presentation on theme: "Section 5.7 Numerical Integration. Approximations for integrals: Riemann Sums, Trapezoidal Rule, Simpson's Rule Riemann Sum: Trapezoidal Rule: Simpson’s."— Presentation transcript:

1 Section 5.7 Numerical Integration

2 Approximations for integrals: Riemann Sums, Trapezoidal Rule, Simpson's Rule Riemann Sum: Trapezoidal Rule: Simpson’s Rule: Approximation by Approximation by Approximation by constant functions linear functions parabolas (zero degree polynomials) (1st degree polynomials) (2 nd degree polynomials) abab ab

3 Riemann Sum: For a regular partition of an interval [a, b] with n subintervals, each of width, the definite integral is approximated by:

4 Trapezoidal Rule: For a regular partition of an interval [a, b] with n subintervals, each of width, the definite integral is approximated by:

5 Trapezoidal Rule: For a regular partition of an interval [a, b] with n subintervals, each of width, the definite integral is approximated by:

6 Trapezoidal Rule: For a regular partition of an interval [a, b] with n subintervals, each of width, the definite integral is approximated by:

7 Trapezoidal Rule: For a regular partition of an interval [a, b] with n subintervals, each of width, the definite integral is approximated by:

8 Ex. 1: Use the trapezoidal rule to approximate the definite integral with n = 6.

9 Simpson’s Rule: For a regular partition of an interval [a, b] with n subintervals, each of width, the definite integral is approximated by:

10 Simpson’s Rule: For a regular partition of an interval [a, b] with n subintervals, each of width, the definite integral is approximated by: Note: n must be an even integer.

11 Ex. 2: Use Simpson’s Rule to approximate the definite integral with n = 6.

12 Comparing the trapezoidal rule and Simpson’s rule: Note that the formulas are very similar in construction and differ mainly in the coefficients used in the summation: Simpson’s Rule is usually much more accurate. Your calculator’s fnInt feature uses a method known as Gaussian Quadrature that is more accurate and dependable than either the Trapezoidal Rule or Simpson’s Rule for problems where the function to be integrated is known.

13 Ex. 3: Use the trapezoidal rule to approximate the definite integral of the function y = f(x) over the interval [2, 5] when the function values are as given in the table.

14 Ex. 4: A town wants to drain and fill a small polluted swamp. The swamp averages 5 ft. deep. About how many cubic yards of dirt will it take to fill the area after the swamp is drained? (Use Simpson’s Rule.) Note that the restriction for Simpson’s Rule that requires an even number of subintervals is equivalent to requiring an odd number of measurements of the function.

15 Ex. 4: The swamp averages 5 ft. deep.

16 Question: Use the Trapezoidal Rule and Simpson’s Rule to estimate using n = 8. Solution: Trapezoidal Rule: ≈ 1.103210678 Simpson’s Rule: ≈ 1.098725349 The actual answer is ln 3 ≈ 1.098612289, so Simpson’s Rule was far more accurate.


Download ppt "Section 5.7 Numerical Integration. Approximations for integrals: Riemann Sums, Trapezoidal Rule, Simpson's Rule Riemann Sum: Trapezoidal Rule: Simpson’s."

Similar presentations


Ads by Google