Presentation is loading. Please wait.

Presentation is loading. Please wait.

5.5 Numerical Integration. Using integrals to find area works extremely well as long as we can find the antiderivative of the function. But what if we.

Similar presentations


Presentation on theme: "5.5 Numerical Integration. Using integrals to find area works extremely well as long as we can find the antiderivative of the function. But what if we."— Presentation transcript:

1 5.5 Numerical Integration

2 Using integrals to find area works extremely well as long as we can find the antiderivative of the function. But what if we can’t find the anti-derivative? What if we don’t even have a function, but only a table of data measurements taken from real life?

3 Actual area under curve:

4 Left-hand rectangular approximation: Approximate area: (too low)

5 Approximate area: Right-hand rectangular approximation: (too high)

6 Averaging right and left rectangles… …produces the area of a trapezoid:

7 The area of a trapezoid can be found with the formula:

8

9 Notice how all the values in the middle show up twice when summing the areas of each trapezoid. This allows us to come up with a simple general formula called…

10 This gives us a better approximation than either left or right rectangles. Trapezoidal Rule: ( Δx = width of subinterval ) ( n = number of subintervals ) This also assumes that each trapezoid will have the same base. As you will see on your homework, that will not always be the case. When it happens, I’m sorry to say, you will simply have to work out each area one trapezoid at a time.

11 This is an even more efficient method than the Trapezoidal Rule but we won’t go into how it is derived. Instead, we’ll just demonstrate how it is used so you can use it in your work. Simpson’s Rule: ( Δx = width of subinterval, n must be even )

12 Example: Simpson’s Rule: ( Δx = width of subinterval, n must be even )

13 Simpson’s rule can also be interpreted as fitting parabolas to sections of the curve, which is why this example came out exactly. With a quadratic or cubic function, this rule will actually give an exact answer. The proof would just be too long to include here but… Simpson’s rule will usually give a very good approximation with relatively few subintervals. With Simpson’s Rule, however, the number of subintervals must be even. It can be a useful approximation when we have no equation, the data points are determined experimentally, and when there is evidence that the projected graph through the points is a curve. Like in this example…

14 Will has once again tempted fate by climbing into a faulty rocket as it climbs and falls yet again. Justin doesn’t have an equation for the rocket’s position but he does have a speed gun and is able to record the rocket’s velocity from launch to crash 15 seconds later. He takes this data down and creates the following table:

15 Where t is given in seconds and v ( t ) is given in feet/second. Approximate the rocket’s maximum height First, make a graph…

16 Since the rocket’s maximum height occurs at 10 seconds (where the positive velocity area ends), we can use either the trapezoid rule or Simpson’s rule to make our approximation. As long as we’re here, let’s use both.

17 The trapezoid rule gives us… [0 + 2(225 + 400 + 525 + 600 + 625 + 600 + 525 + 400 + 225) + 0]  4125 feet Simpson’s rule gives us… [ 2(2*225 + 400 + 2*525 + 600 + 2*625 + 600 + 2*525 + 400 + 2*225) ]  4166.67

18 Given the conditions of this problem, what should be true about the areas of these two shaded regions? They should be equal and therefore… Because the rocket should have hit the ground at t = 15 and therefore it’s displacement is 0

19 The End


Download ppt "5.5 Numerical Integration. Using integrals to find area works extremely well as long as we can find the antiderivative of the function. But what if we."

Similar presentations


Ads by Google