11
Area Under a curve 5.1

5.1. When we use the midpoint rule or trapezoid rule we can actually calculate the maximum error in the calculation to get an idea how much we are off

Embed Size (px)

Citation preview

Page 1: 5.1.  When we use the midpoint rule or trapezoid rule we can actually calculate the maximum error in the calculation to get an idea how much we are off

Area Under a curve5.1

Page 2: 5.1.  When we use the midpoint rule or trapezoid rule we can actually calculate the maximum error in the calculation to get an idea how much we are off

Error

When we use the midpoint rule or trapezoid rule we can actually calculate the maximum error in the calculation to get an idea how much we are off of the actual value.

Page 3: 5.1.  When we use the midpoint rule or trapezoid rule we can actually calculate the maximum error in the calculation to get an idea how much we are off

Trapezoid Error

To calculate the error when using the trapezoid rule, we use the following formula:

where K is the maximum value of |f’’(x)| on the interval.

3

2

( )| |

12T

K b aE

n

Page 4: 5.1.  When we use the midpoint rule or trapezoid rule we can actually calculate the maximum error in the calculation to get an idea how much we are off

Midpoint Error

To calculate the error when using the midpoint rule, we use the following formula:

where K is the maximum value of |f’’(x)| on the interval.

3

2

( )| |

24M

K b aE

n

Page 5: 5.1.  When we use the midpoint rule or trapezoid rule we can actually calculate the maximum error in the calculation to get an idea how much we are off

Example

Use n=6 to approximate the area under the curve on the interval [0, 1] using the midpoint rule.

2

( ) xf x e

Page 6: 5.1.  When we use the midpoint rule or trapezoid rule we can actually calculate the maximum error in the calculation to get an idea how much we are off

Example

Calculate the error from the previous problem.

Page 7: 5.1.  When we use the midpoint rule or trapezoid rule we can actually calculate the maximum error in the calculation to get an idea how much we are off

Example

What would you make n t0 ensure that you are within .0001 of the actual area

Page 8: 5.1.  When we use the midpoint rule or trapezoid rule we can actually calculate the maximum error in the calculation to get an idea how much we are off

Example

Use n=6 to approximate the area under the curve on the interval [0, 1] using the trapezoid rule.

2

( ) xf x e

Page 9: 5.1.  When we use the midpoint rule or trapezoid rule we can actually calculate the maximum error in the calculation to get an idea how much we are off

Example

Calculate the error from the previous problem.

Page 10: 5.1.  When we use the midpoint rule or trapezoid rule we can actually calculate the maximum error in the calculation to get an idea how much we are off

Example

What would you make n to ensure that you are within .0001 of the actual area?

Page 11: 5.1.  When we use the midpoint rule or trapezoid rule we can actually calculate the maximum error in the calculation to get an idea how much we are off

Homework

Approximate the area under the curve on the interval [0, 4] using both the midpoint and trapezoid rules. Find the error of both. N=6

2y x