Chapter five numerical method
Chapter five numerical method
NUMERICAL DIFFERENTIATION
AND INTEGRATION
NUMERICAL DIFFERENTIATION
hD = logE = log(1+∆)
Numerical differentiation using backward difference operator
• On expansion, we have
1 2 3 4
D ( ...)
h 2 3 4
NUMERICAL DIFFERENTIATION
• Using
1 2 f 1 3 f 1 4 f 1
f ' (0.2) (f 1 ...)
h 2 3 4
Using
1 11 4
f ' ' (0) ( 2
f 0 3
f 0 f 0 ...)
h2 12
NUMERICAL DIFFERENTIATION
• Example 2: Compute f ‘(2.2) and f’’ (2.2) from the following tabular data
Solution
Since x = 2.2 appears at the end of the table, it is appropriate to use formulae
based on backward differences to find the derivatives. The backward
difference table for the given data is:
NUMERICAL DIFFERENTIATION
1 2 f3 3 f3 4 f3
f ' (2.2) (f 3 ...)
h 2 3 4
1 11 4
f ' ' (2.2) ( 2
f 3
f f 4 ...)
0.2 2 4 4
12
1 11
f " (2.2) ( 0.2964 0.0535 0.0094) 8.9629
1.22
12
NUMERICAL INTEGRATION
• Second, even if a closed integration formula exists, it might still not be the
most efficient way of calculating the integral.