Lecture 8, Numerical Differentiation
Lecture 8, Numerical Differentiation
Engineering Applications
(GENG-8030)
By:
Dr. Hassanzadeh
Numerical Differentiation
Winter 2023
Derivative at a point
• Geometric understanding
Numerical
Differentiation
x1, x2, x3, …., xn
Y1,y2,y3,…,yn
𝑓 ( 𝑥𝑖 )= 𝑦 𝑖
¿h
𝑦 =¿
order
of
accuracy
Example
Example: Find the first and second derivatives at all points with second order accuracy.
Sometimes order of accuracy is important
For loop to compute for all other points except than first and last
points
Proof of the formulas, using Taylor series:
two pints forward formulas for first derivative
• Proof:
Two point backward formula for first derivative
• Proof:
Drive the following formula
Proof: Two-point central formula for first derivative
proof
proof
proof