Professional Documents
Culture Documents
Slides On TaylorSeries 31.10.2017
Slides On TaylorSeries 31.10.2017
com/
Example 1
Easy for 0 :
sin 0 0
cos 0 1
What about 5 0?
x x What about
cos
h x2 y2
2 60
1
Example 2
f ( x ) e x x3
Easy for x 1 : f (1 ) e 1
2
f ( x ) sin x at x 0.1
The line tangent to f(x)=sin x at x=0 is f1(x)=?????
Seems to be OK up
for x<0.3
3
f ( x ) sin x at x 0.1
The line tangent to f(x)=sin x at x=0 is f1(x)=?????
Can we do better?
Seems to be OK up
for x<0.3
4
Example 2 f ( x ) e x x3 at x 0.1
Let’s try linear approximation with a tangent line to f(x) at x0=0
Equation of the line tangent to f ( x ) e x x3 at x=0 is ?????
x+1
f ( x ) e x x3 x+1 f ( x ) ex x3
0.1 0.2
5
Example 2 f ( x ) e x x3 at x 0.1
Let’s try linear approximation with a tangent line to f(x) at x0=0
Equation of the line tangent to f ( x ) e x x3 at x=0 is ?????
x+1
f ( x ) e x x3 x+1 f ( x ) ex x3
Can we do better?
0.1 0.2
6
Example 2 f ( x ) e x x3 at x 0.1
Let’s try the same approach: linear approximation with a tangent line to f(x) at x0=0
x+1
f ( x ) e x x3 x+1 f ( x ) e x x3
What is the error of this approximation?
Can we do better?
0 0.1 0.2
7
Taylor’s theorem
Remainder!
lim hk ( x )( x a )k 0
xa
8
Taylor’s theorem
Remainder ! (in the Peano form)
lim hk ( x ) 0
xa
Taylor’s polynome
9
Taylor’s theorem
Remainder ! (in the Peano form)
lim hk ( x ) 0
xa
Taylor’s polynome
Reminder
Rk ( x ) f ( x ) Pk ( x )
10
Again example 1!
f ( x ) sin x at x 0.1
Let’s try Taylor’s theorem at a point a=0
11
f ( x ) sin x at x 0.1
Let’s try Taylor’s theorem at a point a=0
f ( x ) sin x 0 x 0 x 0 x .... hk x x k
1 3 1 5
3! 5! 12
Again example 1!
f ( x ) sin x at x 0.1
Let’s try Taylor’s theorem at a point a=0
1 3 1 5 1 7 1 9 1 11
f ( x ) sin x x x x x x x ...
3! 5! 7! 9! 11!
P1x x P3 x x P5 x x
1 3 1 3 1 5
x x x
3! 3! 5!
13
Again example 1!
f ( x ) sin x at x 0.1
Let’s try Taylor’s theorem at a point a=0
1 3 1 5 1 7 1 9 1 11
f ( x ) sin x x x x x x x ...
3! 5! 7! 9! 11!
1 term 2 terms 3 terms
14
Again example 1!
f ( x ) sin x at x 0.1
Let’s try Taylor’s theorem at a point a=0
1 3 1 5 1 7 1 9 1 11
f ( x ) sin x x x x x x x ...
3! 5! 7! 9! 11!
1 term 2 terms 3 terms
Can we do better?
15
Another example from
https://en.wikipedia.org/wiki/Taylor%27s_theorem#Statement_of_the_theorem)
16
Another example from
https://en.wikipedia.org/wiki/Taylor%27s_theorem#Statement_of_the_theorem)
Can we do better?
17
Estimation of the remainder
-r r
18
Estimation of the remainder
19
Estimation of the remainder
20
Estimation of the remainder
Check:
sin 0.38 0.3709204694
Taylor
P7 (k ) 0.3709204690
21
Estimation of the remainder
f k 0 k
f ( x) f 0 x MacLaurin series
k 1 k!
26
SERIES
f k x
f ( x) f a x a k Taylor series
k 1 k!
f k 0 k
f ( x) f 0 x MacLaurin series
k 1 k!
BUT
Is it possible that
the sum of infinite number of terms
is still finite?
27
Is it possible that
the sum of infinite number of terms
is still finite?
YES!
Examples for x MacLaurin series
sin x
1k x 2 k 1 x
1 3 1 5 1 7
x x x ...
k 0 2k 1! 3! 5! 7!
cos x
1 k x 2 x3
e x 1 x
x
...
k 0 k! 2 3!
28
Other examples
1... k 1 x2 x3
1 x
x 1 x 1 1 2 ...
k
k 0 k! 2! 3!
1 x 1
ln 1 x
1k 1 x k x x 2 x3 x 4 ... 1 x 1
k 1 k 2 3 4
29
How to check convergence/ define interval of convergence?
an1
Consider a series an . It converges if a limit exist: lim q
n an
and q 1
ln 1 x
1k 1 x k x x 2 x3 x 4 ...
k 1 k 2 3 4
1k 2 k x k 1 k
lim
k 1k 1 k 1 x k
lim
k k 1
x x 1 x 1
30