X33 taylor expansions

48
Taylor Expansions

Transcript of X33 taylor expansions

Page 1: X33 taylor expansions

Taylor Expansions

Page 2: X33 taylor expansions

Taylor Expansions In this section we find the polynomials and series expansions in (x – a) of infinitely differentiable functions at x = a.

Page 3: X33 taylor expansions

Taylor Expansions In this section we find the polynomials and series expansions in (x – a) of infinitely differentiable functions at x = a. They are called Taylor expansions.

Page 4: X33 taylor expansions

Taylor Expansions In this section we find the polynomials and series expansions in (x – a) of infinitely differentiable functions at x = a. They are called Taylor expansions.

Given a function f(x) that is infinitely differentiable at x = a, we define the n'th Taylor polynomial of f(x) as:

f(1)(a)(x – a) += f(a) +pn(x)1!

f(2)(a)(x – a)2+ ..2! + f(n)(a)(x – a)n

n!

Page 5: X33 taylor expansions

Taylor Expansions In this section we find the polynomials and series expansions in (x – a) of infinitely differentiable functions at x = a. They are called Taylor expansions.

Given a function f(x) that is infinitely differentiable at x = a, we define the n'th Taylor polynomial of f(x) as:

f(1)(a)(x – a) += f(a) +pn(x)1!

pn(x) = Σk=0

n (x – a)k

k! f(k)(a)

f(2)(a)(x – a)2+ ..2! + f(n)(a)(x – a)n

n!or

Page 6: X33 taylor expansions

Taylor Expansions In this section we find the polynomials and series expansions in (x – a) of infinitely differentiable functions at x = a. They are called Taylor expansions.

Given a function f(x) that is infinitely differentiable at x = a, we define the n'th Taylor polynomial of f(x) as:

f(1)(a)(x – a) += f(a) +pn(x)1!

pn(x) = Σk=0

n (x – a)k

k! f(k)(a)

f(2)(a)(x – a)2+ ..2! + f(n)(a)(x – a)n

n!or

TheTaylor series of f(x) is defined as:

P(x) = Σk=0

(x – a)k

k! f(k)(a)∞

Page 7: X33 taylor expansions

Example: A. Find the Taylor-expansion of f(x) = 1 + x + x2 around x = 1.

Taylor Expansions

Page 8: X33 taylor expansions

Example: A. Find the Taylor-expansion of f(x) = 1 + x + x2 around x = 1.We need the derivatives of f(x):

Taylor Expansions

Page 9: X33 taylor expansions

Example: A. Find the Taylor-expansion of f(x) = 1 + x + x2 around x = 1.We need the derivatives of f(x):f(1) = 1 + 1 + 1 f(1) = 3

Taylor Expansions

Page 10: X33 taylor expansions

Example: A. Find the Taylor-expansion of f(x) = 1 + x + x2 around x = 1.We need the derivatives of f(x):

(1)

f(1) = 1 + 1 + 1 f(1) = 3

Taylor Expansions

f (x) = 1 + 2x

Page 11: X33 taylor expansions

Example: A. Find the Taylor-expansion of f(x) = 1 + x + x2 around x = 1.We need the derivatives of f(x):

(1) (1)

f(1) = 1 + 1 + 1 f(1) = 3

Taylor Expansions

f (x) = 1 + 2x f (1) = 3

Page 12: X33 taylor expansions

Example: A. Find the Taylor-expansion of f(x) = 1 + x + x2 around x = 1.We need the derivatives of f(x):

(1) (1)

f(1) = 1 + 1 + 1 f(1) = 3

Taylor Expansions

f (x) = 1 + 2x f (1) = 3 (2) (2)f (x) = 2 f (1) = 2

Page 13: X33 taylor expansions

Example: A. Find the Taylor-expansion of f(x) = 1 + x + x2 around x = 1.We need the derivatives of f(x):

(1) (1)

f(1) = 1 + 1 + 1 f(1) = 3

Taylor Expansions

f (x) = 1 + 2x f (1) = 3 (2) (2)f (x) = 2 f (1) = 2 (n)f (1) = 0 for n > 3.

Page 14: X33 taylor expansions

Example: A. Find the Taylor-expansion of f(x) = 1 + x + x2 around x = 1.We need the derivatives of f(x):

