Beruflich Dokumente
Kultur Dokumente
02
Differentiation of Continuous Functions
02.01.1
02.01.2 Chapter 02.01
f xi 1 f xi
xi 1 xi
where
x xi 1 xi
f (x)
x x x x
Example 1
The velocity of a rocket is given by
14 104
t 2000 ln 9.8t , 0 t 30
14 10 2100t
4
Solution
ti 1 ti
(a) a ti
t
ti 16
t 2
t i 1 t i t
16 2
=18
Continuous Differentiation 02.01.3
18 16
a16
2
14 10 4
18 2000 ln 9.818
14 10 210018
4
453.02 m/s
14 104
16 2000 ln 9.816
14 10 210016
4
392.07 m/s
Hence
18 16
a16
2
453.02 392.07
2
30.474 m/s 2
as
d
at t
dt
Knowing that
d
lnt 1 and d 1 12
dt t dt t t
14 10 4 2100t d 14 10 4
a t 2000
9.8
14 10 dt 14 10 2100t
4 4
14 10 4 2100t 14 10 4
2000
1
14 10 4 2100t
2100 9.8
14 10 4
2
4040 29.4t
200 3t
4040 29.416
a16
200 316
29.674 m/s 2
(c) The absolute relative true error is
True Value Approximate Value
t 100
True Value
02.01.4 Chapter 02.01
29.674 30.474
100
29.674
2.6967%
f (x)
x x x x
Example 2
The velocity of a rocket is given by
14 10 4
t 2000 ln 9.8t , 0 t 30
14 10 2100t
4
(a) Use the backward difference approximation of the first derivative of t to calculate the
acceleration at t 16 s . Use a step size of t 2 s .
(b) Find the absolute relative true error for part (a).
Solution
ti ti 1
at
t
ti 16
t 2
t i 1 t i t
16 2
= 14
16 14
a16
2
14 10 4
16 2000 ln 9.816
14 10 4
2100 16
392.07 m/s
14 10 4
14 2000 ln 9.814
14 10 210014
4
02.01.6 Chapter 02.01
334.24 m/s
16 14
a16
2
392.07 334.24
2
28.915 m/s 2
(b) The exact value of the acceleration at t 16 s from Example 1 is
a16 29.674 m/s 2
The absolute relative true error for the answer in part (a) is
29.674 28.915
t 100
29.674
2.5584%
2 f xi
f xi 1 f xi 1 f xi 2x x 3
3!
f xi 1 f xi 1 f xi
f xi x 2
2x 3!
f xi 1 f xi 1
Ox
2
2x
hence showing that we have obtained a more accurate formula as the error is of the order of
Ox .
2
f (x)
x x x x x x
Example 3
The velocity of a rocket is given by
14 10 4
t 2000 ln 9.8t , 0 t 30 .
14 10 2100t
4
(a) Use the central difference approximation of the first derivative of t to calculate the
acceleration at t 16 s . Use a step size of t 2 s .
(b) Find the absolute relative true error for part (a).
Solution
ti 1 ti 1
ati
2t
ti 16
t 2
02.01.8 Chapter 02.01
ti 1 ti t
16 2
18
ti 1 ti t
16 2
14
18 14
a16
22
18 14
4
14 10 4
18 2000 ln 9.818
14 10 210018
4
453.02 m/s
14 10 4
14 2000 ln 9.814
14 10 210014
4
334.24 m/s
18 14
a16
4
453.02 334.24
4
29.694 m/s2
(b) The exact value of the acceleration at t 16 s from Example 1 is
a16 29.674 m/s 2
The absolute relative true error for the answer in part (a) is
29.674 29.694
t 100
29.674
0.069157%
The results from the three difference approximations are given in Table 1.
Clearly, the central difference scheme is giving more accurate results because the
order of accuracy is proportional to the square of the step size. In real life, one would not
Continuous Differentiation 02.01.9
know the exact value of the derivative so how would one know how accurately they have
found the value of the derivative? A simple way would be to start with a step size and keep
on halving the step size until the absolute relative approximate error is within a pre-specified
tolerance.
Take the example of finding v t for
14 10 4
t 2000 ln 9.8t
14 10 2100t
4
at t 16 using the backward difference scheme. Given in Table 2 are the values obtained
using the backward difference approximation method and the corresponding absolute relative
approximate errors.
Table 2 First derivative approximations and relative errors for different t values of
backward difference scheme.
t v t a %
2 28.915
1 29.289 1.2792
0.5 29.480 0.64787
0.25 29.577 0.32604
0.125 29.625 0.16355
From the above table, one can see that the absolute relative approximate error
decreases as the step size is reduced. At t 0.125 , the absolute relative approximate error
is 0.16355%, meaning that at least 2 significant digits are correct in the answer.
f xi 2 2 f xi 1 f xi
f xi f xi x
x 2
f xi 2 2 f xi 1 f xi
f xi Ox (5)
x 2
Example 4
The velocity of a rocket is given by
14 10 4
t 2000 ln 9.8t , 0 t 30
14 10 4
2100t
Use the forward difference approximation of the second derivative of t to calculate the
jerk at t 16 s . Use a step size of t 2 s .
Solution
ti 2 2 ti 1 ti
j ti
t 2
ti 16
t 2
ti 1 ti t
16 2
18
ti 2 ti 2t
16 22
20
20 2 18 16
j 16
22
14 10 4
20 2000 ln 9.820
14 10 210020
4
517.35 m/s
14 10 4
18 2000 ln 9.818
14 10 210018
4
453.02 m/s
14 10 4
16 2000 ln 9.816
14 10 210016
4
392.07 m/s
twice as
d
at t and
dt
d
j t at
dt
Knowing that
d
lnt 1 and
dt t
d 1 1
2
dt t t
14 10 4 2100t d 14 10 4
a t 2000 9.8
14 10 dt 14 10 2100t
4 4
14 10 4 2100t 14 10 4
2000 1 2100 9.8
14 10 2100t
14 10 4 4 2
4040 29.4t
200 3t
Similarly it can be shown that
d
j t at
dt
18000
(200 3t ) 2
18000
j 16
[200 3(16)]2
0.77909 m/s 3
The absolute relative true error is
0.77909 0.84515
t 100
0.77909
8.4797%
The formula given by Equation (5) is a forward difference approximation of the second
derivative and has an error of the order of Ox . Can we get a formula that has a better
accuracy? Yes, we can derive the central difference approximation of the second derivative.
The Taylor series is
02.01.12 Chapter 02.01
f xi
x 2 f xi x 3 f xi x 4 ...
f xi 1 f xi f xi x (6)
2! 3! 4!
where
xi 1 xi x
f xi
x 2 f xi x 3 f xi x 4
f xi 1 f xi f xi x (7)
2! 3! 4!
where
xi 1 xi x
Adding Equations (6) and (7), gives
f xi 1 f xi 1 2 f xi f xi x f xi
2 x 4 ...
12
f xi 1 2 f xi f xi 1 f xi x
2
f xi ...
x 2 12
f xi 1 2 f xi f xi 1
Ox
2
x 2
Example 5
The velocity of a rocket is given by
14 10 4
t 2000 ln 9.8t , 0 t 30 ,
14 10 2100t
4
(a) Use the central difference approximation of the second derivative of t to calculate the
jerk at t 16 s . Use a step size of t 2 s .
Solution
ti 1 2 ti ti 1
ati
t 2
ti 16
t 2
ti 1 ti t
16 2
18
ti 2 ti t
16 2
14
18 2 16 14
j 16
22
14 10 4
18 2000 ln 9.818
14 10 210018
4
Continuous Differentiation 02.01.13
453.02 m/s
14 10 4
16 2000 ln 9.816
14 10 210016
4
392.07 m/s
14 10 4
14 2000 ln 9.814
14 10 210014
4
334.24 m/s
18 2 16 14
j 16
22
453.02 2392.07 334.24
4
0.77969 m/s 3