Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
The applications of differentiation and integration in engineering, and focuses on the forward difference method for numerical differentiation and Taylor series expansion for approximating non-elementary functions. It also covers the finite difference approximation of higher derivatives. examples and limitations of these methods.
Typology: Lecture notes
1 / 25
Δ𝑦
Δ𝑥
=
𝑓(𝑥𝑖 + Δ𝑥) − 𝑓(𝑥𝑖)
Δ𝑥 𝑑𝑦
𝑑𝑥
=Δ𝑥 lim 0
𝑓(𝑥𝑖 + Δ𝑥) − 𝑓(𝑥𝑖)
Δ𝑥
𝐼 = න
𝑎
𝑏
𝑓(𝑥)𝑑𝑥
➢ Integration and differentiation are closely linked processes. They are, in
fact, inversely related.
➢ Types of functions to be differentiated or integrated:
➢ Differentiation has so many engineering applications
(heat transfer, fluid dynamics, chemical reaction kinetics,
etc…)
➢ Integration is equally used in engineering (compute work
in ME, nonuniform force in SE, cross-sectional area of a
river, etc…)
𝜟𝒚
𝜟𝒙
=
𝒇(𝒙𝒊 + 𝜟𝒙) − 𝒇(𝒙𝒊)
𝜟𝒙 x
f x x f x
dx
dy (^) i i
x (^)
( ) ( ) lim 0
➢ Non-elementary functions such as trigonometric,
exponential, and others are expressed in an approximate
fashion using Taylor series when their values, derivatives,
and integrals are computed.
➢ Any smooth function can be approximated as a polynomial.
Taylor series provides a means to predict the value of a
function at one point in terms of the function value and its
derivatives at another point.
If f (x) and its first n+ 1 derivatives are continuous on an
interval containing x
and x
, then:
Where the remainder R
is defined as:
𝑓 𝑥𝑖+ 1 ≅ 𝑓 𝑥𝑖 + 𝑓
′ 𝑥𝑖 𝑥𝑖+ 1 − 𝑥𝑖 +
𝑓
′′ 𝑥𝑖
2!
𝑥𝑖+ 1 − 𝑥𝑖
2
𝑓
3 𝑥𝑖
3!
𝑥𝑖+ 1 − 𝑥𝑖
3 +... +
𝑓
𝑛 𝑥𝑖
𝑛!
𝑥𝑖+ 1 − 𝑥𝑖
𝑛
𝑅𝑛 =
𝑓
𝑛+ 1 𝜉
𝑛 + 1!
𝑥𝑖+ 1 − 𝑥𝑖
𝑛+ 1
➢ The series is built term by term
➢ Continuing the addition of more terms to get better
approximation we have:
𝑓 𝑥𝑖+ 1 ≅ 𝑓 𝑥𝑖
𝑓 𝑥𝑖+ 1 ≅ 𝑓 𝑥𝑖 + 𝑓
′ 𝑥𝑖 𝑥𝑖+ 1 − 𝑥𝑖
𝑓 𝑥𝑖+ 1 ≅ 𝑓 𝑥𝑖 + 𝑓
′ 𝑥𝑖 𝑥𝑖+ 1 − 𝑥𝑖 +
𝑓
′′ 𝑥𝑖
2!
𝑥𝑖+ 1 − 𝑥𝑖
2
zero order approximation
1 st order approximation
2 nd order approximation
Finally
where
ξ is a value of x that lies somewhere between x i and x i+ 1 .
𝒇 𝒙𝒊+𝟏 ≅ 𝒇 𝒙𝒊 + 𝒇
′ 𝒙𝒊 𝒙𝒊+𝟏 − 𝒙𝒊 +
𝒇
′′ 𝒙𝒊
𝟐!
𝒙𝒊+𝟏 − 𝒙𝒊
𝟐
𝒇
𝟑 𝒙𝒊
𝟑!
𝒙𝒊+𝟏 − 𝒙𝒊
𝟑 +... +
𝒇
𝒏 𝒙𝒊
𝒏!
𝒙𝒊+𝟏 − 𝒙𝒊
𝒏
𝑅𝑛 =
𝑓
𝑛+ 1 𝜉
𝑛 + 1!
𝑥𝑖+ 1 − 𝑥𝑖
𝑛+ 1
n
n
n+ 1
n+ 1.
i+ 1
2
Forward difference approximation from Taylor series
i x^ and all its derivatives at that point, provided the derivatives are
continuous between i
(^) x and xi + 1 , then
2 1 1 1
i i
i
Substituting for convenience Δ x = xi + 1 − xi
( ) ( ) ( )
( ) ( ) +
2 1 Δ 2!
Δ x
f x f x f x f x x
i i i i
( )
( ) ( ) ( ) ( )+
−
− (^) =
x
f x
x
f x f x f x
i i i i 2!
1
x
f x f x f x
i i i +
− (^) =
0
1
Figure 1 Graphical Representation of forward difference approximation of first derivative.
Graphical Representation Of Forward
Difference Approximation
The velocity of a rocket is given by
( ) 9. 8 , 0 30 14 10 2100
14 10 2000 ln 4
4
−
−
= t t t
t
where (^) ' ν ' is given in m/s and (^) ' t ' is given in seconds.
a) Use forward difference approximation of the first derivative of to
calculate the acceleration at. Use a step size of.
b) Find the exact value of the acceleration of the rocket.
c) Calculate the absolute relative true error for part (b).
ν ( ) t
t = 16 s Δ t = 2 s
Example 1 Cont.
Solution
i i i
ti = 16
Δ t = 2
18
16 2
1
=
= +
t (^) i + = ti + t
( )
( ) ( )
2
18 16 16
− a
( ) ( )
14 10 18 2000 ln 4
4
^ −
−
=
= 453. 02 m/s
14 10 210016
14 10 16 2000 ln 4
4
−
−
=
= 392. 07 m/s
Hence
( )
( ) ( )
2
18 16 16
− a
2
2 30. 474 m/s
( ) t t
t 9. 8 14 10 2100
14 10 2000 ln 4
4
^ −
−
b)
Knowing that ( ) t
t dt
d 1 ln = and 2
1 1
dt t t
d = −
( ) 9. 8 14 10 2100
14 10
14 10
14 10 2100 2000 4
4
4
4
−
−
dt t
t d at
( )
( 2100 ) 9. 8 14 10 2100
14 10 1 14 10
14 10 2100 2000 4 2
4
4
4 − −
−
−
t
t
t
t
200 3
4040 29. 4
− +
( )
( )
200 3 ( 16 )
4040 29. 416 16 − +
− − a = = 𝟐𝟗. 𝟔𝟕𝟒m/s
𝟐
Example 1 Cont.
The absolute relative true error is
100 TrueValue
True Value-ApproximateValue t = x
100
674
674 30. 474 x
= 2. 6967 %
Finite Difference Approximation of Higher Derivatives
One can use Taylor series to approximate a higher order derivative.
( ) ( ) ( )( )
( ) ( )
( ) ( ) +
2 3 2 2 Δ 3!
2 Δ 2!
2 Δ x
f x x
f x f x f x f x x
i i i i i
where xi^ + 2 = xi +^2 Δ x
( ) ( ) ( )( )
( ) ( )
( ) ( )
2 3 1 2! 3!
x
f x x
f x f x f x f x x
i i i i i
+
i i
1
−
Finite Difference Approximation of Higher Derivatives
Subtracting 2 times equation ( 4 ) from equation ( 3 ) gives
2 3 f xi 2 2 f xi 1 f xi f xi Δ x f xi Δ x − =− + +
( )
( ) ( ) ( )
( )
− ( )( )+
− + (^) =
f x x x
f x f x f x f x i
i i i i Δ Δ
2
2
2 1
x
f x f x f x f x
i i i i^0 Δ Δ
2
2
2 1
− + (^)
The velocity of a rocket is given by
( ) 9. 8 , 0 30 14 10 2100
14 10 2000 ln 4
4
−
−
= t t t
t
Use forward difference approximation of the second derivative of to
calculate the “pull” or “jerk” at. Use a step size of.
t = 16 s Δ t = 2 s
(^23) http://numericalmethods.eng.usf.edu
Solution ( )
( ) ( ) ( )
( )
2
i i i i
+ + = 16 ti
18
16 2
1
=
= +
t (^) i + = ti + t (^ )
( )
20
16 2 2
2 2
=
= +
t (^) i + = ti + t
( )
( ) ( ) ( )
( )
2 2
20 2 18 16 16
− + j
t = 2
( ) ( )
14 10 20 2000 ln 4
4
−
−
= = 517. 35 m/s
( ) ( )
14 10 18 2000 ln 4
4
−
−
= = 453. 02 m / s
( ) ( )
14 10 16 2000 ln 4
4
−
−
= = 392. 07 m/s
( )
( )
4
− + j
3 0. 84515 m/s
(^24) http://numericalmethods.eng.usf.edu
( ) t t
t 9. 8 14 10 2100
14 10 2000 ln 4
4
^ −
−
=
twice as ( ) ν ( ) t dt
d
Knowing that ( ) t
t dt
d 1 (^) ln = and 2
1 1
dt t t
d =−
( ) 9. 8 14 10 2100
14 10
14 10
14 10 2100 2000 4
4
4
4
−
−
dt t
t d at
t
t
200 3
4040 29. 4
− +
− − ( ) (^) = ( )
( 2100 ) 9. 8 14 10 2100
14 10 1 14 10
14 10 2100 2000 4 2
4
4
4
− −
−
−
t
t
(^25) http://numericalmethods.eng.usf.edu
( ) (^) ( )
2 ( 200 3 )
18000
t
a t dt
d j t
− +
=
= ( )
3
2
[ 200 3 ( 16 )]
18000 16
=
− +
j =
The absolute relative true error is
100
77909
77909 0. 84515
− t = = 8. 4797 %
Similarly it can be shown that