Taylor and Maclaurin Series

Similar documents
Lecture 32: Taylor Series and McLaurin series We saw last day that some functions are equal to a power series on part of their domain.

Section Taylor and Maclaurin Series

Review of Power Series

July 21 Math 2254 sec 001 Summer 2015

TAYLOR AND MACLAURIN SERIES

1 Question related to polynomials

Completion Date: Monday February 11, 2008

Math 113 (Calculus 2) Exam 4

AP Calculus Testbank (Chapter 9) (Mr. Surowski)

Taylor and Maclaurin Series. Copyright Cengage Learning. All rights reserved.

Ma 530 Power Series II

Section 10.7 Taylor series

INFINITE SEQUENCES AND SERIES

Taylor Series. Math114. March 1, Department of Mathematics, University of Kentucky. Math114 Lecture 18 1/ 13

Section 8.7. Taylor and MacLaurin Series. (1) Definitions, (2) Common Maclaurin Series, (3) Taylor Polynomials, (4) Applications.

8.7 Taylor s Inequality Math 2300 Section 005 Calculus II. f(x) = ln(1 + x) f(0) = 0

Math 651 Introduction to Numerical Analysis I Fall SOLUTIONS: Homework Set 1

Taylor and Maclaurin Series. Approximating functions using Polynomials.

Math 227 Sample Final Examination 1. Name (print) Name (sign) Bing ID number

Math 0230 Calculus 2 Lectures

10.1 Sequences. Example: A sequence is a function f(n) whose domain is a subset of the integers. Notation: *Note: n = 0 vs. n = 1.

Math Review for Exam Answer each of the following questions as either True or False. Circle the correct answer.

JUST THE MATHS UNIT NUMBER DIFFERENTIATION APPLICATIONS 5 (Maclaurin s and Taylor s series) A.J.Hobson

Section Example Determine the Maclaurin series of f (x) = e x and its the interval of convergence.

Math 115 HW #5 Solutions

MATH 1231 MATHEMATICS 1B CALCULUS. Section 5: - Power Series and Taylor Series.

Study # 1 11, 15, 19

CALCULUS JIA-MING (FRANK) LIOU

Absolute Convergence and the Ratio Test

AP Calculus (BC) Chapter 9 Test No Calculator Section Name: Date: Period:

Section 9.7 and 9.10: Taylor Polynomials and Approximations/Taylor and Maclaurin Series

Taylor and Maclaurin Series. Approximating functions using Polynomials.

MAT137 Calculus! Lecture 45

e x = 1 + x + x2 2! + x3 If the function f(x) can be written as a power series on an interval I, then the power series is of the form

Math 162 Review of Series

Absolute Convergence and the Ratio Test

Properties of a Taylor Polynomial

Continuity. MATH 161 Calculus I. J. Robert Buchanan. Fall Department of Mathematics

Review: Power series define functions. Functions define power series. Taylor series of a function. Taylor polynomials of a function.

3.4 Introduction to power series

AP Calculus Chapter 9: Infinite Series

Chapter 11. Taylor Series. Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 1 / 27

HAND IN PART. Prof. Girardi Math 142 Spring Exam 3 PIN:

MATH 1231 MATHEMATICS 1B Calculus Section 4.4: Taylor & Power series.

Math Numerical Analysis

n=1 ( 2 3 )n (a n ) converges by direct comparison to

8.5 Taylor Polynomials and Taylor Series

Chapter 8: Taylor s theorem and L Hospital s rule

SOLVED PROBLEMS ON TAYLOR AND MACLAURIN SERIES

MAT137 Calculus! Lecture 48

Taylor Series and Maclaurin Series

