9
[email protected] https://youngung.github.io https://github.com/youngung Taylor Series 창원대학교 신소재공학부 정영웅

Lecture1-1 Taylor series - GitHub Pages · 2020-03-02 · using the Taylor expansion is reasonable; and that 2) the time increment Δ"is sufficiently small. Title: Lecture1-1_Taylor_series

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

[email protected]://youngung.github.io

https://github.com/youngung

Taylor Series

창원대학교 신소재공학부

정영웅

Taylor series (테일러급수)

회전추의높이

https://youtu.be/3d6DsjIBzJ4?t=38

cos $ ≈ 1 − $(

2

Polynomial (다항식)qTaylor series approximate an arbitrary function in the form of a polynomial

! " = $ + &" + '"( + )"* … and on on

How to?

3/4/19 정영웅@창원대신소재공학부 5

qExample of y = cos & + () qP x = , + -& + .&/ …

Verification

3/4/19 정영웅@창원대신소재공학부 6

!(x) = cos ) + +3 ≈ . ) = cos 0 + +3 − sin 0 + +3 ) − 12 cos 0 + +3 )5 + 16 sin 0 + +3 )7

! 0.1 = cos 0.1 + 97 = 0.41104380 …

cos +3 = 0.500000

cos +3 − sin +

3 ×0.1 = 0.413397 …

cos +3 − sin +

3 ×0.1 − 12 cos+3 ×0.01 = 0.410897 …

cos +3 − sin +

3 ×0.1 − 12 cos+3 ×0.01 + 16 sin

+3 ×0.001 = 0.411041 …

Generalization

3/4/19 정영웅@창원대신소재공학부 7

! = # $

Taylor series of #($) at $ = ' ?

= # $ = ' + )#)$ $ = ' × $ − ' + 12).#)$. $ = ' × $ − ' .

)#)$ $ = ' 도함수 /0

/1가 x의함수라면, x에 a를대입하여라.

통상, 2차항까지만해도제법훌륭한approximation 가능.

Numerical solution of ODE using Taylor series

3/4/19 정영웅@창원대신소재공학부 8

! Δ# + # =?

! ' + ( = ! ( + !) ( ' + 12!) ( ', + 16!

)) ( '. …

! Δ# + # = ! # + !) # Δ# + 12!)) # Δ# , + 16!

))) # Δ# .

= 0 ' = ( + 101' ' = ( × ' − ( + 121,01', ' = ( × ' − ( ,

! Δ# + # = ! # + !) # Δ# + 12!)) # Δ# ,

!) # Δ# = ! Δ# + # − ! # − 12!)) # Δ# ,

!) # = ! Δ# + # − ! #Δ# − 12!

)) # Δ#

1! #1# = 0(#, !)

Let’s say we have a initial state such that! # = 0 = !8

1! #1# = 0 #, ! = !′(#)

1! #1# = 0 #, ! = !) # ≈ ! Δ# + # − ! #

Δ# − 12!)) # Δ#

This term decreases as Δ#decreases.

0 #, ! = ! Δ# + # − ! #Δ# − 12!

)) # Δ#

! Δ# + # = Δ#0 #, ! + ! # + 12!)) # Δ# ,

! Δ# + # = ! # + Δ#0 #, !

! #;<= = ! #; + Δ#0 #;, !;

Taylor series and Euler method

3/4/19 이동현상, 정영웅@창원대신소재공학부 9

! "#$% = ! "# + Δ") "#, !#

+! "+" = )(", !)

Let’s say we have a initial state such that! " = 0 = !/

! "#$% = ! "# + Δ" +! "#+"

You know exactly what 01 2302 is.

You don’t know what !(") is.

Following the Euler method, once you know ! " = 0 = !/, you can obtain ! " = Δ" = !% and so ! " = 2Δ" = !5, and so forth.

Provided that 1) your approximation using the Taylor expansion is reasonable; and that 2) the time increment Δ" is sufficiently small.