Docsity

Numerical Integration: Midpoint, Trapezoidal, and Simpson's Rule, Assignments of Mathematics

Partial preview of the text

Download Numerical Integration: Midpoint, Trapezoidal, and Simpson's Rule and more Assignments Mathematics in PDF only on Docsity!

Math 10360 – Example Set 05A

Midpoint Rule. Estimate the area under the graph of f (x) = e−x^2 over 0 ≤ x ≤ 2 using Midpoint rule with four sub-intervals. (Text notation: M 4 ).

0.5 1 1.5 2 x

Trapezoidal Rule. Estimate the area under the graph of f (x) = e−x^2 over 0 ≤ x ≤ 2 using Trape- zoidal rule with four sub-intervals. (Text notation: T 4 ).

0.5 1 1.5 2 x

Numerical Integration Summary

Midpoint rule is just Riemann sum using the midpoint in each sub-intervals.

Trapezoidal Rule. To estimate

∫ (^) b

a

f (x) dx with N equal sub-intervals, set ∆x = b − a N

If a = x 0 < x 1 < x 2 < .... < xN − 1 < xN = b Then ∫ (^) b

a

f (x) dx ≈ ∆x 2

Simpson’s Rule. To estimate

∫ (^) b

a

f (x) dx with N (even number) equal sub-intervals, set ∆x = b − a N

If a = x 0 < x 1 < x 2 < .... < xN − 1 < xN = b Then ∫ (^) b

a

f (x) dx ≈ ∆x 3

Math 10360 – Example Set 05B

  1. Set up a definite integral that gives the volume of the solid formed by revolving the region enclosed by the graphs of y = ex, y = 0, x = 0, and x = 1 about the line x = 2. Could you evaluate the integral?

Integration by parts

IDEA: Recall that Integration by Substitution “reverses” chain rule. Today we learn another technique, called integration by parts, which “reverses” the product rule.

Let u(x) and v(x) be two differentiable functions. Applying product rule, we have:

d dx (u(x)v(x)) = u(x)v′(x) + u′(x)v(x)

By definition of anti-derivative:

u(x)v(x) = =

u(x)v′(x) dx +

u′(x)v(x) dx.

Rearranging terms, we have: ∫ u(x)v′(x) dx = u(x)v(x) −

v(x)u′(x) dx

Note du dx = u′(x) ⇒ du =. Also dv dx = v′(x) ⇒ dv =.

Suppressing variable x, we get: ∫ u dv =. → Integration by Parts Formula

As a definite integral, we have: ∫ (^) b

a

u dv =.

  1. Evaluate the following integrals:

(a)

x cos(3x + 2) dx (b)

x^3 ln x dx