(1) (1)

f(1) = 1 + 1 + 1 f(1) = 3

Taylor Expansions

f (x) = 1 + 2x f (1) = 3 (2) (2)f (x) = 2 f (1) = 2 (n)f (1) = 0 for n > 3. Hence,

= f(1) = 3p0(x)

Page 15: X33 taylor expansions

Example: A. Find the Taylor-expansion of f(x) = 1 + x + x2 around x = 1.We need the derivatives of f(x):

(1) (1)

f(1) = 1 + 1 + 1 f(1) = 3

Taylor Expansions

f (x) = 1 + 2x f (1) = 3 (2) (2)f (x) = 2 f (1) = 2 (n)f (1) = 0 for n > 3. Hence,

= f(1) = 3p0(x)f(1)(1)(x – 1)= f(1) +p1(x)

1!

Page 16: X33 taylor expansions

Example: A. Find the Taylor-expansion of f(x) = 1 + x + x2 around x = 1.We need the derivatives of f(x):

(1) (1)

f(1) = 1 + 1 + 1 f(1) = 3

Taylor Expansions

f (x) = 1 + 2x f (1) = 3 (2) (2)f (x) = 2 f (1) = 2 (n)f (1) = 0 for n > 3. Hence,

= f(1) = 3p0(x)f(1)(1)(x – 1)= f(1) +p1(x)

1! = 3(x – 1)3 +1!

Page 17: X33 taylor expansions

Example: A. Find the Taylor-expansion of f(x) = 1 + x + x2 around x = 1.We need the derivatives of f(x):

(1) (1)

f(1) = 1 + 1 + 1 f(1) = 3

Taylor Expansions

f (x) = 1 + 2x f (1) = 3 (2) (2)f (x) = 2 f (1) = 2 (n)f (1) = 0 for n > 3. Hence,

= f(1) = 3p0(x)f(1)(1)(x – 1)= f(1) +p1(x)

1! = 3(x – 1)3 +1!

(= 3x)

Page 18: X33 taylor expansions

Example: A. Find the Taylor-expansion of f(x) = 1 + x + x2 around x = 1.We need the derivatives of f(x):

(1) (1)

f(1) = 1 + 1 + 1 f(1) = 3

Taylor Expansions

f (x) = 1 + 2x f (1) = 3 (2) (2)f (x) = 2 f (1) = 2 (n)f (1) = 0 for n > 3. Hence,

= f(1) = 3p0(x)f(1)(1)(x – 1)= f(1) +p1(x)

1! = 3(x – 1)3 +1!

f(1)(1)(x – 1) += f(1) +p2(x)1!

f(2)(1)(x – 1)2

2!

(= 3x)

Page 19: X33 taylor expansions

Example: A. Find the Taylor-expansion of f(x) = 1 + x + x2 around x = 1.We need the derivatives of f(x):

(1) (1)

f(1) = 1 + 1 + 1 f(1) = 3

Taylor Expansions

f (x) = 1 + 2x f (1) = 3 (2) (2)f (x) = 2 f (1) = 2 (n)f (1) = 0 for n > 3. Hence,

= f(1) = 3p0(x)f(1)(1)(x – 1)= f(1) +p1(x)

1! = 3(x – 1)3 +1!

f(1)(1)(x – 1) += f(1) +p2(x)1!

f(2)(1)(x – 1)2

2!= 3(x – 1)3 +

1! + 2(x – 1)2

2!

(= 3x)

Page 20: X33 taylor expansions

Example: A. Find the Taylor-expansion of f(x) = 1 + x + x2 around x = 1.We need the derivatives of f(x):

(1) (1)

f(1) = 1 + 1 + 1 f(1) = 3

Taylor Expansions

f (x) = 1 + 2x f (1) = 3 (2) (2)f (x) = 2 f (1) = 2 (n)f (1) = 0 for n > 3. Hence,

= f(1) = 3p0(x)f(1)(1)(x – 1)= f(1) +p1(x)

1! = 3(x – 1)3 +1!

f(1)(1)(x – 1) += f(1) +p2(x)1!

f(2)(1)(x – 1)2

2!= 3(x – 1)3 +

1! + 2(x – 1)2

2! = 1 + x + x2

(= 3x)

Page 21: X33 taylor expansions

