39
mputation Techniques for Maclaurin Expansio

X34 computation techniques for maclaurin expansions

  • Upload
    math266

  • View
    103

  • Download
    1

Embed Size (px)

Citation preview

Page 1: X34 computation techniques for maclaurin expansions

Computation Techniques for Maclaurin Expansions

Page 2: X34 computation techniques for maclaurin expansions

Computation Techniques for Maclaurin Expansions Direct computation of the Mac-series can be messyvia derivatives.

Page 3: X34 computation techniques for maclaurin expansions

Computation Techniques for Maclaurin Expansions Direct computation of the Mac-series can be messyvia derivatives. In this section we show some of the algebraic techniques for computing the Mac-series.

Page 4: X34 computation techniques for maclaurin expansions

Computation Techniques for Maclaurin Expansions Direct computation of the Mac-series can be messyvia derivatives. In this section we show some of the algebraic techniques for computing the Mac-series. Theorem: Let F(x) and G(x) be the Mac-series of f(x) and and g(x) respectively.

Page 5: X34 computation techniques for maclaurin expansions

Computation Techniques for Maclaurin Expansions Direct computation of the Mac-series can be messyvia derivatives. In this section we show some of the algebraic techniques for computing the Mac-series. Theorem: Let F(x) and G(x) be the Mac-series of f(x) and and g(x) respectively. I. The Mac-expansions respect +, –, * , and /, that is, the Mac-series of f + g, f – g, f*g, and f/g are F + G, F – G, F*G, and F/G respectively.

Page 6: X34 computation techniques for maclaurin expansions

Computation Techniques for Maclaurin Expansions Direct computation of the Mac-series can be messyvia derivatives. In this section we show some of the algebraic techniques for computing the Mac-series. Theorem: Let F(x) and G(x) be the Mac-series of f(x) and and g(x) respectively. I. The Mac-expansions respect +, –, * , and /, that is, the Mac-series of f + g, f – g, f*g, and f/g are F + G, F – G, F*G, and F/G respectively.

II. Mac-series respect composition of functions.This is particularly useful if g(x) is a polynomial in which case the Mac-series of f(g(x)) is F(g(x)).

Page 7: X34 computation techniques for maclaurin expansions

Computation Techniques for Maclaurin Expansions Direct computation of the Mac-series can be messyvia derivatives. In this section we show some of the algebraic techniques for computing the Mac-series. Theorem: Let F(x) and G(x) be the Mac-series of f(x) and and g(x) respectively. I. The Mac-expansions respect +, –, * , and /, that is, the Mac-series of f + g, f – g, f*g, and f/g are F + G, F – G, F*G, and F/G respectively.

II. Mac-series respect composition of functions.This is particularly useful if g(x) is a polynomial in which case the Mac-series of f(g(x)) is F(g(x)).We list below the basic Mac-series that we will use in our examples .

Page 8: X34 computation techniques for maclaurin expansions

Summary of the Mac-series

I. For polynomials P, Mac-poly of degree k consists the first k-terms of the polynomial P. Mac-series of polynomials are themselves.

II. For ex, its Σk=0 k! .

xk∞x + 2!1 + x2

+ .. ++ 3!x3

n! ..xn

=

Σk=0 (2k+1)!

(-1)kx2k+1∞x –

3!x3

+ 5!x5

+ .. =7!x7

– III. For sin(x), its

IV. For cos(x), its Σk=0 (2k)!

(-1)kx2k∞+

4!x4

6!x6

8!x8

+ 1 – – – .. =2!x2

V. For , its(1 – x ) 1

1 + x + x2 + x3 + x4 .. = Σk=0

∞xk

Computation Techniques for Maclaurin Expansions

Page 9: X34 computation techniques for maclaurin expansions

Summary of the Mac-series

I. For polynomials P, Mac-poly of degree k consists the first k-terms of the polynomial P. Mac-series of polynomials are themselves.

II. For ex, its Σk=0 k! .

xk∞x + 2!1 + x2

+ .. ++ 3!x3

n! ..xn

=

Σk=0 (2k+1)!

(-1)kx2k+1∞x –

3!x3

+ 5!x5

+ .. =7!x7

– III. For sin(x), its

IV. For cos(x), its Σk=0 (2k)!

