numerical differentiation integration composite numerical
play

Numerical Differentiation & Integration Composite Numerical - PowerPoint PPT Presentation

Numerical Differentiation & Integration Composite Numerical Integration I Numerical Analysis (9th Edition) R L Burden & J D Faires Beamer Presentation Slides prepared by John Carroll Dublin City University c 2011 Brooks/Cole,


  1. Numerical Differentiation & Integration Composite Numerical Integration I Numerical Analysis (9th Edition) R L Burden & J D Faires Beamer Presentation Slides prepared by John Carroll Dublin City University c � 2011 Brooks/Cole, Cengage Learning

  2. Example Composite Simpson Composite Trapezoidal Example Outline A Motivating Example 1 Numerical Analysis (Chapter 4) Composite Numerical Integration I R L Burden & J D Faires 2 / 35

  3. Example Composite Simpson Composite Trapezoidal Example Outline A Motivating Example 1 The Composite Simpson’s Rule 2 Numerical Analysis (Chapter 4) Composite Numerical Integration I R L Burden & J D Faires 2 / 35

  4. Example Composite Simpson Composite Trapezoidal Example Outline A Motivating Example 1 The Composite Simpson’s Rule 2 The Composite Trapezoidal & Midpoint Rules 3 Numerical Analysis (Chapter 4) Composite Numerical Integration I R L Burden & J D Faires 2 / 35

  5. Example Composite Simpson Composite Trapezoidal Example Outline A Motivating Example 1 The Composite Simpson’s Rule 2 The Composite Trapezoidal & Midpoint Rules 3 Comparing the Composite Simpson & Trapezoidal Rules 4 Numerical Analysis (Chapter 4) Composite Numerical Integration I R L Burden & J D Faires 2 / 35

  6. Example Composite Simpson Composite Trapezoidal Example Outline A Motivating Example 1 The Composite Simpson’s Rule 2 The Composite Trapezoidal & Midpoint Rules 3 Comparing the Composite Simpson & Trapezoidal Rules 4 Numerical Analysis (Chapter 4) Composite Numerical Integration I R L Burden & J D Faires 3 / 35

  7. Example Composite Simpson Composite Trapezoidal Example Composite Numerical Integration: Motivating Example Application of Simpson’s Rule Use Simpson’s rule to approximate � 4 e x dx 0 Numerical Analysis (Chapter 4) Composite Numerical Integration I R L Burden & J D Faires 4 / 35

  8. Example Composite Simpson Composite Trapezoidal Example Composite Numerical Integration: Motivating Example Application of Simpson’s Rule Use Simpson’s rule to approximate � 4 e x dx 0 and compare this to the results obtained by adding the Simpson’s rule approximations for � 2 � 4 e x dx e x dx and 0 2 Numerical Analysis (Chapter 4) Composite Numerical Integration I R L Burden & J D Faires 4 / 35

  9. Example Composite Simpson Composite Trapezoidal Example Composite Numerical Integration: Motivating Example Application of Simpson’s Rule Use Simpson’s rule to approximate � 4 e x dx 0 and compare this to the results obtained by adding the Simpson’s rule approximations for � 2 � 4 e x dx e x dx and 0 2 and adding those for � 1 � 2 � 3 � 4 e x dx , e x dx , e x dx e x dx and 0 1 2 3 Numerical Analysis (Chapter 4) Composite Numerical Integration I R L Burden & J D Faires 4 / 35

  10. Example Composite Simpson Composite Trapezoidal Example Composite Numerical Integration: Motivating Example Solution (1/3) Simpson’s rule on [ 0 , 4 ] uses h = 2 Numerical Analysis (Chapter 4) Composite Numerical Integration I R L Burden & J D Faires 5 / 35

  11. Example Composite Simpson Composite Trapezoidal Example Composite Numerical Integration: Motivating Example Solution (1/3) Simpson’s rule on [ 0 , 4 ] uses h = 2 and gives � 4 e x dx ≈ 2 3 ( e 0 + 4 e 2 + e 4 ) = 56 . 76958 . 0 Numerical Analysis (Chapter 4) Composite Numerical Integration I R L Burden & J D Faires 5 / 35

  12. Example Composite Simpson Composite Trapezoidal Example Composite Numerical Integration: Motivating Example Solution (1/3) Simpson’s rule on [ 0 , 4 ] uses h = 2 and gives � 4 e x dx ≈ 2 3 ( e 0 + 4 e 2 + e 4 ) = 56 . 76958 . 0 The exact answer in this case is e 4 − e 0 = 53 . 59815, and the error − 3 . 17143 is far larger than we would normally accept. Numerical Analysis (Chapter 4) Composite Numerical Integration I R L Burden & J D Faires 5 / 35

  13. Example Composite Simpson Composite Trapezoidal Example Composite Numerical Integration: Motivating Example Solution (2/3) Applying Simpson’s rule on each of the intervals [ 0 , 2 ] and [ 2 , 4 ] uses h = 1 Numerical Analysis (Chapter 4) Composite Numerical Integration I R L Burden & J D Faires 6 / 35

  14. Example Composite Simpson Composite Trapezoidal Example Composite Numerical Integration: Motivating Example Solution (2/3) Applying Simpson’s rule on each of the intervals [ 0 , 2 ] and [ 2 , 4 ] uses h = 1 and gives � 4 � 2 � 4 e x dx e x dx + e x dx = 0 0 2 Numerical Analysis (Chapter 4) Composite Numerical Integration I R L Burden & J D Faires 6 / 35

  15. Example Composite Simpson Composite Trapezoidal Example Composite Numerical Integration: Motivating Example Solution (2/3) Applying Simpson’s rule on each of the intervals [ 0 , 2 ] and [ 2 , 4 ] uses h = 1 and gives � 4 � 2 � 4 e x dx e x dx + e x dx = 0 0 2 1 + 1 � e 0 + 4 e + e 2 � � e 2 + 4 e 3 + e 4 � ≈ 3 3 Numerical Analysis (Chapter 4) Composite Numerical Integration I R L Burden & J D Faires 6 / 35

  16. Example Composite Simpson Composite Trapezoidal Example Composite Numerical Integration: Motivating Example Solution (2/3) Applying Simpson’s rule on each of the intervals [ 0 , 2 ] and [ 2 , 4 ] uses h = 1 and gives � 4 � 2 � 4 e x dx e x dx + e x dx = 0 0 2 1 + 1 � e 0 + 4 e + e 2 � � e 2 + 4 e 3 + e 4 � ≈ 3 3 1 e 0 + 4 e + 2 e 2 + 4 e 3 + e 4 � � = 3 Numerical Analysis (Chapter 4) Composite Numerical Integration I R L Burden & J D Faires 6 / 35

  17. Example Composite Simpson Composite Trapezoidal Example Composite Numerical Integration: Motivating Example Solution (2/3) Applying Simpson’s rule on each of the intervals [ 0 , 2 ] and [ 2 , 4 ] uses h = 1 and gives � 4 � 2 � 4 e x dx e x dx + e x dx = 0 0 2 1 + 1 � e 0 + 4 e + e 2 � � e 2 + 4 e 3 + e 4 � ≈ 3 3 1 e 0 + 4 e + 2 e 2 + 4 e 3 + e 4 � � = 3 = 53 . 86385 The error has been reduced to − 0 . 26570. Numerical Analysis (Chapter 4) Composite Numerical Integration I R L Burden & J D Faires 6 / 35

  18. Example Composite Simpson Composite Trapezoidal Example Composite Numerical Integration: Motivating Example Solution (3/3) For the integrals on [ 0 , 1 ] , [ 1 , 2 ] , [ 3 , 4 ] , and [ 3 , 4 ] we use Simpson’s rule four times with h = 1 2 Numerical Analysis (Chapter 4) Composite Numerical Integration I R L Burden & J D Faires 7 / 35

  19. Example Composite Simpson Composite Trapezoidal Example Composite Numerical Integration: Motivating Example Solution (3/3) For the integrals on [ 0 , 1 ] , [ 1 , 2 ] , [ 3 , 4 ] , and [ 3 , 4 ] we use Simpson’s rule four times with h = 1 2 giving � 4 � 1 � 2 � 3 � 4 e x dx = e x dx + e x dx + e x dx + e x dx 0 0 1 2 3 Numerical Analysis (Chapter 4) Composite Numerical Integration I R L Burden & J D Faires 7 / 35

  20. Example Composite Simpson Composite Trapezoidal Example Composite Numerical Integration: Motivating Example Solution (3/3) For the integrals on [ 0 , 1 ] , [ 1 , 2 ] , [ 3 , 4 ] , and [ 3 , 4 ] we use Simpson’s rule four times with h = 1 2 giving � 4 � 1 � 2 � 3 � 4 e x dx = e x dx + e x dx + e x dx + e x dx 0 0 1 2 3 1 + 1 � e 0 + 4 e 1 / 2 + e � � e + 4 e 3 / 2 + e 2 � ≈ 6 6 + 1 + 1 e 2 + 4 e 5 / 2 + e 3 � e 3 + 4 e 7 / 2 + e 4 � � � 6 6 Numerical Analysis (Chapter 4) Composite Numerical Integration I R L Burden & J D Faires 7 / 35

  21. Example Composite Simpson Composite Trapezoidal Example Composite Numerical Integration: Motivating Example Solution (3/3) For the integrals on [ 0 , 1 ] , [ 1 , 2 ] , [ 3 , 4 ] , and [ 3 , 4 ] we use Simpson’s rule four times with h = 1 2 giving � 4 � 1 � 2 � 3 � 4 e x dx = e x dx + e x dx + e x dx + e x dx 0 0 1 2 3 1 + 1 � e 0 + 4 e 1 / 2 + e � � e + 4 e 3 / 2 + e 2 � ≈ 6 6 + 1 + 1 e 2 + 4 e 5 / 2 + e 3 � e 3 + 4 e 7 / 2 + e 4 � � � 6 6 1 � e 0 + 4 e 1 / 2 + 2 e + 4 e 3 / 2 + 2 e 2 + 4 e 5 / 2 + 2 e 3 + 4 e 7 / 2 + e 4 � = 6 Numerical Analysis (Chapter 4) Composite Numerical Integration I R L Burden & J D Faires 7 / 35

  22. Example Composite Simpson Composite Trapezoidal Example Composite Numerical Integration: Motivating Example Solution (3/3) For the integrals on [ 0 , 1 ] , [ 1 , 2 ] , [ 3 , 4 ] , and [ 3 , 4 ] we use Simpson’s rule four times with h = 1 2 giving � 4 � 1 � 2 � 3 � 4 e x dx = e x dx + e x dx + e x dx + e x dx 0 0 1 2 3 1 + 1 � e 0 + 4 e 1 / 2 + e � � e + 4 e 3 / 2 + e 2 � ≈ 6 6 + 1 + 1 e 2 + 4 e 5 / 2 + e 3 � e 3 + 4 e 7 / 2 + e 4 � � � 6 6 1 � e 0 + 4 e 1 / 2 + 2 e + 4 e 3 / 2 + 2 e 2 + 4 e 5 / 2 + 2 e 3 + 4 e 7 / 2 + e 4 � = 6 = 53 . 61622 . The error for this approximation has been reduced to − 0 . 01807. Numerical Analysis (Chapter 4) Composite Numerical Integration I R L Burden & J D Faires 7 / 35

  23. Example Composite Simpson Composite Trapezoidal Example Outline A Motivating Example 1 The Composite Simpson’s Rule 2 The Composite Trapezoidal & Midpoint Rules 3 Comparing the Composite Simpson & Trapezoidal Rules 4 Numerical Analysis (Chapter 4) Composite Numerical Integration I R L Burden & J D Faires 8 / 35

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