Example: A. Find the Taylor-expansion of f(x) = 1 + x + x2 around x = 1.We need the derivatives of f(x):

(1) (1)

f(1) = 1 + 1 + 1 f(1) = 3

Taylor Expansions

f (x) = 1 + 2x f (1) = 3 (2) (2)f (x) = 2 f (1) = 2 (n)f (1) = 0 for n > 3. Hence,

= f(1) = 3p0(x)f(1)(1)(x – 1)= f(1) +p1(x)

1! = 3(x – 1)3 +1!

f(1)(1)(x – 1) += f(1) +p2(x)1!

f(2)(1)(x – 1)2

2!= 3(x – 1)3 +

1! + 2(x – 1)2

2! = 1 + x + x2

= 1 + x + x2 for n > 2.pn(x)

(= 3x)

Page 22: X33 taylor expansions

Taylor Expansions

y=1+x+x2

(1, 3)

Graphs of Taylor polynomials at x = 1

Page 23: X33 taylor expansions

Taylor Expansions

y=1+x+x2

y=3(1, 3)

Graphs of Taylor polynomials at x = 1

Page 24: X33 taylor expansions

Taylor Expansions

y=1+x+x2

y=3

y=3x

(1, 3)

Graphs of Taylor polynomials at x = 1

Page 25: X33 taylor expansions

Taylor Expansions

y=1+x+x2

y=3

y=3x

Graphs of Taylor polynomials at x = 1

(1, 3)

Page 26: X33 taylor expansions

Example: B. Find the Taylor-expansion of f(x) = cos(x)

around x =

Taylor Expansions

π2

Page 27: X33 taylor expansions

Example: B. Find the Taylor-expansion of f(x) = cos(x)

around x =

Taylor Expansions

π2

cos(x)

-sin(x)

-cos(x)

sin(x)

Page 28: X33 taylor expansions

Example: B. Find the Taylor-expansion of f(x) = cos(x)

around x =

Taylor Expansions

π2

cos(x)

-sin(x)

-cos(x)

sin(x)

At x = π2 , we get the sequence of coefficients 0, 1, 0, -1, 0, 1, 0, -1, …

Page 29: X33 taylor expansions

Example: B. Find the Taylor-expansion of f(x) = cos(x)

around x =

Taylor Expansions

π2

cos(x)

-sin(x)

-cos(x)

sin(x)

At x = π2 , we get the sequence of coefficients 0, 1, 0, -1, 0, 1, 0, -1, … So the Taylor expansions is

1(x – π/2) – = 0 +P(x) 1!(x – π/2)3

+ 03!+ 0

1(x – π/2)5+

5!– + 0

1(x – π/2)7

7!..

Page 30: X33 taylor expansions

Example: B. Find the Taylor-expansion of f(x) = cos(x)

around x =

Taylor Expansions

π2

cos(x)

-sin(x)

-cos(x)

sin(x)

At x = π2 , we get the sequence of coefficients 0, 1, 0, -1, 0, 1, 0, -1, … So the Taylor expansions is

1(x – π/2) – = 0 +P(x) 1!(x – π/2)3

+ 03!+ 0

1(x – π/2)5+

5!– + 0

1(x – π/2)7

7!..

P(x)= Σ(-1)n+1(x – π/2)2n+1

(2n + 1)!n=0

n =∞

Page 31: X33 taylor expansions

We can't expand Ln(x) at x = 0 but we can expand it at x = 1. Taylor Expansions

Page 32: X33 taylor expansions

We can't expand Ln(x) at x = 0 but we can expand it at x = 1. Taylor Expansions

Example: Expand Ln(x) at x = 1.

Page 33: X33 taylor expansions

We can't expand Ln(x) at x = 0 but we can expand it at x = 1. Taylor Expansions

y(1) = x-1, Example: Expand Ln(x) at x = 1.

Page 34: X33 taylor expansions

We can't expand Ln(x) at x = 0 but we can expand it at x = 1. Taylor Expansions

y(1) = x-1, y(2) = -x-2, Example: Expand Ln(x) at x = 1.

Page 35: X33 taylor expansions

We can't expand Ln(x) at x = 0 but we can expand it at x = 1. Taylor Expansions

y(1) = x-1, y(2) = -x-2, y(3) = 2x-3, Example: Expand Ln(x) at x = 1.