(-1)kx2k∞+

4!x4

6!x6

8!x8

+ 1 – – – .. =2!x2

V. For , its(1 – x ) 1

1 + x + x2 + x3 + x4 .. = Σk=0

∞xk

Computation Techniques for Maclaurin Expansions

Page 10: X34 computation techniques for maclaurin expansions

Summary of the Mac-series

I. For polynomials P, Mac-poly of degree k consists the first k-terms of the polynomial P. Mac-series of polynomials are themselves.

II. For ex, its Σk=0 k! .

xk∞x + 2!1 + x2

+ .. ++ 3!x3

n! ..xn

=

Σk=0 (2k+1)!

(-1)kx2k+1∞x –

3!x3

+ 5!x5

+ .. =7!x7

– III. For sin(x), its

IV. For cos(x), its Σk=0 (2k)!

(-1)kx2k∞+

4!x4

6!x6

8!x8

+ 1 – – – .. =2!x2

V. For , its(1 – x ) 1

1 + x + x2 + x3 + x4 .. = Σk=0

∞xk

Computation Techniques for Maclaurin Expansions

Page 11: X34 computation techniques for maclaurin expansions

Summary of the Mac-series

I. For polynomials P, Mac-poly of degree k consists the first k-terms of the polynomial P. Mac-series of polynomials are themselves.

II. For ex, its Σk=0 k! .

xk∞x + 2!1 + x2

+ .. ++ 3!x3

n! ..xn

=

Σk=0 (2k+1)!

(-1)kx2k+1∞x –

3!x3

+ 5!x5

+ .. =7!x7

– III. For sin(x), its

IV. For cos(x), its Σk=0 (2k)!

(-1)kx2k∞+

4!x4

6!x6

8!x8

+ 1 – – – .. =2!x2

V. For , its(1 – x ) 1

1 + x + x2 + x3 + x4 .. = Σk=0

∞xk

Computation Techniques for Maclaurin Expansions

Page 12: X34 computation techniques for maclaurin expansions

Summary of the Mac-series

I. For polynomials P, Mac-poly of degree k consists the first k-terms of the polynomial P. Mac-series of polynomials are themselves.

II. For ex, its Σk=0 k! .

xk∞x + 2!1 + x2

+ .. ++ 3!x3

n! ..xn

=

Σk=0 (2k+1)!

(-1)kx2k+1∞x –

3!x3

+ 5!x5

+ .. =7!x7

– III. For sin(x), its

IV. For cos(x), its Σk=0 (2k)!

(-1)kx2k∞+

4!x4

6!x6

8!x8

+ 1 – – – .. =2!x2

V. For , its(1 – x ) 1

1 + x + x2 + x3 + x4 .. = Σk=0

∞xk

Computation Techniques for Maclaurin Expansions

Page 13: X34 computation techniques for maclaurin expansions

Summary of the Mac-series

I. For polynomials P, Mac-poly of degree k consists the first k-terms of the polynomial P. Mac-series of polynomials are themselves.

II. For ex, its Σk=0 k! .

xk∞x + 2!1 + x2

+ .. ++ 3!x3

n! ..xn

=

Σk=0 (2k+1)!

(-1)kx2k+1∞x –

3!x3

+ 5!x5

+ .. =7!x7

– III. For sin(x), its

IV. For cos(x), its Σk=0 (2k)!

(-1)kx2k∞+

4!x4

6!x6

8!x8

+ 1 – – – .. =2!x2

V. For , its(1 – x ) 1

1 + x + x2 + x3 + x4 .. = Σk=0

∞xk

Computation Techniques for Maclaurin Expansions

Page 14: X34 computation techniques for maclaurin expansions

Example: Find the Mac-series of sin(x) + cos(x)

Computation Techniques for Maclaurin Expansions

Page 15: X34 computation techniques for maclaurin expansions

Example: Find the Mac-series of sin(x) + cos(x)

Σk=0 (2k+1)!

(-1)kx2k+1∞

x – 3!x3

+5!x5

+ .. =7!x7

– sin(x) =

Computation Techniques for Maclaurin Expansions

Page 16: X34 computation techniques for maclaurin expansions

Example: Find the Mac-series of sin(x) + cos(x)

Σk=0 (2k+1)!

(-1)kx2k+1∞

