1 / 16

Section 5.7 Numerical Integration

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

ravi
Download Presentation

Section 5.7 Numerical Integration

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Section 5.7Numerical Integration

  2. a b a b a b 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) (2nd degree polynomials)

  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.

More Related