Page 36: X33 taylor expansions

We can't expand Ln(x) at x = 0 but we can expand it at x = 1. Taylor Expansions

y(1) = x-1, y(2) = -x-2, y(3) = 2x-3, y(4) = -3*2x-4, Example: Expand Ln(x) at x = 1.

Page 37: X33 taylor expansions

We can't expand Ln(x) at x = 0 but we can expand it at x = 1. Taylor Expansions

y(1) = x-1, y(2) = -x-2, y(3) = 2x-3, y(4) = -3*2x-4, y(5) = 4!x-5, Example: Expand Ln(x) at x = 1.

Page 38: X33 taylor expansions

We can't expand Ln(x) at x = 0 but we can expand it at x = 1. Taylor Expansions

y(1) = x-1, y(2) = -x-2, y(3) = 2x-3, y(4) = -3*2x-4, y(5) = 4!x-5, we get the general formulay(n)=(-1)n-1(n – 1)! x-n for n = 1, 2, 3 ..

Example: Expand Ln(x) at x = 1.

Page 39: X33 taylor expansions

We can't expand Ln(x) at x = 0 but we can expand it at x = 1. Taylor Expansions

y(1) = x-1, y(2) = -x-2, y(3) = 2x-3, y(4) = -3*2x-4, y(5) = 4!x-5, we get the general formulay(n)=(-1)n-1(n – 1)! x-n for n = 1, 2, 3 ..

Example: Expand Ln(x) at x = 1.

Page 40: X33 taylor expansions

We can't expand Ln(x) at x = 0 but we can expand it at x = 1. Taylor Expansions

y(1) = x-1, y(2) = -x-2, y(3) = 2x-3, y(4) = -3*2x-4, y(5) = 4!x-5, we get the general formulay(n)=(-1)n-1(n – 1)! x-n for n = 1, 2, 3 ..

Example: Expand Ln(x) at x = 1.

Page 41: X33 taylor expansions

We can't expand Ln(x) at x = 0 but we can expand it at x = 1. Taylor Expansions

y(1) = x-1, y(2) = -x-2, y(3) = 2x-3, y(4) = -3*2x-4, y(5) = 4!x-5, we get the general formulay(n)=(-1)n-1(n – 1)! x-n for n = 1, 2, 3 ..

Example: Expand Ln(x) at x = 1.

Page 42: X33 taylor expansions

We can't expand Ln(x) at x = 0 but we can expand it at x = 1. Taylor Expansions

At x = 1, we get

y(1) = x-1, y(2) = -x-2, y(3) = 2x-3, y(4) = -3*2x-4, y(5) = 4!x-5, we get the general formulay(n)=(-1)n-1(n – 1)! x-n for n = 1, 2, 3 ..

Example: Expand Ln(x) at x = 1.

Ln(1) = 0, y(1)(1) = 1, y(2)(1) = -1, y(3)(1) = 2, y(4)(1) = -3*2, y(5)(1) = 4!,

Page 43: X33 taylor expansions

We can't expand Ln(x) at x = 0 but we can expand it at x = 1. Taylor Expansions

At x = 1, we get

y(1) = x-1, y(2) = -x-2, y(3) = 2x-3, y(4) = -3*2x-4, y(5) = 4!x-5, we get the general formulay(n)=(-1)n-1(n – 1)! x-n for n = 1, 2, 3 ..

Example: Expand Ln(x) at x = 1.

Ln(1) = 0, y(1)(1) = 1, y(2)(1) = -1, y(3)(1) = 2, y(4)(1) = -3*2, y(5)(1) = 4!, … and the general formula is y(n)=(-1)n-1(n – 1)! for n = 1, 2, 3 ..

Page 44: X33 taylor expansions

We can't expand Ln(x) at x = 0 but we can expand it at x = 1. Taylor Expansions

At x = 1, we get

y(1) = x-1, y(2) = -x-2, y(3) = 2x-3, y(4) = -3*2x-4, y(5) = 4!x-5, we get the general formulay(n)=(-1)n-1(n – 1)! x-n for n = 1, 2, 3 ..

Example: Expand Ln(x) at x = 1.