Math 181, Exam 2, Study Guide 2 Problem 1 Solution. 1 + dx. 1 + (cos x)2 dx. 1 + cos2 xdx. = π ( 1 + cos π 2

Part 3.3 Differentiation Taylor Polynomials

MATH 163 HOMEWORK Week 13, due Monday April 26 TOPICS. c n (x a) n then c n = f(n) (a) n!

11.10a Taylor and Maclaurin Series

Section 5.8. Taylor Series

Math 1552: Integral Calculus Final Exam Study Guide, Spring 2018

f (x) = k=0 f (0) = k=0 k=0 a k k(0) k 1 = a 1 a 1 = f (0). a k k(k 1)x k 2, k=2 a k k(k 1)(0) k 2 = 2a 2 a 2 = f (0) 2 a k k(k 1)(k 2)x k 3, k=3

Power series and Taylor series

Infinite Series. MATH 211, Calculus II. J. Robert Buchanan. Spring Department of Mathematics

Final exam (practice) UCLA: Math 31B, Spring 2017

Power Series. x n. Using the ratio test. n n + 1. x n+1 n 3. = lim x. lim n + 1. = 1 < x < 1. Then r = 1 and I = ( 1, 1) ( 1) n 1 x n.

Fundamental Theorem of Calculus

1 + lim. n n+1. f(x) = x + 1, x 1. and we check that f is increasing, instead. Using the quotient rule, we easily find that. 1 (x + 1) 1 x (x + 1) 2 =

Constructing Taylor Series

Analysis II: Basic knowledge of real analysis: Part V, Power Series, Differentiation, and Taylor Series

Math 1B, lecture 15: Taylor Series

Calculus I Sample Exam #01

1 Review of di erential calculus

Worksheet 9. Topics: Taylor series; using Taylor polynomials for approximate computations. Polar coordinates.

Math 221 Notes on Rolle s Theorem, The Mean Value Theorem, l Hôpital s rule, and the Taylor-Maclaurin formula. 1. Two theorems

Representation of Functions as Power Series

Representation of Functions as Power Series.

Introduction and Review of Power Series

Chapter 11 - Sequences and Series

MATH115. Infinite Series. Paolo Lorenzo Bautista. July 17, De La Salle University. PLBautista (DLSU) MATH115 July 17, / 43

You can learn more about the services offered by the teaching center by visiting

Let s Get Series(ous)

MATH 118, LECTURES 27 & 28: TAYLOR SERIES

Chain Rule. MATH 311, Calculus III. J. Robert Buchanan. Spring Department of Mathematics

MATH 1372, SECTION 33, MIDTERM 3 REVIEW ANSWERS

CHALLENGE! (0) = 5. Construct a polynomial with the following behavior at x = 0:

Math 113 Winter 2005 Key

MATH 1242 FINAL EXAM Spring,

Chapter 9: Infinite Series Part 2

, applyingl Hospital s Rule again x 0 2 cos(x) xsinx

TAYLOR SERIES [SST 8.8]

Mean Value Theorem. MATH 161 Calculus I. J. Robert Buchanan. Summer Department of Mathematics

Mean Value Theorem. MATH 161 Calculus I. J. Robert Buchanan. Summer Department of Mathematics

Advanced Calculus Math 127B, Winter 2005 Solutions: Final. nx2 1 + n 2 x, g n(x) = n2 x

1 Antiderivatives graphically and numerically

Engg. Math. I. Unit-I. Differential Calculus

Series Solutions. 8.1 Taylor Polynomials

Section 4.8 Anti Derivative and Indefinite Integrals 2 Lectures. Dr. Abdulla Eid. College of Science. MATHS 101: Calculus I

c n (x a) n c 0 c 1 (x a) c 2 (x a) 2...

The polar coordinates

Calculus and Parametric Equations

Series Solutions of Differential Equations

This practice exam is intended to help you prepare for the final exam for MTH 142 Calculus II.

Introduction Derivation General formula List of series Convergence Applications Test SERIES 4 INU0114/514 (MATHS 1)

Transcription:

Taylor and Maclaurin Series MATH 211, Calculus II J. Robert Buchanan Department of Mathematics Spring 2018

Background We have seen that some power series converge. When they do, we can think of them as functions, say f (x). The derivatives and antiderivatives of f (x) are power series too. Suppose we start with a function, f (x). Is there a power series representation for f (x)? Which functions have power series representations? How do we find the power series representation?

Differentiating a Power Series f (x) = a k (x c) k = a 0 + a 1 (x c) + f (c) = a 0 f (x) = k a k (x c) k 1 = a 1 + 2a 2 (x c) + k=1 f (c) = a 1 f (x) = k(k 1)a k (x c) k 2 = 2a 2 + 6a 3 (x c) + k=2 f (c) = 2a 2.

Differentiating a Power Series f (x) = a k (x c) k = a 0 + a 1 (x c) + f (c) = a 0 f (x) = k a k (x c) k 1 = a 1 + 2a 2 (x c) + k=1 f (c) = a 1 f (x) = k(k 1)a k (x c) k 2 = 2a 2 + 6a 3 (x c) + k=2 f (c) = 2a 2. Observation: in general f (k) (c) = a k a k = f (k) (c).

Summary If a k (x c) k converges with radius of convergence r > 0 to a function f (x), then f (x) = a k (x c) k = f (k) (c) (x c) k.

Big Question Question: suppose f (x) is infinitely differentiable, i.e., f (k) (x) exists for all k = 1, 2,..., then does f (k) (c) (x c) k converge? is its radius of convergence positive? does it converge to f (x)?

Big Question Question: suppose f (x) is infinitely differentiable, i.e., f (k) (x) exists for all k = 1, 2,..., then does f (k) (c) (x c) k converge? is its radius of convergence positive? does it converge to f (x)? If the answers are all yes, we say Taylor series expansion of f (x) about x = c. f (k) (c) (x c) k is the

Examples (1 of 3) Verify that e x. x k is the Taylor series expansion about c = 0 of

Examples (1 of 3) Verify that e x. x k is the Taylor series expansion about c = 0 of Let f (x) = e x, then f (k) (x) = e x for all k = 0, 1,.... If c = 0 then f (k) (c) = e c = e 0 = 1 for all k = 0, 1,.... Consequently f (k) (c) = 1 for all k = 0, 1,.... According to the Ratio Test, the power series f (k) (c) x k = x k converges absolutely for < x <, therefore e x = x k for all x.

Examples (2 of 3) Find Taylor series expansions for the following functions. 1. e 3x 2. e x 3. 2xe 3x

Examples (2 of 3) Find Taylor series expansions for the following functions. 1. e 3x (3x) k 3 k x k = = 2. e x 3. 2xe 3x

Examples (2 of 3) Find Taylor series expansions for the following functions. 1. e 3x (3x) k 3 k x k = = 2. e x = 3. 2xe 3x ( x) k = ( 1) k x k

Examples (2 of 3) Find Taylor series expansions for the following functions. 1. e 3x (3x) k 3 k x k = = 2. e x = ( x) k = 3. 2xe 3x = 2x ( 1) k x k ( 3x) k = 2( 3) k x k+1

Examples (3 of 3) Find an infinite series of positive terms whose sum is e.

Examples (3 of 3) Find an infinite series of positive terms whose sum is e. Since e x x k = for < x < then e 1 = 1 k = 1.

Terminology Definition A Taylor series for which c = 0, i.e., Maclaurin series. f (k) (0) x k is called a

Terminology Definition A Taylor series for which c = 0, i.e., Maclaurin series. f (k) (0) x k is called a Definition The n th partial sum of a Taylor series is polynomial of degree n P n (x) = n f (k) (c) (x c) k = f (c) + f (c)(x c) + + f (n) (c) (x c) n n! called the Taylor polynomial of degree n for f expanded about x = c.

Example Find the Taylor polynomials centered at c = 0 of degree 1, 3, and 5 for f (x) = sin x.

Example Find the Taylor polynomials centered at c = 0 of degree 1, 3, and 5 for f (x) = sin x. P 1 (x) = x P 3 (x) = x x 3! P 5 (x) = x x 3! + x 5 5!

Illustration y 3 -π - 2 π 3 - π 3 2 1-1 π 3 2 π 3 π x sin x P 1 (x) P 3 (x) P 5 (x) -2-3

Taylor s Theorem Theorem (Taylor s Theorem) Suppose that f has n + 1 derivatives on the interval (c r, c + r) for some r > 0. Then for x (c r, c + r), f (x) P n (x) and the error in using P n (x) to approximate f (x) is R n (x) = f (x) P n (x) = f (n+1) (z) (x c)n+1 (n + 1)! for some z between x and c.

Taylor s Theorem Theorem (Taylor s Theorem) Suppose that f has n + 1 derivatives on the interval (c r, c + r) for some r > 0. Then for x (c r, c + r), f (x) P n (x) and the error in using P n (x) to approximate f (x) is R n (x) = f (x) P n (x) = f (n+1) (z) (x c)n+1 (n + 1)! for some z between x and c. Remarks: R n (x) is called the nth Taylor remainder. f (x) = P n (x) + R n (x).

Proof (1 of 4) (x t)n+1 n Define g(t) = f (x) R n (x) (x c) n+1 Verify that g(x) = 0 and that g(c) = 0. f (k) (t) (x t) k.

Proof (1 of 4) (x t)n+1 n Define g(t) = f (x) R n (x) (x c) n+1 Verify that g(x) = 0 and that g(c) = 0. f (k) (t) (x t) k. (x x)n+1 n g(x) = f (x) R n (x) (x c) n+1 (0) n+1 = f (x) R n (x) (x c) n+1 f (0) (x) 0! = f (x) f (x) = 0 f (k) (x) (x x) k n k=1 f (k) (x) (0) k

Proof (1 of 4) (x t)n+1 n Define g(t) = f (x) R n (x) (x c) n+1 Verify that g(x) = 0 and that g(c) = 0. f (k) (t) (x t) k. (x x)n+1 n g(x) = f (x) R n (x) (x c) n+1 (0) n+1 = f (x) R n (x) (x c) n+1 f (0) (x) 0! = f (x) f (x) = 0 (x c)n+1 n g(c) = f (x) R n (x) (x c) n+1 = f (x) R n (x) P n (x) = 0 f (k) (x) (x x) k n k=1 f (k) (c) (x c) k f (k) (x) (0) k

Proof (2 of 4) Since g(x) = 0 = g(c), g(t) is continuous on the closed interval from x to c, and g(t) is differentiable on the open interval from x to c, then by Rolle s Theorem there is a number z between x and c for which g (z) = 0. Differentiate g(t) with respect to t and set the derivative equal to zero.

Proof (3 of 4) (x t)n+1 n g(t) = f (x) R n (x) (x c) n+1 g ( 1)(n + 1)(x t)n (t) = R n (x) (x c) n+1 n f (k+1) (t) (x t) k (x t)n = (n + 1)R n (x) (x c) n+1 n f (k+1) (t) (x t) k + (x t)n = (n + 1)R n (x) (x c) n+1 n f (k+1) (t) f (k) (t) (x t) k n ( 1)k f (k) (t) (x t) k 1 k=1 n k=1 n 1 (x t) k + f (k) (t) (x t)k 1 (k 1)! f (k+1) (t) (x t) k

Proof (4 of 4) g (x t)n (t) = (n + 1)R n (x) (x c) n+1 n f (k+1) (t) n 1 (x t) k + f (k+1) (t) (x t) k g (x t)n (t) = (n + 1)R n (x) (x c) n+1 f (n+1) (t) (x t) n n! For some z between x and c, g (z) = 0, so (x z)n (n + 1)R n (x) (x c) n+1 f (n+1) (z) (x z) n = 0 n! 1 (n + 1)R n (x) (x c) n+1 = f (n+1) (z) n! R n (x) = f (n+1) (z) (n + 1)! (x c)n+1.

Big Answer Using Taylor s Theorem we can now answer the big questions posed at the beginning of this discussion.

Big Answer Using Taylor s Theorem we can now answer the big questions posed at the beginning of this discussion. Theorem If f (x) has derivatives of all orders in the interval (c r, c + r) for some r > 0 and if lim R n(x) = 0 for all x (c r, c + r), n then the Taylor series for f expanded about x = c converges to f (x), i.e., f (k) (c) f (x) = (x c) k.

Taylor s Inequality Theorem (Taylor s Inequality) If f (n+1) (x) M for x c r, then the remainder R n (x) of the Taylor series satisfies the inequality R n (x) M (n + 1)! x c n+1 for x c r.

Useful Result The following theorem will frequently be of use when trying to prove that lim n R n(x) = 0 for a potential Taylor series. Theorem If x is a real number then lim n x n n! = 0.

Verifying e x = x k We have seen that if f (x) = e x then a k = f (k) (0) = 1 and x k the power series converges (by the Ratio Test) for all x. An important detail is to show that it converges to e x. Let R n = f (n+1) (z) (n + 1)! x n+1 = between 0 and x. If x d then R n (x) = e z (n + 1)! x n+1 where z is e z (n + 1)! x n+1 lim R n(x) e d x n+1 lim n n (n + 1)! = 0. e d (n + 1)! x n+1

Example Find the Maclaurin series expansion for cos x.

Solution (1 of 2) Let f (x) = cos x, then f (0) = cos 0 = 1 f (0) = sin 0 = 0 f (0) = cos 0 = 1 f (0) = sin 0 = 0 f (4) (0) = cos 0 = 1 f (5) (0) = sin 0 = 0. f (n) (0) = 0 if n is odd, 1 if n/2 is even, 1 if n/2 is odd.

Solution (2 of 2) cos x = P n (x) + R n (x) = n ( 1) n (2n)! x 2n + = n d 2n+1 dx 2n+1 [cos x] x=z (2n + 1)! ( 1) n (2n)! x 2n + ± sin z (2n + 1)! x 2n+1 x 2n+1

Solution (2 of 2) Note that cos x = P n (x) + R n (x) = n ( 1) n (2n)! x 2n + = n d 2n+1 dx 2n+1 [cos x] x=z (2n + 1)! ( 1) n (2n)! x 2n + ± sin z (2n + 1)! x 2n+1 R n (x) = ± sin z (2n + 1)! x 2n+1 x 2n+1 (2n + 1)! lim R n(x) lim x 2n+1 n n (2n + 1)! = 0 x 2n+1

Error Estimates (1 of 4) 1. Find the Taylor series expansion for ln x about x = 1. 2. Estimate the error in using P 4 (x) to approximate ln 1.2. 3. Compare this with the actual error.

Error Estimates (2 of 4) Recall that d dx [ln x] = 1 x. 1 x = 1 1 (1 x) = (1 x) k = if 0 < x < 2. ( 1) k (x 1) k

Error Estimates (2 of 4) Recall that d dx [ln x] = 1 x. 1 x = 1 1 (1 x) = (1 x) k = if 0 < x < 2. Therefore ( 1) k (x 1) k ln x = ( 1) k k + 1 (x 1)k+1 = ( 1) k 1 (x 1) k k k=1

Error Estimates (2 of 4) Recall that d dx [ln x] = 1 x. 1 x = 1 1 (1 x) = (1 x) k = if 0 < x < 2. Therefore ( 1) k (x 1) k ln x = P 4 (x) = ( 1) k k + 1 (x 1)k+1 = 4 ( 1) k 1 (x 1) k k k=1 ( 1) k 1 (x 1) k k k=1 = (x 1) 1 2 (x 1)2 + 1 3 (x 1)3 1 (x 1)4 4 ln 1.2 P 4 (1.2) 0.182267

Error Estimates (3 of 4) ( 1) k 1 Since (x 1) k is an alternating series then k k=1 ln 1.2 P 4 (1.2) 1 (1.2 1)5 5 0.000064.

Error Estimates (3 of 4) ( 1) k 1 Since (x 1) k is an alternating series then k k=1 The actual error is ln 1.2 P 4 (1.2) 1 (1.2 1)5 5 0.000064. ln 1.2 P 4 (1.2) 0.0000548901.

Error Estimates (4 of 4) Find the smallest value of n so that the maximum theoretical error in using P n (x) to approximate e x on the interval [ ln 10, ln 10] is less than 10 6.

Error Estimates (4 of 4) Find the smallest value of n so that the maximum theoretical error in using P n (x) to approximate e x on the interval [ ln 10, ln 10] is less than 10 6. e z We can calculate R n (x) = (n + 1)! x n+1. R n (x) = e z (n + 1)! x n+1 eln 10 (n + 1)! (ln 10)n+1 when n 15 (found by trial and error). = 10 (n + 1)! (ln 10)n+1 < 10 6

Binomial Series Definition If n is any real number and x < 1, then (1+x) n = ( ) n x k = 1+n x+ k n(n 1) x 2 + 2! where the expressions ( ) n n(n 1)(n 2) (n k + 1) = k are called binomial coefficients. n(n 1)(n 2) x 3 + 3!

Example Find the Maclaurin series for f (x) = convergence. 1 1 x and its radius of

Example Find the Maclaurin series for f (x) = convergence. 1 1 x and its radius of Solution We can write f (x) = (1 x) 1/2 and use the Binomial Series formula with n = 1/2. ( ) 1/2 ( ) 1/2 f (x) = ( x) k = ( 1) k x k k k = 1 1 ( 1 ) ( 3 ) ( 1 ) ( 3 ) ( 5 ) 2 x + 2 2 x 2 2 2 2 x 3 + 2! 3! = 1 + 1 2 x + (1)(3) 2 2 2! x 2 + (1)(3)(5) 2 3 x 3 + 3!

Common Taylor Series Taylor series Interval of Convergence e x x k = (, ) ( 1) k x 2k+1 sin x = (, ) (2k + 1)! ( 1) k x 2k cos x = (, ) (2k)! ( 1) k+1 (x 1) k ln x = (0, 2] k k=1 tan 1 ( 1) k x 2k+1 x = ( 1, 1) 2k + 1 ( ) n (1 + x) n = x k ( 1, 1) k

Further Examples Find the Maclaurin series for the following functions. f (x) = (2 + x) 5 g(x) = ln 1 + x 1 x h(x) = x 3 sin x

Limits and Maclaurin Series Suppose f (x) = a k x k and g(x) = b k x k. Both Maclaurin series have a positive radius of convergence and f (0) = 0 = g(0). What does f (0) = 0 = g(0) imply about the coefficients of these two infinite series? f (x) Find lim x 0 g(x). Find lim x 0 cos(x 2 ) 1 ln(1 + x) x.

Function without Taylor Series Expansion Observation: Some functions have derivatives of all orders, but their Taylor remainders do not limit on 0, and thus there is no convergent Taylor series for these functions. Example Consider f (x) = { e 1/x 2 if x 0 0 if x = 0.

Function without Taylor Series Expansion Observation: Some functions have derivatives of all orders, but their Taylor remainders do not limit on 0, and thus there is no convergent Taylor series for these functions. Example Consider f (x) = { e 1/x 2 if x 0 0 if x = 0. We can show that f (k) (0) = 0 for all k = 0, 1, 2,.... f (k) (0) However f (x) 0 = x k.

Illustration f (x) = { e 1/x 2 if x 0 0 if x = 0. y 0.3 0.2 0.1-1.0-0.5 0.5 1.0 x

Homework Read Section 11.10 Exercises: WebAssign/D2L