x – 3!x3

+5!x5

+ .. =7!x7

– sin(x) =

cos(x) = Σk=0 (2k)!

(-1)kx2k∞

+ 4!x4

6!x6

8!x8

+ 1 – – – .. =2!x2

Computation Techniques for Maclaurin Expansions

Page 17: X34 computation techniques for maclaurin expansions

Example: Find the Mac-series of sin(x) + cos(x)

Σk=0 (2k+1)!

(-1)kx2k+1∞

x – 3!x3

+5!x5

+ .. =7!x7

– sin(x) =

cos(x) = Σk=0 (2k)!

(-1)kx2k∞

+ 4!x4

6!x6

8!x8

+ 1 – – – .. =2!x2

Computation Techniques for Maclaurin Expansions

Therefore,

sin(x) + cos(x) =1 + x – 2!x2

– 3!x3

+ 4!x4

+5!x5

6!x6

– 7!x7

– ..

Page 18: X34 computation techniques for maclaurin expansions

Example: Find the Mac-series of sin(x) + cos(x)

Σk=0 (2k+1)!

(-1)kx2k+1∞

x – 3!x3

+5!x5

+ .. =7!x7

– sin(x) =

cos(x) = Σk=0 (2k)!

(-1)kx2k∞

+ 4!x4

6!x6

8!x8

+ 1 – – – .. =2!x2

Computation Techniques for Maclaurin Expansions

Therefore,

sin(x) + cos(x) =1 + x – 2!x2

– 3!x3

+ 4!x4

+5!x5

6!x6

– 7!x7

– ..

= Σk=0 (2k+1)!

(-1)kx2k+1∞

+(2k)!

(-1)kx2k

Page 19: X34 computation techniques for maclaurin expansions

Example: Find the Mac-series of x2ex.

Computation Techniques for Maclaurin Expansions

Page 20: X34 computation techniques for maclaurin expansions

Example: Find the Mac-series of x2ex.

Computation Techniques for Maclaurin Expansions

ex = Σk=0 k! .

xk∞x +

2!1 + x2

+ .. ++3!x3

n! xn

=+ ..

Page 21: X34 computation techniques for maclaurin expansions

Example: Find the Mac-series of x2ex.

Computation Techniques for Maclaurin Expansions

ex = Σk=0 k! .

xk∞x +

2!1 + x2

+ .. ++3!x3

n! xn

=+ ..

Therefore, x2ex = x2 Σ

k=0 k!xk∞

Page 22: X34 computation techniques for maclaurin expansions

Example: Find the Mac-series of x2ex.

Computation Techniques for Maclaurin Expansions

ex = Σk=0 k! .

xk∞x +

2!1 + x2

+ .. ++3!x3

n! xn

=+ ..

Therefore, x2ex = x2 Σ

k=0 k! xk+2∞

=Σk=0 k!

xk∞

Page 23: X34 computation techniques for maclaurin expansions

Example: Find the Mac-series of x2ex.

Computation Techniques for Maclaurin Expansions

ex = Σk=0 k! .

xk∞x +

2!1 + x2

+ .. ++3!x3

n! xn

=+ ..

Therefore, x2ex = x2 Σ

k=0 k! xk+2∞

=Σk=0 k!

xk∞

x +2!

1 + x2

