Professional Documents
Culture Documents
f (x)
x x x x
f xi 1 f xi
f xi
x
f xi 1 f xi
Where x xi 1 xi
xi 1 xi
Where ' ' is given in m/s and 't ' is given in seconds.
Use forward difference approximation of the first derivative of t to calculate the
Solution
ti 1 ti
a ti
t
ti 16
t 2
ti 1 ti t 16 2 18
18 16
a 16
2
14 10 4
18 2000 ln 9.8 18 453.02 m / s
14 10 4 2100 18
14 104
16 2000 ln 9.8 16 392.07 m / s
14 10 4 2100 16
Hence
18 16 453.02 392.07
a 16 30.475m / s 2
2 2
14 10 4 2100t 14 10 4
2000 1 2
2100 9.8 29.674m / s 2
14 10 4 14 10 4
2100t
f xi f xi 1
f xi
x
f xi f xi 1
where x xi xi 1
xi xi 1
f (x)
x
x x x
Solution
ti ti 1
at
t
ti 16
t 2
ti 1 ti t 16 2 14
16 14
a 16
2
14 10 4
16 2000 ln 9.8 16 392.07 m / s
14 10 4 2100 16
14 10 4
14 2000 ln 9.8 14 334.24m / s
14 10 4 2100 14
16 14 392.07 334.24
a 16 28.915m / s 2
2 2
The absolute relative true error is
29.674 28.915
t 100 2.557%
29.674
Yes, another method to approximate the first derivative is called the Central
difference approximation of the first derivative.
From Taylor series
f xi f xi
f xi 1 f xi f xi x x
2
x
3
(1)
2! 3!
f xi 2 f xi 3
f xi 1 f xi f xi x x x (2)
2! 3!
Subtracting equation (2) from equation (1)
2f xi 3
f xi 1 f xi 1 f xi 2 x x
3!
f xi 1 f xi 1 f xi 2
f xi x
2 x 3!
f xi 1 f xi 1 2
f xi 0 x
2 x
f xi 1 f xi 1
f xi
2 x
Hence showing that we have obtained a more accurate formula as the error is of the
order of 0 x 2 .
f (x)
x x x x x
14 10 4
t 2000 ln 9.8t ,0 t 30 .
14 10 4 2100t
14 10 4
18 2000 ln 9.8 18 453.02 m / s
14 10 4 2100 18
14 10 4
14 2000 ln 9.8 14 334.24 m / s
14 10 4 2100 14
18 14 453.02 334.24
a 16 29.695m / s 2
4 4
The absolute relative true error is
29.674 29.695
t 100 0.070769%
29.674
The results from the three difference approximations are given in Table 1.
Table 1 Summary of a 16 using different divided difference approximations.
Type of Difference a 16
t %
Approximation m / s2
Forward 30.475 2.6993
Backward 28.915 2.557
Central 29.695 0.070769
Clearly, the central difference scheme is giving more accurate results because the
order of accuracy is proportional to the square of the step size.
Third Derivative
3 f xi 3 3 f xi 2 3 f xi 1 f xi
f ( xi ) 3
( x)
Fourth Derivative
4 f xi 4 4 f xi 3 6 f xi 2 4 f xi 1 f xi
f ( xi )
( x) 4
3 f xi 3 f xi 1 3 f xi 2 f xi 3
f ( xi )
( x)3
Fourth Derivative
4 f xi 4 f xi 1 6 f xi 2 4 f xi 3 f xi 4
f ( xi )
( x) 4
Third Derivative
3 f xi 2 2 f xi 1 2 f xi 1 f xi 2
f ( xi )
2( x ) 3
Fourth Derivative
4 f xi 2 4 f xi 1 6 f xi 4 f xi 1 f xi 2
f ( xi )
( x)4