![]()
MATH566 Lesson 17: Numerical differentiation
|
Approximate derivative by derivative of approximation
Finite difference formulas from Taylor series
![]()
Calculus review
|
differentiable up to order ,
The derivative of is the function
The differentiation operator is linear
Geometric interpretation of derivatives:
first derivative: slope of tangent
second derivative: related to curvature
![]()
Derivative approximation
|
Consider , , difficult to compute
Approximation , , simpler to compute
Examples: interpolation, least squares
Basic idea: approximation of derivative = derivative of approximation
Example: consider data . Interpolant is
![]()
Derivatives from Newton form of interpolating polynomial
|
For data differentiation of the Lagrange form
leads to derivatives of degree polynomials
The Newton form
requires less effort, derivative of polynomials of degree
![]()
Uniform grid formulas - Finite differences
|
Often ,, i.e., sampled at equidistant points
Sample point positions with respect to evaluation point:
Left sample points
Centered sample points
Right sample points
![]()
Derivative approximation from Taylor series
|
Consider , , hard to compute, known at sample points , ,
An alternative approach to obtaining approximations of from the sample points is through linear combinations of Taylor series
Example:
Eliminate from above and obtain
![]()
Finite difference analysis
|
Taylor series expansions are used to obtain the order of accuracy of a formula (do not confuse with order of convergence of a sequence)
From previous example
hence the approximation is of second order (of accuracy)
Example: determine order of accuracy of
![]()
Finite difference formula types
|
Position of evaluation of derivative point w.r.t. sample points
left: evaluate using sample points
right: evaluate using sample points
centered: evaluate using sample points
(note higher order accurach of centered formulas)