mata30
play

MATA30 Instructor: Dr. Ken Butler 1 Contact information (on - PowerPoint PPT Presentation

Welcome to MATA30 Instructor: Dr. Ken Butler 1 Contact information (on Intranet: intranet.utsc.utoronto.ca , My Courses) E-mail: butler@utsc.utoronto.ca Office: B 426 Office hours: to be announced Phone: 5654 (416-287-5654) 2


  1. Welcome to MATA30 Instructor: Dr. Ken Butler 1

  2. Contact information (on Intranet: intranet.utsc.utoronto.ca , My Courses) • E-mail: butler@utsc.utoronto.ca • Office: B 426 • Office hours: to be announced • Phone: 5654 (416-287-5654) 2

  3. Improper integrals � b a f ( x ) dx over finite interval, So far, have found integrals assuming function continuous on [ a, b ] . But in applications, have kinds of “infinity” to worry about: • one of the limits is infinite • the function becomes infinite in [ a, b ] Not all integrals with infinities have a finite answer; those that do said to converge , others diverge . 235

  4. Infinite limits � ∞ 1 (1 /x 2 ) dx . Consider Idea: replace infinite limit by finite b , let b tend to infinity: � b 1 1 = − 1 x 2 dx = [ − x − 1 ] b b + 1 . 1 As b → ∞ , 1 /b → 0 , so integral heads for 1. It seems to make � ∞ 1 (1 /x 2 ) dx = 1 . sense to say Seems strange that infinitely long region can have finite area. But f ( x ) → 0 fast enough : region gets less tall faster than it gets wider. 236

  5. Simply having f ( x ) → 0 is not enough – eg. f ( x ) = 1 /x : � b 1 x dx = [ln x ] b 1 = ln b − ln 1 . 1 As b increases, ln b also increases, so no finite value for integral. � ∞ � ∞ 1 (1 /x 2 ) dx converges , 1 (1 /x ) dx diverges . Integral � ∞ 0 e − 2 x dx ; � ∞ 0 xe − 2 x dx . More examples: If lower limit is −∞ , replace it by a and see what happens as � 0 −∞ e x dx , find a → −∞ . Thus to find � 0 e x dx = [ e x ] 0 a = 1 − e a . a Since a negative . e a → 0 , and integral converges to 1. 237

  6. If both limits are infinite, split into two parts, at x = c (value of c not � ∞ −∞ xe − x 2 / 2 dx , find important). Thus to find � b � 0 xe − x 2 / 2 dx + xe − x 2 / 2 dx a 0 [ − e − x 2 / 2 ] 0 a + [ − e − x 2 / 2 ] b = 0 − 1 + e − a 2 / 2 − e − b 2 / 2 + 1 . = As a and b decrease and increase, both exponentials head for 0, so integral converges to 0. (Could have guessed because xe − x 2 / 2 is odd function.) If either integral had diverged, whole integral divergent. 238

  7. When integrand becomes infinite Another kind of improper integral: value of function becomes infinite in interval. 0 (1 / √ x ) dx . � 2 First case: infinity at end of interval. Example: Can’t evaluate function at 0, so replace lower limit by a : � 2 √ 2 − 2 √ a. 1 √ x dx = [2 x 1 / 2 ] 2 a = 2 a √ 0 (1 / √ x ) dx = 2 � 2 Now let a → 0 : 2 . (Converges.) � 2 0 { 1 / ( x − 2) 2 } dx , trouble at 2. Diverges. Compare 239

  8. If infinity of function inside interval, split integral in two so infinity on end of each new integral. � 2 − 1 (1 /x 2 ) dx . Trouble at 0, so write as Example: � b � 2 1 1 x 2 dx + x 2 dx a − 1 [ − x − 1 ] b − 1 + [ − x − 1 ] 2 = a − 1 b + 1 − 1 2 + 1 = a. The two terms involving a and b get larger closer to 0, so the integral diverges. � 6 � ∞ 0 { 1 / ( x − 4) 2 / 3 } dx ; 0 (1 /x 2 ) dx . More examples: 240

  9. Approximating definite integrals Many functions don’t have elementary antiderivatives, so only way to find their integrals is numerically. Already saw left and right-hand sums (take enough rectangles to get accurate enough answer). But can require a lot of work. Idea: use function values more efficiently to get more accurate answer with less work. 241

  10. Midpoint rule With decreasing function, left-hand sum is too big, right-hand sum too small. How about evaluating function at midpoint each time? � 2 1 (1 /x ) dx . Know correct answer: ln 2 = 0 . 6931 , so Example: can compare approximations. Use 2 rectangles, width 0.5: x 1 1.25 1.5 1.75 2 1 /x 1 0.80 0.67 0.57 0.50 (1)(0 . 5) + (0 . 67)(0 . 5) 0 . 83 Left (0 . 67)(0 . 5) + (0 . 50)(0 . 5) 0 . 58 Right (0 . 80)(0 . 5) + (0 . 57)(0 . 5) 0 . 68 Mid Midpoint rule closest to right answer. 242

  11. Trapezoid rule A trapezoid is a rectangle with a triangle on top of it. Drawing trapezoid under function and finding its area should be more accurate than left and right sums. Turns out that answer for trapezoid rule is average of results from � 2 1 (1 /x ) dx , this gives 0.71. Close, but not left and right rules. For as close as midpoint rule. Function here is concave up, so trapezoid rule overestimates (top of each trapezoid above curve). At same time, midpoint rule underestimates. Generally true for concave-up functions. For concave-down functions, trapezoid underestimates, midpoint overestimates. 243

  12. Approximation errors and Simpson’s rule With left and right sums, found that doubling number of rectangles halved error. So each additional decimal place requires 10 times work! Left and right sums not practical for finding integrals accurately. Trapezoid and midpoint rules give two more decimal places of accuracy for 10 times work, so approach right answer much faster. 244

  13. Curious fact: error from midpoint rule about half error from trapezoid � 2 1 (1 /x ) dx : rule, and of opposite sign, eg. for n Trapezoid Midpoint 2 -0.0152 0.0074 10 -0.00062 0.00031 50 -0.0000250 0.0000125 250 -0.0000010 0.0000005 245

  14. Suggests even better rule: Simpson’s rule , estimating area as Simpson = 2 Midpoint + Trapezoid . 3 Turns out that 10 times the work gives four more digits of accuracy in the answer, so practical to get highly accurate answers. � 6 0 x 2 dx using Simpson with 4 rectangles. Need to Example: evaluate x 2 at these places: x 0 1.5 3 4.5 6 x 2 0 2.25 9 20.25 36 x 0.75 2.25 3.75 5.25 x 2 0.5625 5.0625 14.0625 27.5625 246

  15. Then: = (0 + 2 . 25 + 9 + 20 . 25)(1 . 5) = 47 . 25 left = (2 . 25 + 9 + 20 . 25 + 36)(1 . 5) = 101 . 25 right = (47 . 25 + 101 . 25) / 2 = 74 . 25 trapezoid = (0 . 56 + 5 . 06 + 14 . 06 + 27 . 56)(1 . 5) = 70 . 875 midpoint (2)(70 . 875) + 74 . 25 = = 72 Simpson 3 Turns out that correct answer is exactly 72, so Simpson exactly right. Function is concave up, so trapezoid is overestimate and midpoint underestimate. 247

  16. Computational issues Most general-purpose numerical integration routines (eg. on calculators) use Simpson’s rule. Not only because of accuracy, but also because of deciding when to stop. Eg. calculating Simpson for 2 rectangles, don’t generally know how accurate answer is. So compare answer for 4 rectangles – stop if close enough, otherwise continue to 8, 16, . . . rectangles as necessary. 248

  17. Nice computational feature of Simpson: when doubling number of rectangles, can re-use all previous work. Eg. 2 rectangles on [0 , 1] : evaluate function at 0 , 0 . 5 , 1 for left and right, 0.25 and 0.75 for midpoint. For 4 rectangles, evaluate function at 0 , 0 . 25 , 0 . 5 , 0 . 75 , 1 for left and right, using previous values for left, right and midpoint. Only new work is for 4-rectangle midpoint. 249

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend