EEE212 Week2
EEE212 Week2
Hence
4.81 ≤ X + Y ≤4.99.
Propagation of Errors In Formulas
∂f ∂f ∂f ∂f
∆f ≈ ∆X 1 + ∆X 2 + ....... + ∆X n −1 + ∆X n
∂X 1 ∂X 2 ∂X n −1 ∂X n
Example 2:
The strain in an axial member of a square cross-
section is given by
F
∈= 2
h E
Given
F = 72 ± 0.9 N
h = 4 ± 0.1 mm
E = 70 ± 1.5 GPa
= 64.286 × 10 −6
= 64.286 µ
∂∈ ∂∈ ∂∈
∆ ∈= ∆F + ∆h + ∆E
∂F ∂h ∂E
Example 2:
∂∈ 1 ∂∈ 2F ∂∈ F
= 2 =− 3 =− 2 2
∂F h E ∂h hE ∂E h E
Thus
1 2F F
∆E = 2 ∆F + 3 ∆h + 2 2 ∆E
h E hE h E
1 2 × 72
= −3 2
× 0 .9 + −3 3
× 0.0001
(4 ×10 ) (70 ×10 )
9
(4 ×10 ) (70 ×10 )
9
72
+ × 1 .5 × 10 9
Solution
Let
z = x− y
Then
∂z ∂z
∆z = ∆x + ∆y
∂x ∂y
= (1)∆x + (−1)∆y
= ∆x + ∆y
So the relative change is
∆z ∆x + ∆y
=
z x− y
Example 3:
For example if
x = 2 ± 0.001
y = 2.003 ± 0.001
∆z 0.001 + 0.001
=
z | 2 − 2.003 |
= 0.6667
= 66.67%
Taylor Theorem
Motivation
We can easily compute expressions like:
3 10 2
2( x 4)
But, How do you compute 4.1, sin(0.6) ?
Example 1
2.5
exp(x)
1+x+0.5x 2
2
1+x
1.5
1
1
0.5
0
-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1
Maclaurin Series – Example 2
Obtain Maclaurin series expansion of f ( x ) sin( x ) :
f ( x ) sin( x ) f ( 0) 0
f ' ( x ) cos( x ) f ' ( 0) 1
( 2) ( 2)
f ( x ) sin( x ) f ( 0) 0
f ( 3) ( x ) cos( x ) f ( 3) (0) 1
∞
f ( k ) ( 0) k x3 x5 x7
sin( x ) ∑ x x ....
k 0
k! 3! 5! 7!
The series converges for x ∞.
4
3
x
0 sin(x)
-1
x-x 3/3!
-2
-3
-4
-4 -3 -2 -1 0 1 2 3 4
Maclaurin Series – Example 3
Obtain Maclaurin series expansion of : f ( x) cos( x)
f ( x ) cos( x ) f (0) 1
f ' ( x ) sin( x ) f ' ( 0) 0
f ( 2 ) ( x ) cos( x ) f ( 2 ) ( 0) 1
f ( 3) ( x ) sin( x ) f ( 3) (0) 0
∞
f ( k ) ( 0) x 2
x 4
x 6
cos( x ) ∑ ( x ) k 1 ....
k 0
k! 2! 4! 6!
The series converges for x ∞.
Maclaurin Series – Example 4
1
Obtain Maclaurin series expansion of f(x)
1 x
1
f ( x) f ( 0) 1
1 x
1
f ' ( x) f ' ( 0) 1
1 x 2
(2) 2 ( 2)
f ( x) f ( 0) 2
1 x 3
( 3) 6 ( 3)
f ( x) f ( 0) 6
1 x 4
1
Maclaurin Series Expansion of : 1 x x 2 x 3 ...
1 x
Series converges for | x | 1
Example 4 - Remarks
1 ( 2) 1 ( 3) 2
f ( x ) ln( x ) , f ' ( x ) , f ( x ) 2 , f ( x ) 3
x x x
f (1) 0, f ' (1) 1, f ( 2 ) (1) 1 f ( 3) (1) 2
1 2 1
Taylor Series Expansion : ( x 1) ( x 1) ( x 1) 3 ...
2 3
Convergence of Taylor Series
( n 1)
f ( ) n 1
Rn h where is between x and x h
( n 1)!
Taylor’s Theorem – Alternative forms
n ( n 1)
f ( k ) (a ) f ( )
f ( x) k
( x a) ( x a ) n 1
k 0 k! ( n 1)!
where is between a and x.
a x, x x h
n
f ( k ) ( x ) k f ( n 1) ( ) n 1
f ( x h) h h
k 0 k! ( n 1)!
where is between x and x h.
Mean Value Theorem
If f ( x ) is a continuous function on a closed interval [a , b]
and its derivative is defined on the open interval ( a , b)
then there exists ξ ( a, b)
f(b) f(a)
f ' (ξ )
ba
Proof : Use Taylor' s Theorem for n 0, x a , x h b
f(b) f(a) f ' (ξ ) (b a )
Alternating Series Theorem
Consider the alternating series :
S a1 a2 a3 a4
a a a a The series converges
1 2 3 4
If and then and
lim a 0 S S n an 1
n n
Then :
1 1
sin(1) 1
3! 5!
1 1 1
sin(1) 1
3! 5! 7!
Example 7
e 2 x1 ∑ ( x 0.5) k
k 0
k!
2 k
( x 0 .5) ( x 0 . 5)
e 2 2e 2 ( x 0.5) 4e 2 ... 2 k e 2 ...
2! k!
Example 7 – Error Term
f ( k ) ( x) 2 k e 2 x 1
f ( n 1) ( )
Error ( x 0.5) n 1
(n 1)!
(1 0.5) n 1
Error 2 n 1 e 2 1
(n 1)!
n 1
( 0. 5)
Error 2 n 1 max e 2 1
(n 1)! [ 0.5,1]
e3
Error
(n 1)!