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

## 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:

Section 5.7 Numerical Integration

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

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

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

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

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

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

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

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

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.

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

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.

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.

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.

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

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