Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 21 Numerical Differentiation.

Slides:



Advertisements
Similar presentations
Section 11.6 – Taylor’s Formula with Remainder
Advertisements

ES 240: Scientific and Engineering Computation. Chapter 17: Numerical IntegrationIntegration  Definition –Total area within a region –In mathematical.
Numerical Methods Lecture 14 Differentiation-Continuous Functions
Computational Modeling for Engineering MECN 6040
CISE301_Topic61 SE301: Numerical Methods Topic 6 Numerical Differentiation Lecture 23 KFUPM Read Chapter 23, Sections 1-2.
Part 5 Chapter 19 Numerical Differentiation PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The McGraw-Hill.
EE3561_Unit 6(c)AL-DHAIFALLAH14351 EE 3561 : Computational Methods Unit 6 Numerical Differentiation Dr. Mujahed AlDhaifallah ( Term 342)
NUMERICAL DIFFERENTIATION AND INTEGRATION
Numerical Computation
High Accuracy Differentiation Formulas
2. Numerical differentiation. Approximate a derivative of a given function. Approximate a derivative of a function defined by discrete data at the discrete.
Lecture 18 - Numerical Differentiation
CE33500 – Computational Methods in Civil Engineering Differentiation Provided by : Shahab Afshari
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Ordinary Differential Equations Equations which are.
SE301_14(c)AL-AMER20031 SE031Numerical Methods Topic 6 Numerical Differentiation Dr. Samir Al-Amer ( Term 053) Modified by Dr. Baroudi(072) Read chapter.
Chapter 19 Numerical Differentiation §Estimate the derivatives (slope, curvature, etc.) of a function by using the function values at only a set of discrete.
Initial-Value Problems
Chapter 7 Differentiation and Integration
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 181 Interpolation Chapter 18 Estimation of intermediate.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 181 Interpolation.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Interpolation Chapter 18.
1 Chapter 6 NUMERICAL DIFFERENTIATION. 2 When we have to differentiate a function given by a set of tabulated values or when a complicated function is.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 23 Numerical Differentiation.
Numerical Differentiation:1* Lecture (II)
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Numerical Differentiation and Integration Standing.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 171 Least.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Numerical Differentiation and Integration ~ Newton-Cotes.
NUMERICAL DIFFERENTIATION The derivative of f (x) at x 0 is: An approximation to this is: for small values of h. Forward Difference Formula.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Numerical Differentiation and Integration Standing.
Numerical Integration Formulas
Derivatives and Differential Equations
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Numerical Differentiation and Integration Part 6 Calculus.
Numerical Differentiation
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Numerical Differentiation and Integration ~ Integration.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 22.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
Today’s class Numerical Differentiation Finite Difference Methods Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 1.
MECN 3500 Inter - Bayamon Lecture Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Engineering Analysis – Computational Fluid Dynamics –
Chap. 11 Numerical Differentiation and Integration
MECN 3500 Inter - Bayamon Lecture 9 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 7 - Chapter 25.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 4 Chapter 15 General Least Squares and Non- Linear.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Truncation Errors and the Taylor Series Chapter 4.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 5 Integration and Differentiation.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 4 Chapter 17 and 18 Interpolation.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 6 - Chapters 22 and 23.
Quadrature – Concepts (numerical integration) Don Allen.
1 Numerical Differentiation. 2  First order derivatives  High order derivatives  Examples.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 20 Numerical Integration of Functions.
NUMERICAL DIFFERENTIATION Forward Difference Formula
High Accuracy Differentiation Formulas
Applied Numerical Methods
Chapter 18.
Differentiation-Continuous Functions
Numerical Integration Formulas
NUMERICAL DIFFERENTIATION AND INTEGRATION
Numerical Analysis Lecture 27.
Numerical Differentiation
Chapter 18.
Roundoff and Truncation Errors
Chapter 23.
Numerical differentiation
Numerical Differentiation Chapter 23
POLYNOMIAL INTERPOLATION
MATH 2140 Numerical Methods
MATH 174: NUMERICAL ANALYSIS I
Numerical Integration of Functions
SKTN 2393 Numerical Methods for Nuclear Engineers
Roundoff and Truncation Errors
Presentation transcript:

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 21 Numerical Differentiation

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 2 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.

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. First Let’s Review A little We were first introduced to numerical differentiation in Chapter 4 – section

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 4 Numerical Differentiation First forward difference

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 5 Numerical Differentiation First backward difference

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 6 Numerical Differentiation First centered difference

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Consider some data 7 Time, sDistance, mVelocity, m/s Forward difference Backward difference Centered difference

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Consider some data 8 Time, sDistance, mVelocity, m/s Forward difference Backward difference Centered difference

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Consider some data 9 Time, sDistance, mVelocity, m/s Forward difference Backward difference Centered difference

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Consider some data 10 Time, sDistance, m Velocity, m/s Forward difference Backward difference Centered difference Actual

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Consider some data 11 Time, sDistance, m Velocity, m/s Forward difference Backward difference Centered difference Actual

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. What if you wanted to find the acceleration, based on this data? 12 Time, sDistance, mVelocity,m/sAcceleration Forward difference

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 13 h hh h h h Equation 4.24

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Now that we’ve reviewed let’s look at some more sophisticated methods for finding derivatives – in chapter 21 14

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 15 High Accuracy Differentiation Formulas High-accuracy divided-difference formulas can be generated by including additional terms from the Taylor series expansion. Solve for

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 16 Inclusion of the 2 nd derivative term has improved the accuracy to O(h 2 ). Similar improved versions can be developed for the backward and centered formulas as well as for the approximations of the higher derivatives.

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 17

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 18

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 19

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 20 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.

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 21 For centered difference approximations with O(h 2 ). The application of this formula yields a new derivative estimate of O(h 4 ). Recall that Richardson extrapolation was used in Romberg integration

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 22 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.

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 23 Derivatives and Integrals for Data with Errors Differentiation tends to amplify errors Integration tends to smooth out errors

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 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 24

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 25

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 26

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 27

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 28

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 29

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 30 gradient can be used to calculate partial derivatives

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 31

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Summary Higher Order Derivative Approximations Richardson Extrapolation Built-In MATLAB functions –diff –gradient Quiver Plots 32