9
Definite Integrals Riemann Sums and Trapezoidal Rule

Definite Integrals Riemann Sums and Trapezoidal Rule

Embed Size (px)

Citation preview

Page 1: Definite Integrals Riemann Sums and Trapezoidal Rule

Definite Integrals

Riemann Sums and Trapezoidal Rule

Page 2: Definite Integrals Riemann Sums and Trapezoidal Rule

Why all this work? Why learn integration?

We are now going to look to find the numerical value of any curve f(x) from a to b, bounded by the x axis. (Fig 1)

The connection to integration that will be explained tomorrow. Right now we will concentrate on some of the methods that can be used to find the area under any curve.

Page 3: Definite Integrals Riemann Sums and Trapezoidal Rule

Method 1: Riemann Sums

(See Fig 2) If we partition a particular function into intervals from x0 (a) to xn (b) with evenly spaced subintervals (xk, xk+1, xk+2…) we could find the area under the curve IF we could find the area of all those little subintervals. The more subintervals, the more accurate the area, right?

Lets look at these as rectangles.

Page 4: Definite Integrals Riemann Sums and Trapezoidal Rule

Riemann Sums (cont.)

(Fig. 3) If we choose a particular number, c, in each subinterval, f(c)·Δx = the area of the particular rectangle. If we add all these rectangles, we’ll get a pretty close approximation of the total area under the curve.

Notice: Arectangle = length·width = f(c)·Δx

Page 5: Definite Integrals Riemann Sums and Trapezoidal Rule

Riemann Sums (cont.)

Whether we use the left side of the rectangle or the right side we can see that the more rectangles the more accurate the area. Here’s another

adds all the rectangles.

Area under curve =

n

n k kk 1

S f(c ) x

n

n k kk 1

lim f(c ) x

Page 6: Definite Integrals Riemann Sums and Trapezoidal Rule

Trapezoidal Rule

(Fig.4 ) Instead of rectangles, we look at the subintervals as trapezoids. Again, the more trapezoids you put in, the more accurate the estimation.

What is the formula for the area of a trapezoid?

Page 7: Definite Integrals Riemann Sums and Trapezoidal Rule

For just one trapezoid

If I add all the trapezoids (n of them)

1 2

1A h(b b )

2 0 1

1h(y y )

2

0 1 1 2 2 3 n 1 n

1 1 1 1h(y y ) h(y y ) h(y y ) ... h(y y )

2 2 2 2

0 1 2 3 n 1 n

1h(y 2y 2y 2y ... 2y y )

2

b ah

n

n=number of sub intervals

Page 8: Definite Integrals Riemann Sums and Trapezoidal Rule

Will we do this all the time now?

Good grief NO!! This is a very rote method. But as you see from the illustrations, the more intervals you have the more accurately you can find the area

Page 9: Definite Integrals Riemann Sums and Trapezoidal Rule

Example

1. Use trapezoidal rule to partition into 4

subintervals to estimate

TONIGHT’S PROBLEM

Use trapezoidal rule to partition into 4

subintervals to estimate

2x2

2

1

x dx

3x

2

3

0

x dx