1 / 32

Chapter 21 Numerical Differentiation

Chapter 21 Numerical Differentiation. Numerical Differentiation Chapter 21. Numerical differentiation has been introduced several times in this course. In this chapter more accurate formulas that retain more terms will be developed. First Let’s Review A little.

jhaynes
Download Presentation

Chapter 21 Numerical Differentiation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 21 Numerical Differentiation

  2. Numerical DifferentiationChapter 21 • Numerical differentiation has been introduced several times in this course.In this chapter more accurate formulas that retain more terms will be developed.

  3. First Let’s Review A little • We were first introduced to numerical differentiation in Chapter 4 – section 4.3.4

  4. Numerical Differentiation First forward difference

  5. Numerical Differentiation First backward difference

  6. Numerical Differentiation First centered difference

  7. Consider some data

  8. Consider some data

  9. Consider some data

  10. Consider some data

  11. Consider some data

  12. What if you wanted to find the acceleration, based on this data?

  13. h h h h h h Equation 4.24

  14. Now that we’ve reviewed let’s look at some more sophisticated methods for finding derivatives – in chapter 21

  15. High Accuracy Differentiation Formulas • High-accuracy divided-difference formulas can be generated by including additional terms from the Taylor series expansion. Solve for

  16. Inclusion of the 2nd derivative term has improved the accuracy to O(h2). • Similar improved versions can be developed for the backward and centered formulas as well as for the approximations of the higher derivatives.

  17. Richardson Extrapolation • We’ve looked at two ways to improve derivative estimates when employing finite divided differences: • Decrease the step size, or • Use a higher-order formula that employs more points. • A third approach, based on Richardson extrapolation, uses two derivative estimates to compute a third, more accurate approximation.

  18. Recall that Richardson extrapolation was used in Romberg integration • For centered difference approximations with O(h2). The application of this formula yields a new derivative estimate of O(h4).

  19. Derivatives of Unequally Spaced Data • Data from experiments or field studies are often collected at unequal intervals. One way to handle such data is to fit a second-order Lagrange interpolating polynomial. x is the value at which you want to estimate the derivative.

  20. Derivatives and Integrals for Data with Errors Differentiation tends to amplify errors Integration tends to smooth out errors

  21. Built-In Matlab Functions • diff • Assumes a spacing of 1 • gradient • Forward difference • Central difference • Backward difference • A single input assumes a spacing of 1 • Second field is available to specify the spacing

  22. gradient can be used to calculate partial derivatives

  23. Summary • Higher Order Derivative Approximations • Richardson Extrapolation • Built-In MATLAB functions • diff • gradient • Quiver Plots

More Related