Professional Documents
Culture Documents
수치해석 (절단오차와 테일러급수)
수치해석 (절단오차와 테일러급수)
수치해석 (절단오차와 테일러급수)
절단 오차와 Taylor 급수
3.1416 , e 2.71828
Taylor Series Expansion
Construction of finite-difference formula
Numerical accuracy: discretization error
a x Base point x = a
f ( x ) co c1 ( x a) c 2 ( x a) 2 c 3 ( x a) 3 co f (a)
f ( x ) c 1 2 c 2 ( x a ) 3 c 3 ( x a ) 2
c 1 f ( a )
f ( x ) 2 c 6 c ( x a ) c 2 f ( a ) / 2!
2 3
f ( x ) 6 c 3 c 3 f ( a ) / 3!
(m)
f ( x ) ( m! )c m ( m 1) m ( m 1) 2 c m 1 ( x x o ) c m f ( m ) ( a ) / m!
f ( m ) (a)
f ( x) c
m 0
m ( x a ) m
m 0 m!
( x a) m
Taylor Series and Remainder
Taylor series (base point x = a)
f ( m ) (a)
f ( x)
m 0 m!
( x a) m
Remainder
f ( )
( n 1 )
n1
Rn ( x a)
( n 1)!
Taylor Series and Remainder
f ( xi )
f ( xi 1 ) f ( xi ) f ( xi )( xi 1 xi ) ( xi 1 xi ) 2
2!
f (3) ( xi ) f ( n ) ( xi )
( xi 1 xi ) ...
3
( xi 1 xi ) n Rn
3! n!
f ( xi ) 2
f ( xi ) f ( xi )h h
2!
f (3) ( xi ) 3 f ( n ) ( xi ) n
h ... h Rn
3! n!
f ( )
( n 1)
n 1 f ( ) n 1 n 1
( n 1)
Rn ( xi 1 xi ) h O(h )
(n 1)! (n 1)!
(예제) 0~4차 테일러 급수 전개를 이용하여 𝑥𝑖 = 0(ℎ = 1)로부터 𝑥𝑖+1 = 1
에서 다음 함수 값을 구하라.
f ( xi ) 2 f (3) ( xi ) 3
R0 f ( xi )h h h ...
2! 3!
f ( xi )h
Graphical depiction of the derivative mean-value theorem
R0 f ( ) 2
f ( ) R0 f ( )h R1 h
h 2!
Using the Taylor Series to Estimate
Truncation Errors
Expanding velocity as a function of time in a Taylor series,
v" (ti )
v (ti 1 ) v(ti ) v' (ti )(ti 1 ti ) (ti 1 ti ) 2 ... Rn
2!
Truncating the series after the first derivative term,
v (ti 1 ) v (ti ) R1
v ' (t i )
ti 1 ti ti 1 ti
First order Truncation
approximat ion error
R1 v" ( )
(ti 1 ti ) O(ti 1 ti ) O(h)
ti 1 ti 2!
(xi = 0, h = x xi+1 = x)
Euler’s Formula An amazing use for infinite series:
x 2 x3 x 4 Substitute xi for x.
e 1 x
x
2! 3! 4!
xi 2 xi 3 xi 4 xi 5 xi 6
e 1 xi
xi
2! 3! 4! 5! 6!
x 2i 2 x3i 3 x 4i 4 x5i 5 x 6i 6
e 1 xi
xi
2! 3! 4! 5! 6!
x 2 x3i x 4 x 5i x 6
e 1 xi
xi
Factor out the i terms.
2! 3! 4! 5! 6!
x2 x4 x6 x3 x5
e 1 i x
xi
2! 4! 6! 3! 5!
2 4 6
x x x x3 x5
e 1 i x
xi
2! 4! 6! 3! 5!
ei 1 i 0
This amazing identity contains
i
e 1 0
the five most famous numbers in
mathematics, and shows that they
are interrelated.
수치 미분
(a) Forward finite-divided-difference approximation of the first
derivative
f ( xi ) 2
f ( xi 1 ) f ( xi h) f ( xi ) f ( xi )h h ....
2!
f ( xi 1 ) f ( xi ) f ( xi ) f i
f ( xi ) h O ( h)
h 2! h
(b) Backward finite-divided-difference approximation of the
first derivative
f ( xi ) 2
f ( xi 1 ) f ( xi ) f ( xi ) h h ....
2!
f ( xi ) f ( xi 1 ) f ( xi ) f
f ( xi ) h i O ( h)
h 2! h
(c) centered finite-divided-difference approximation of the
first derivative
Centered difference Approximation of the first
derivative
f ( xi ) 2
f ( xi 1 ) f ( xi h) f ( xi ) f ( xi )h h ....
2!
-
f ( xi ) 2
f ( xi 1 ) f ( xi ) f ( xi ) h h ....
2!
2 f (3) ( xi ) 3
f ( xi 1 ) f ( xi 1 ) 2 f ( xi )h h ....
3!
f ( xi 1 ) f ( xi 1 ) f (3) ( xi ) 2 f ( xi 1 ) f ( xi 1 )
f ( xi ) h .... O(h 2 )
2h 3! 2h
(예제) 미분의 전진, 후진, 중심 차분 근사를 이용하여 𝑥 = 2에서 계산간격이
ℎ = 0.2와 ℎ = 0.1인 두 경우에 𝑓 𝑥 = 25𝑥 3 − 6𝑥 2 + 7𝑥 − 88의 미분값과 백
분율 참오차을 계산하라.
Finite Difference Approximation of Higher
Derivative
f ( xi )
f ( xi 2 ) f ( xi 2h) f ( xi ) f ( xi )(2h) ( 2h) 2 ....
2!
-
f ( xi ) 2
2 f ( xi 1 ) 2 f ( xi h) 2 f ( xi ) f ( xi )h h ....
2!
f ( xi 2 ) 2 f ( xi 1 ) f ( xi ) f ( xi )h 2 ....
f ( xi 2 ) 2 f ( xi 1 ) f ( xi )
f " ( xi ) 2
O ( h)
h
The 2nd backward finite divided difference
f ( xi ) 2 f ( xi 1 ) f ( xi 2 )
f " ( xi ) 2
O (h)
h
오차 ~x x ~x 가 함수에 미치는 영향 f ( ~
x ) f ( x) f ( ~
x)
~
x 가 x 에 매우 가깝고, f (x~ ) 가 연속적이며 미분가능 하다면
2! 3!
f ( ~x ) f ( x ) f ( ~x ) f ' ( ~x ) ( x ~x )
(예제) 𝑥 = 2.5, ∆𝑥 = 0.01일 때, 𝑓 𝑥 = 𝑥 3 인 함수의 오차와 참값의 범위를
구하라
Error Propagation
Functions of More than one Variable
f f f
f ( x1 , x2 , xn ) x1 x2 xn
x1 x2 xn
𝑐𝑡
𝑚𝑔
(예제) 낙하산병의 속도는 다음과 같이 주어진다. 𝑣 𝑡 = 1−𝑒 −𝑚
. 𝑡=
𝑐
6 에서 1차 오차 해석으로 속도의 추정 오차를 구하라. 단, 𝑔 = 9.8, 𝑚 = 50,
𝑐 = 12.5 ± 1.5