Ln(1) = 0, y(1)(1) = 1, y(2)(1) = -1, y(3)(1) = 2, y(4)(1) = -3*2, y(5)(1) = 4!, … and the general formula is y(n)=(-1)n-1(n – 1)! for n = 1, 2, 3 ..

P(x) = Σn=0

(x – a)n

n! f(n)(a)∞

Page 45: X33 taylor expansions

We can't expand Ln(x) at x = 0 but we can expand it at x = 1. Taylor Expansions

At x = 1, we get

y(1) = x-1, y(2) = -x-2, y(3) = 2x-3, y(4) = -3*2x-4, y(5) = 4!x-5, we get the general formulay(n)=(-1)n-1(n – 1)! x-n for n = 1, 2, 3 ..

Example: Expand Ln(x) at x = 1.

Ln(1) = 0, y(1)(1) = 1, y(2)(1) = -1, y(3)(1) = 2, y(4)(1) = -3*2, y(5)(1) = 4!, … and the general formula is y(n)=(-1)n-1(n – 1)! for n = 1, 2, 3 ..

P(x) = Σn=0

(x – a)n

n! f(n)(a)∞

= Σn=0

(x – 1)n

n! y(n)(1)∞

Page 46: X33 taylor expansions

We can't expand Ln(x) at x = 0 but we can expand it at x = 1. Taylor Expansions

At x = 1, we get

y(1) = x-1, y(2) = -x-2, y(3) = 2x-3, y(4) = -3*2x-4, y(5) = 4!x-5, we get the general formulay(n)=(-1)n-1(n – 1)! x-n for n = 1, 2, 3 ..

Example: Expand Ln(x) at x = 1.

Ln(1) = 0, y(1)(1) = 1, y(2)(1) = -1, y(3)(1) = 2, y(4)(1) = -3*2, y(5)(1) = 4!, … and the general formula is y(n)=(-1)n-1(n – 1)! for n = 1, 2, 3 ..

P(x) = Σn=0

(x – a)n

n! f(n)(a)∞

= Σn=0

(x – 1)n

n! y(n)(1)∞

= Σn=1

(x – 1)n

n! (-1)n-1(n – 1)!∞

=

Page 47: X33 taylor expansions

We can't expand Ln(x) at x = 0 but we can expand it at x = 1. Taylor Expansions

At x = 1, we get

y(1) = x-1, y(2) = -x-2, y(3) = 2x-3, y(4) = -3*2x-4, y(5) = 4!x-5, we get the general formulay(n)=(-1)n-1(n – 1)! x-n for n = 1, 2, 3 ..

Example: Expand Ln(x) at x = 1.

Ln(1) = 0, y(1)(1) = 1, y(2)(1) = -1, y(3)(1) = 2, y(4)(1) = -3*2, y(5)(1) = 4!, … and the general formula is y(n)=(-1)n-1(n – 1)! for n = 1, 2, 3 ..

P(x) = Σn=0

(x – a)n

n! f(n)(a)∞

= Σn=0

(x – 1)n

n! y(n)(1)∞

= Σn=1

(x – 1)n

n! (-1)n-1(n – 1)!∞

= Σn=1

(x – 1)n

n (-1)n-1∞

Page 48: X33 taylor expansions

We can't expand Ln(x) at x = 0 but we can expand it at x = 1. Taylor Expansions

At x = 1, we get

y(1) = x-1, y(2) = -x-2, y(3) = 2x-3, y(4) = -3*2x-4, y(5) = 4!x-5, we get the general formulay(n)=(-1)n-1(n – 1)! x-n for n = 1, 2, 3 ..

Example: Expand Ln(x) at x = 1.

Ln(1) = 0, y(1)(1) = 1, y(2)(1) = -1, y(3)(1) = 2, y(4)(1) = -3*2, y(5)(1) = 4!, … and the general formula is y(n)=(-1)n-1(n – 1)! for n = 1, 2, 3 ..

P(x) = Σn=0

(x – a)n

n! f(n)(a)∞

= Σn=0

(x – 1)n

n! y(n)(1)∞

= Σn=1

(x – 1)n

n! (-1)n-1(n – 1)!∞

= Σn=1

(x – 1)n

n (-1)n-1∞

(x – 1) – (x – 1)2

2+ (x – 1)3

3– (x – 1)4

4+ (x – 1)5

5 …P(x) =