Professional Documents
Culture Documents
Numerical Differentiation
Numerical Differentiation
© McGraw Hill 1
Numerical Differentiation
© McGraw Hill 2
© McGraw Hill 3
© McGraw Hill 4
High Accuracy Differentiation Formulas 1
© McGraw Hill 6
© McGraw Hill 7
Example 1
© McGraw Hill 8
9
Example 2
© McGraw Hill 9
Example 3
© McGraw Hill 10
Richardson Extrapolation 1
© McGraw Hill 11
Richardson Extrapolation 2
h2 h1 / 2
4 1
I I (h2 ) I (h1 )]
3 3
In a similar fashion, integral Eq. can be written for derivatives as
4 1
D D(h2 ) D(h1 )]
3 3
• For centered difference approximations with O(h 2 ).
The application of this formula yield a new derivative
estimate of O(h 4 ).
© McGraw Hill 12
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 differentiate
a 2nd-order Lagrange interpolating polynomial fit to three points:
2 x xi xi 1
f ( x) f ( xi 1 )
xi 1 xi xi 1 xi 1
2 x xi 1 xi 1
f ( xi )
xi xi 1 xi xi 1
2 x xi 1 xi
f ( xi 1 )
xi 1 xi 1 xi 1 xi
© McGraw Hill 13
Derivatives and Integrals for Data with
Errors
Figure 23.5 Illustration of how small data errors are amplifi ed by numerical differentiation:
(a) data with no error, (b) data modifi ed slightly, (c) the resulting numerical
differentiation of curve (a), and (d) the resulting differentiation of curve (b) manifesting
increased variability. In contrast, the reverse operation of integration [moving from (d) to
(b) by taking the area under (d)] tends to attenuate or smooth data errors
© McGraw Hill 14