A Riemann sum is a method for approximating the total area underneath a curve on a graph. This...

31
Riemann Sums, Trapezoidal Rule, & Simpson’s Rule By: Carson Smith & Elisha Farley

Transcript of A Riemann sum is a method for approximating the total area underneath a curve on a graph. This...

Page 1: A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.

Riemann Sums, Trapezoidal Rule, & Simpson’s Rule

By: Carson Smith & Elisha Farley

Page 2: A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.

Riemann Sums

• A Riemann sum is a method for approximating the total area underneath a curve on a graph.

• This method is also known as taking an integral.

• There are 3 forms of Riemann Sums: Left, Right, and Middle.

Page 3: A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.

Left Riemann

Middle Riemann

Right Riemann

Riemann Sums Illustrated

Page 4: A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.

Riemann Sum Formula

4

1

4

01

1

0

2

x

dxxB

A

To find the intervals needed, use the formula:

Where B = the upper limit, A = the lower limit, and N = the number of rectangles used.

N = 4

b − a

n

Page 5: A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.

Riemann Sum Formula Cont.

f (0) = 0

f (1

4) =

1

16

f (1

2) =1

4

f (3

4) =

9

16f (1) =1

Then incorporate the previous intervals into the formula:

b − a

n( f (0) + f (

1

4) + f (

1

2) + f (

3

4) + f (1)

Page 6: A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.

Left Riemann Example

f (0) = 0

f (1

4) =

1

16

f (1

2) =1

4

f (3

4) =

9

16

For a Left Riemann, use all of the functions except for the last one.The Left Riemann under approximates the area under the curve.

2188.32

7

]16

9

4

1

16

10[

4

1

Page 7: A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.

Right Riemann Example

f (1

4) =

1

16

f (1

2) =1

4

f (3

4) =

9

16f (1) =1

For a Right Riemann, use all of the functions except for the last one.The Right Riemann over approximates the area under the curve.

4688.32

15

]116

9

4

1

16

1[4

1

Page 8: A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.

Middle Riemann ExampleFor a Middle Riemann, average all the intervals found and plug the averages into the functions.

The Middle Riemann is the closest approximation.

)1(

)4

3(

)2

1(

)4

1(

)0(

f

f

f

f

f

8

78

58

38

1

3281.64

21

]64

49

64

25

64

9

64

1[4

1

Page 9: A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.

Integration Answer

)]0(3

1[)]1(

3

1[

3

1

33

1

0

31

0

2

xdxx

3333.3

1

03

1

The Middle Riemann is the closest approximation

Page 10: A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.

Try A Left Riemann!

N = 4

x 30

2

Page 11: A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.

Left Riemann Solution

N = 4

x 30

2

2 −0

4=1

2

1

2[ f (0) + f (

1

2) + f (1) + f (

3

2)]

1

2(0 +

1

8+1+

27

8) =36

16= 2.25

Page 12: A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.

Riemann Sum Program Usage

1. Click the “PRGM” button.2. Select the RIEMANN program.3. Enter your f(x).4. Enter Lower & Upper bounds.5. Enter Partitions6. Select Left, Right, or Midpoint Sum

Page 13: A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.

Trapezoidal Rule

• Like Riemann Sums, Trapezoidal Rule approximates the are under

the curve using trapezoids instead of rectangles to better approximate.

Page 14: A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.

Trapezoidal Rule Illustrated

Page 15: A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.

Trapezoidal Rule Formula

• Use the same formula to find your intervals.

• Then plug your intervals into the equation:

b − a

n

b − a

2n[ f (x0) + 2 f (x1) + 2 f (x2) + ... f (xn )]

Page 16: A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.

Trapezoidal Rule Example

x 30

2

∫ dx

N = 4

b − a

n€

x =2 −0

4=1

2

f (0) = 0

f (1

2) =1

8f (1) =1

f (3

2) =27

8f (2) = 8

Page 17: A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.

Trapezoidal Rule Example Cont.

Remember to multiply all intervals by 2, excluding the first and last interval.

b − a

2n= Multiplier

2 −0

8=1

4

1

4[0 +2(

1

8) +2(1) +2(

27

8) +8] =

17

4= 4.25

Page 18: A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.

Try This Trapezoidal Rule Problem!

x 40

2

∫ dxN = 4

Page 19: A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.

Trapezoidal Rule Solution

x 40

2

∫ dxN = 4

2 −0

4=1

2

1

4[ f (0) +2 f (

1

2) +2 f (1) +2 f (

3

2) + f (2)]€

Multiplier =2 −0

8=1

4

1

4[0 +

1

8+2 +

81

8+16]

=113

16≈ 7.0625

Page 20: A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.

Trapezoidal Rule Program Usage

1. Click the “PRGM” button.2. Select the RIEMANN program.3. Enter your f(x).4. Enter Lower & Upper bounds.5. Enter Partitions6. Select Trapezoid Sum

Page 21: A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.

Simpson’s Rule

• Simpson’s rule, created by Thomas Simpson, is the most accurate approximation of the area under a curve as it uses quadratic polynomials instead of rectangles or trapezoids.

Page 22: A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.

Simpson’s Rule Formula

Simpson’s Rule can ONLY be used when there are an even number of partitions.

b − a

3n[ f (x0) + 4 f (x1) + 2 f (x2) + ... f (xn )]

Still use the formula:to find your intervals to plug into the equation.

b − a

n

Page 23: A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.

Simpson’s Rule Example

x 30

2

∫ dx

N = 4

b − a

n€

x =2 −0

4=1

2

f (0) = 0

f (1

2) =1

8f (1) =1

f (3

2) =27

8f (2) = 8

Page 24: A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.

Simpson’s Rule Example Cont.

b − a

3n= Multiplier

2 −0

12=1

6

1

6[0 + 4(

1

8) +2(1) + 4(

27

8) +8] =

24

6= 4

When using Simpson’s Rule, multiply all intervals excluding the first and the last alternately between 4 & 2, always starting with 4

f (0) = 0

f (1

2) =1

8f (1) =1

f (3

2) =27

8f (2) = 8

Page 25: A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.

Try This Simpson’s Rule Problem!

x 30

2

∫ + 3dx

n = 4

Page 26: A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.

Simpson’s Rule Solution

x 30

2

∫ + 3dx

n = 4

2 −0

4=1

2

Multiplier =2 −0

12=1

6

1

6[ f (0) + 4 f (

1

2) +2 f (1) + 4 f (

3

2) + f (2)]

1

6[3+

25

2+8 +

27

2+11]

=48

6= 8

Page 27: A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.

Simpson’s Rule Program Usage

1. Click the “PRGM” button.2. Select the SIMPSON program.3. Enter Lower & Upper bounds.4. Enter your N/2 Partitions.5. Enter your f(x)

Page 28: A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.

1994 AB 6

Page 29: A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.

1994 AB 6 “A” Solution

Page 30: A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.

1994 AB 6 “B” Solution

Page 31: A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.

1994 AB 6 “C” Solution