Professional Documents
Culture Documents
11/11/2021 1
Definition
lim f ( x ) − f ( x − x )
f ( x ) =
x → 0 x
.
Slope at xi
f(x)
xi x
2
Backward Divided Difference
f (x ) − f (x − x )
f (x )
x
f (x)
x
x − x x
f ( xi ) − f (xi − x )
f ( xi )
x
3
Example
Example:
The velocity of a rocket is given by
14 10 4
(t ) = 2000 ln − 9.8t ,0 t 30
14 10 4
− 2100 t
where given in m/s and t is given in seconds. Use backward difference approximation
Of the first derivative of ν(t ) to calculate the acceleration at t = 16s. Use a step size of
t = 2s.
Solution:
(ti ) − (ti −1 )
a(ti )
t
ti = 16
4
Example (contd.)
Δt = 2
ti −1 = ti − t = 16 − 2 = 14
(16) − (14)
a(16) =
2
14 10 4
(16 ) = 2000 ln − 9.8(16 ) = 392.07m / s
14 10 4
− 2100 (16 )
14 10 4
(14 ) = 2000 ln − 9.8(14 )
= 334.24m / s
14 10 − 2100(14 )
4
5
Example (contd.)
Hence
(16) − (14)
a(16) = = 392.07 − 334.24 = 28.915m / s 2
2
The exact value of a(16) can be calculated by differentiating
14 10 4
(t ) = 2000 ln − 9.8t
14 10 − 2100t
4
as
a(t ) =
d
(t ) = − 4040 − 29.4t
dt − 200 + 3t
a(16) = 29.674m / s 2
6
Example (contd.)
The absolute relative true error is
TrueValue − ApproximateValue
t = 100
TrueValue
29.674 − 28.915
= 100
29.674
= 2.557%
7
Effect Of Step Size
f ( x) = 9e 4 x
Value of f ' (0.2) Using backward Divided difference method.
8
Effect of Step Size in Backward
Divided Difference Method
85
75
1 3 5 7 9 11
Num ber of tim es the step size is halved, n
9
Effect of Step Size on
Approximate Error
3
Ea
0
1 3 5 7 9 11
10
Effect of Step Size on Absolute
Relative Approximate Error
3
|Ea|,%
0
0 1 2 3 4 5 6 7 8 9 10 11 12
Num ber of steps involved, n
11
Effect of Step Size on Least
Number of Significant Digits
Correct
3.5
3
digits correct
2.5
2
1.5
1
0.5
0
1 2 3 4 5 6 7 8 9 10 11
Num ber of steps involved, n
12
Effect of Step Size on True Error
8
Initial step size=0.05
7
6
5
Et
4
3
2
1
0
0 2 4 6 8 10 12
13
Effect of Step Size on Absolute
Relative True Error
5
4
3
2
1
0
1 2 3 4 5 6 7 8 9 10 11
14