+ ..+3!x3

) = x2(

Page 24: X34 computation techniques for maclaurin expansions

Example: Find the Mac-series of x2ex.

Computation Techniques for Maclaurin Expansions

ex = Σk=0 k! .

xk∞x +

2!1 + x2

+ .. ++3!x3

n! xn

=+ ..

Therefore, x2ex = x2

+2!

x2 + x3 x4

+ ..+3!x5

Σk=0 k!

xk+2∞=Σ

k=0 k!xk∞

=x +2!

1 + x2

+ ..+3!x3

) = x2(

Page 25: X34 computation techniques for maclaurin expansions

Example: Find the Mac-series of x2ex.

Computation Techniques for Maclaurin Expansions

ex = Σk=0 k! .

xk∞x +

2!1 + x2

+ .. ++3!x3

n! xn

=+ ..

Therefore, x2ex = x2

+2!

x2 + x3 x4

+ ..+3!x5

Σk=0 k!

xk+2∞=

Example: Find the Mac-series of sin(x2)

Σk=0 k!

xk∞

=x +2!

1 + x2

+ ..+3!x3

) = x2(

Page 26: X34 computation techniques for maclaurin expansions

Example: Find the Mac-series of x2ex.

Computation Techniques for Maclaurin Expansions

ex = Σk=0 k! .

xk∞x +

2!1 + x2

+ .. ++3!x3

n! xn

=+ ..

Therefore, x2ex = x2

+2!

x2 + x3 x4

+ ..+3!x5

Σk=0 k!

xk+2∞=

Example: Find the Mac-series of sin(x2)

Σk=0 (2k+1)!

(-1)kx2k+1∞

x – 3!x3

+5!x5

+ .. =7!x7

– sin(x) =

Σk=0 k!

xk∞

=x +2!

1 + x2

+ ..+3!x3

) = x2(

Page 27: X34 computation techniques for maclaurin expansions

Example: Find the Mac-series of x2ex.

Computation Techniques for Maclaurin Expansions

ex = Σk=0 k! .

xk∞x +

2!1 + x2

+ .. ++3!x3

n! xn

=+ ..

Therefore, x2ex = x2

+2!

x2 + x3 x4

+ ..+3!x5

Σk=0 k!

xk+2∞=

Example: Find the Mac-series of sin(x2)

Σk=0 (2k+1)!

(-1)kx2k+1∞

x – 3!x3

+5!x5

+ .. =7!x7

– sin(x) =

sin(x2) = Σk=0 (2k+1)!

(-1)k(x2)2k+1∞

Σk=0 k!

xk∞

=x +2!

1 + x2

+ ..+3!x3

) = x2(

Page 28: X34 computation techniques for maclaurin expansions

Example: Find the Mac-series of x2ex.

Computation Techniques for Maclaurin Expansions

ex = Σk=0 k! .

xk∞x +

2!1 + x2

+ .. ++3!x3

n! xn

=+ ..

Therefore, x2ex = x2

+2!

x2 + x3 x4

+ ..+3!x5

Σk=0 k!

xk+2∞=

Example: Find the Mac-series of sin(x2)

Σk=0 (2k+1)!

(-1)kx2k+1∞

x – 3!x3

+5!x5

+ .. =7!x7

– sin(x) =

sin(x2) = Σk=0 (2k+1)!

(-1)k(x2)2k+1∞

= Σk=0 (2k+1)!

(-1)kx4k+2∞

Σk=0 k!

xk∞

=x +2!

1 + x2

+ ..+3!x3

) = x2(

Page 29: X34 computation techniques for maclaurin expansions

Example: Find the Mac-series of x2ex.

Computation Techniques for Maclaurin Expansions

ex = Σk=0 k! .

xk∞x +

2!1 + x2

+ .. ++3!x3

n! xn

=+ ..

Therefore, x2ex = x2

+2!

x2 + x3 x4

+ ..+3!x5

Σk=0 k!

xk+2∞=

Example: Find the Mac-series of sin(x2)

Σk=0 (2k+1)!

(-1)kx2k+1∞

x – 3!x3

+5!x5

+ .. =7!x7

– sin(x) =

sin(x2) =

=

Σk=0 (2k+1)!

(-1)k(x2)2k+1∞

= Σk=0 (2k+1)!

(-1)kx4k+2∞

Σk=0 k!

xk∞

=

x2 – 3!

(x2)3+

5!(x2)5

+ .. = 7!

(x2)7–

x +2!

1 + x2

+ ..+3!x3

) = x2(

Page 30: X34 computation techniques for maclaurin expansions

Example: Find the Mac-series of x2ex.

Computation Techniques for Maclaurin Expansions

ex = Σk=0 k! .

xk∞x +

2!1 + x2

+ .. ++3!x3

n! xn

=+ ..

Therefore, x2ex = x2

+2!

x2 + x3 x4

+ ..+3!x5

Σk=0 k!

xk+2∞=

Example: Find the Mac-series of sin(x2)

Σk=0 (2k+1)!

(-1)kx2k+1∞

x – 3!x3

+5!x5

+ .. =7!x7

– sin(x) =

sin(x2) =

=

Σk=0 (2k+1)!

(-1)k(x2)2k+1∞

= Σk=0 (2k+1)!

(-1)kx4k+2∞

Σk=0 k!

xk∞

=

x2 – 3!

(x2)3+

5!(x2)5

+ .. = 7!

(x2)7– x2 –

3!x6

+5!x10

7!x14

– ..

x +2!

1 + x2

+ ..+3!x3

) = x2(

Page 31: X34 computation techniques for maclaurin expansions

Example: Find the Mac-series of

Computation Techniques for Maclaurin Expansions

1 + x2 x

Page 32: X34 computation techniques for maclaurin expansions

Example: Find the Mac-series of

Computation Techniques for Maclaurin Expansions

1 + x2 x

1 + x2 x = x

1 + x2 1

*

Page 33: X34 computation techniques for maclaurin expansions

Example: Find the Mac-series of

Computation Techniques for Maclaurin Expansions

Since = 1 + x + x2 + .. xn + .. Σk=0

xk∞

=

1 + x2 x

1 + x2 x = x

1 + x2 1

*

1 – x 1

Page 34: X34 computation techniques for maclaurin expansions

Example: Find the Mac-series of

Computation Techniques for Maclaurin Expansions

Since = 1 + x + x2 + .. xn + .. Σk=0

xk∞

=

1 + x2 x

1 + x2 x = x

1 + x2 1

*

1 – x 1

by writing 1 + x2

1 as 1 – (-x2)

1

Page 35: X34 computation techniques for maclaurin expansions

Example: Find the Mac-series of

Computation Techniques for Maclaurin Expansions

Since = 1 + x + x2 + .. xn + .. Σk=0

xk∞

=

1 + x2 x

1 + x2 x = x

1 + x2 1

*

1 – x 1

by writing 1 + x2

1 as 1 – (-x2)

1 with substitution, we get

1 + x2 1 Σ

k=0(-x2)k

= =

Page 36: X34 computation techniques for maclaurin expansions

Example: Find the Mac-series of

Computation Techniques for Maclaurin Expansions

Since = 1 + x + x2 + .. xn + .. Σk=0

xk∞

=

1 + x2 x

1 + x2 x = x

1 + x2 1

*

1 – x 1

by writing 1 + x2

1 as 1 – (-x2)

1 with substitution, we get

1 + x2 1 Σ

k=0(-x2)k

= Σk=0

(-1)kx2k∞

=

Page 37: X34 computation techniques for maclaurin expansions

Example: Find the Mac-series of

Computation Techniques for Maclaurin Expansions

Since = 1 + x + x2 + .. xn + .. Σk=0

xk∞

=

1 + x2 x

1 + x2 x = x

1 + x2 1

*

1 – x 1

by writing 1 + x2

1 as 1 – (-x2)

1 with substitution, we get

1 + x2 1

= 1 – x2 + x4 – x6 + x8 – x10 ..

Σk=0

(-x2)k∞

= Σk=0

(-1)kx2k∞

=

Page 38: X34 computation techniques for maclaurin expansions

Example: Find the Mac-series of

Computation Techniques for Maclaurin Expansions

Since = 1 + x + x2 + .. xn + .. Σk=0

xk∞

=

1 + x2 x

1 + x2 x = x

1 + x2 1

*

1 – x 1

by writing 1 + x2

1 as 1 – (-x2)

1 with substitution, we get

1 + x2 1

= 1 – x2 + x4 – x6 + x8 – x10 ..

Σk=0

(-x2)k∞

= Σk=0

(-1)kx2k∞

=

Therefore 1 + x2

x = x * Σk=0

(-1)kx2k∞

Page 39: X34 computation techniques for maclaurin expansions

Example: Find the Mac-series of

Computation Techniques for Maclaurin Expansions

Since = 1 + x + x2 + .. xn + .. Σk=0

xk∞

=

1 + x2 x

1 + x2 x = x

1 + x2 1

*

1 – x 1

by writing 1 + x2

1 as 1 – (-x2)

1 with substitution, we get

1 + x2 1

= 1 – x2 + x4 – x6 + x8 – x10 ..

Σk=0

(-x2)k∞

= Σk=0

(-1)kx2k∞

=

Therefore 1 + x2

x = x * Σk=0

(-1)kx2k∞

Σk=0

(-1)kx2k+1=