f (r) (a) r! (x a) r, r=0

Similar documents
Part 3.3 Differentiation Taylor Polynomials

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

11.10a Taylor and Maclaurin Series

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

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 =

Chapter 8: Taylor s theorem and L Hospital s rule

MATH 118, LECTURES 27 & 28: TAYLOR SERIES

CALCULUS JIA-MING (FRANK) LIOU

Chapter 4: More Applications of Differentiation

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

Ma 530 Power Series II

Convergence of sequences and series

Power Series Solutions We use power series to solve second order differential equations

Lecture 34: Recall Defn: The n-th Taylor polynomial for a function f at a is: n f j (a) j! + f n (a)

Chapter 4: More Applications of Differentiation

Differentiation. Table of contents Definition Arithmetics Composite and inverse functions... 5

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

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.

Math 106 Fall 2014 Exam 2.1 October 31, ln(x) x 3 dx = 1. 2 x 2 ln(x) + = 1 2 x 2 ln(x) + 1. = 1 2 x 2 ln(x) 1 4 x 2 + C

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 181, Exam 2, Study Guide 2 Problem 1 Solution. 1 + dx. 1 + (cos x)2 dx. 1 + cos2 xdx. = π ( 1 + cos π 2

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

MTAEA Differentiation

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

MAT137 Calculus! Lecture 45

Analysis/Calculus Review Day 3

Taylor and Maclaurin Series

Section Taylor and Maclaurin Series

MATH 409 Advanced Calculus I Lecture 16: Mean value theorem. Taylor s formula.

8.5 Taylor Polynomials and Taylor Series

1 Question related to polynomials

Numerical Analysis: Interpolation Part 1

Sec 4.1 Limits, Informally. When we calculated f (x), we first started with the difference quotient. f(x + h) f(x) h

Math 192r, Problem Set #3: Solutions

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

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

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

SOLVED PROBLEMS ON TAYLOR AND MACLAURIN SERIES

Calculus (Math 1A) Lecture 6

1 Lecture 18: The chain rule

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

Core Mathematics 3 Differentiation

Problem 1. Produce the linear and quadratic Taylor polynomials for the following functions:

a x a y = a x+y a x a = y ax y (a x ) r = a rx and log a (xy) = log a (x) + log a (y) log a ( x y ) = log a(x) log a (y) log a (x r ) = r log a (x).

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.

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

x n cos 2x dx. dx = nx n 1 and v = 1 2 sin(2x). Andreas Fring (City University London) AS1051 Lecture Autumn / 36

CHM320: MATH REVIEW. I. Ordinary Derivative:

Section x7 +

The University of British Columbia Final Examination - April 11, 2012 Mathematics 105, 2011W T2 All Sections. Special Instructions:

Taylor Series and Maclaurin Series

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

Section 5.8. Taylor Series

Introduction and Review of Power Series

Solutions to Calculus problems. b k A = limsup n. a n limsup b k,

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

Taylor and Maclaurin Series. Approximating functions using Polynomials.

EC5555 Economics Masters Refresher Course in Mathematics September 2013

Taylor Series. richard/math230 These notes are taken from Calculus Vol I, by Tom M. Apostol,

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

Grade: The remainder of this page has been left blank for your workings. VERSION D. Midterm D: Page 1 of 12

Section 10.7 Taylor series

Taylor and Maclaurin Series. Approximating functions using Polynomials.

1.4 Techniques of Integration

n=0 ( 1)n /(n + 1) converges, but not

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.

Lecture 4: Fourier Transforms.

Limits at Infinity. Horizontal Asymptotes. Definition (Limits at Infinity) Horizontal Asymptotes

b n x n + b n 1 x n b 1 x + b 0

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

Let s Get Series(ous)

November 20, Interpolation, Extrapolation & Polynomial Approximation

11.8 Power Series. Recall the geometric series. (1) x n = 1+x+x 2 + +x n +

Rational Functions. Elementary Functions. Algebra with mixed fractions. Algebra with mixed fractions

Math Final Exam Review

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

MTH4101 CALCULUS II REVISION NOTES. 1. COMPLEX NUMBERS (Thomas Appendix 7 + lecture notes) ax 2 + bx + c = 0. x = b ± b 2 4ac 2a. i = 1.

Problem Set 1 October 30, 2017

REVERSE CHAIN RULE CALCULUS 7. Dr Adrian Jannetta MIMA CMath FRAS INU0115/515 (MATHS 2) Reverse Chain Rule 1/12 Adrian Jannetta

Methods of Integration

Measure and Integration: Solutions of CW2

Math Numerical Analysis

Lecture 7 - Separable Equations

Integration 1/10. Integration. Student Guidance Centre Learning Development Service

Chapter Product Rule and Quotient Rule for Derivatives

MATH 1902: Mathematics for the Physical Sciences I

GEORGE ANDROULAKIS THE 7 INDETERMINATE FORMS OF LIMITS : usually we use L Hospital s rule. Two important such limits are lim

Further Mathematical Methods (Linear Algebra) 2002

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

Math Lecture 4 Limit Laws

Math 131, Lecture 20: The Chain Rule, continued

Further Mathematics SAMPLE. Marking Scheme

Chapter 2: Differentiation

PART I Lecture Notes on Numerical Solution of Root Finding Problems MATH 435

Math 113 Winter 2005 Key

Math RE - Calculus II Antiderivatives and the Indefinite Integral Page 1 of 5

MATH 31B: MIDTERM 2 REVIEW. sin 2 x = 1 cos(2x) dx = x 2 sin(2x) 4. + C = x 2. dx = x sin(2x) + C = x sin x cos x

Assignment 1, SOLUTIONS

Limits, Continuity, and the Derivative

(x + 3)(x 1) lim(x + 3) = 4. lim. (x 2)( x ) = (x 2)(x + 2) x + 2 x = 4. dt (t2 + 1) = 1 2 (t2 + 1) 1 t. f(x) = lim 3x = 6,

Transcription:

Part 3.3 Differentiation v1 2018 Taylor Polynomials Definition 3.3.1 Taylor 1715 and Maclaurin 1742) If a is a fixed number, and f is a function whose first n derivatives exist at a then the Taylor polynomial of degree n for f at a is T n,a fx) = fa)+f a)x a)+ f a) 2! Alternatively, where f 0) x) = fx). T n,a fx) = r=0 f r) a) x a) 2 +...+ fn) a) x a) r, x a) n. Though it may appear daunting to calculate all these derivatives, if the function f has a trigonometric factor there is often a pattern in the derivatives that can be exploited. Example 3.3.2 Calculate Solution If fx) = e x sinx then fx) = e x sinx T 8,0 e x sinx). f 1) x) = e x sinx+e x cosx f 2) x) = e x sinx+e x cosx+e x cosx e x sinx = 2e x cosx f 3) x) = 2e x cosx 2e x sinx f 4) x) = 2e x cosx 2e x sinx 2e x sinx 2e x cosx = 4e x sinx. The important observation is that f 4) x) = 4fx), for this means that f 5) x) = 4f 1) x), f 6) x) = 4f 2) x), f 7) x) = 4f 3) x) and f 8) x) = 4f 4) x) = 16fx). 1

Thus f0) = 0,f 1) 0) = 1,f 2) 0) = 2,f 3) 0) = 2,f 4) 0) = 0, f 5) 0) = 4,f 6) 0) = 8,f 7) 0) = 8,f 8) 0) = 0. Hence T 8,0 e x sinx) = 0+x+2 x2 2! +2x3 3! +0x4 4! 4x5 5! 8x6 6! 8x7 7! +0x8 8! = x+x 2 + x3 3 x5 30 x6 90 x7 630. Note When the function f contains trigonometric functions we often find a relationship between f and f 4) as we saw above. Such relations should always be exploited to reduce work. IllustratingExample3.3.2thebluelineise x sinx,theredlineist 8,0 e x sinx). 100 50 6 4 2 2 4 6 50 100 150 This pattern in derivatives can be seen again in Example 3.3.3 T 4,0 cos 2 x ) = 1 x 2 + 1 3 x4. 2

Solution in Tutorial Let fx) = cos 2 x. Then f 1) x) = 2cosxsinx = sin2x. It is important to write it in this way because, continuing, f 2) x) = 2cos2x and f 3) x) = 4sin2x = 4f 1) x). Thisrelationbetweenthirdandfirstderivativesmeansthatf n) x) = 4f n 2) x) for all n 3 which simplifies the calculations of f0) = 1, f 1) 0) = 0,f 2) 0) = 2,f 3) 0) = 4f 1) 0) = 0, and f 4) 0) = 4f 2) 0) = 8. Thus T 4,0 cos 2 x ) = 1+0x 2 x2 2! +0x3 3! +8x4 4! = 1 x2 + x4 3. Illustrating Example 3.3.3. y 1 x 2 + x4 3 2 1 cos 2 x x 1 2 3 The next example illustrates a method which can often be applied when f is a quotient. Example 3.3.4 With calculate T 5,0 fx). fx) = ex 1+x Solution Because differentiating quotients leads to complicated expressions we yet again follow the principle of ridding ourselves of fractions by multiplying up as 1+x)fx) = e x. 3

Then repeated differentiation gives 1+x)f x)+fx) = e x, thus f 0)+f0) = 1. 1+x)f x)+2f x) = e x, thus f 0)+2f 0) = 1. 1+x)f 3) x)+3f x) = e x, thus f 3) 0)+3f 0) = 1. 1+x)f 4) x)+4f 3) x) = e x, thus f 4) 0)+4f 3) 0) = 1. 1+x)f 5) x)+5f 4) x) = e x, thus f 5) 0)+5f 4) 0) = 1. Startingfromf0) = 1wecansolvetogetf 0) = 0,f 0) = 1,f 3) 0) = 2, f 4) 0) = 9 and f 5) 0) = 44. Then ) e x T 5,0 = 1+0x+1 x2 1+x 2! 2x3 3! +9x4 4! 44x5 5! Illustrating Example 3.3.4 = 1+ 1 2 x2 1 3 x3 + 3 8 x4 11 30 x5. y e x 1+x 2 1 x 1 2 3 T 5,0 fx) Questions; howwelldoest n,a fx)approximatefx),doest n,a fx)converge as n and, if it does, does it converge to fx)? These questions can be answered by studying the difference fx) T n,a fx). Definition 3.3.5 The Remainder, R n,a fx), is defined by R n,a fx) = fx) T n,a fx). 1) 4

Note that when t = x in the definition of T n,t fx) we get T n,x fx) = fx)+f x)x x)+ f x) x x) 2 +...+ fn) x) x x) n 2! = fx). 2) Thus the remainder can be written as R n,a fx) = T n,x fx) T n,a fx). So we are looking at the difference of a function of t, namely T n,t fx), at t = x and t = a. With an application of the Mean Value Theorem in mind, this makes us ask how T n,t fx) changes as t varies. We start with quite an amazing result, that the derivative w.r.t t of the polynomial T n,t fx) should be so simple! Lemma 3.3.6 If the first n+1 derivatives of f exist on an open neighbourhood of x then d dt T n,tfx) = x t)n f n+1) t), for all t in the open neighbourhood. Note. That the n+1-th derivative, f n+1) t), exists means that the previous derivatives f i) t) are themselves differentiable w.r.t. t for 1 i n. Yet T n,t fx) is a sum of these f i) t) for 1 i n and thus T n,t fx) is differentiable w.r.t. t. Proof in the lectures observes at one point that a term from one bracket in a series cancels a term in the next bracket. Here we give a more formal proof, based on manipulating series. 5

By definition d dt T n,tfx) = d dt = d dt r=0 f r) t) ft)+ = f 1) t)+ = f 1) t)+ x t) r f r) t) f r+1) t) f r+1) t) x t) r ) ) x t) r fr) t) r 1)! x t)r 1 x t) r f r) t) r 1)! x t)r 1. In the second sum we change variable from r to r 1, which we then relabel as r, so r now runs from 0 to n 1. Thus d dt T n,tfx) = f 1) t)+ = f 1) t)+ n 1 n 1 f r+1) t) f r+1) t) f r+1) t) x t) r n 1 r=0 f r+1) t) x t) r + fn+1) t) x t) r +f 1) t) ) x t) r x t) n ) = fn+1) t) x t) n. An application of the Mean Value Theorem gives Theorem 3.3.7 Taylor s Theorem with Cauchy s form of the error. If the first n+1 derivatives of f exist on an open interval containing a and x then R n,a fx) = fn+1) c) x c) n x a) 3) for some c between a and x. 6

Proof Consider R n,a fx) x a = fx) T n,afx) x a = T n,xfx) T n,a fx). x a by definition of R n,a, by 2). Let ht) = T n,t fx) so we can rewrite the last equality as R n,a fx) x a = hx) ha) x a = h c), for some c between a and x by the Mean Value Theorem applied to h. Continuing h c) = d dt T n,tfx) = x c)n f n+1) c), t=c by Lemma. This result has a weakness in that the unknown c occurs in two terms on the right hand side. Strange that Cauchy s error was derived using the Mean Value Theorem; what would follow from Cauchy s Mean Value Theorem? Recall Cauchy s Mean Value Theorem, that if g,h are continuous on [a,b], differentiable on a,b) and g x) 0 for all x a,b) then there exists c a,b) such that hb) ha) gb) ga) = h c) g c). An argument based on this gives Theorem 3.3.8 Taylor s Theorem with Lagrange s form of the error 1797). If the first n+1 derivatives of f exist on an open interval containing a and x then R n,a fx) = fn+1) c) n+1)! x a)n+1 4) for some c between a and x. Proof Consider x to be fixed. As in previous proof let ht) = T n,t fx) and g to be chosen but continuous on [a,x], differentiable on a,x) and with g t) 0 for all t a,x). Then 7

R n,a fx) gx) ga) = T n,xfx) T n,a fx) gx) ga) = 1 g c) d dt T n,tfx) t=c = x c)n g c) fn+1) c), as in above proof, by Cauchy s M. V. Theorem, by Lemma. If we choose g t) = x t) n then R n,a fx) gx) ga) = x c)n x c) n f n+1) c) = fn+1) c), which multiplies up to give R n,a fx) = gx) ga)) fn+1) c). The right hand side now only contains one occurrence of the unknown c, as required. Integrate this choice of g to get Thus gx) ga) = x a g t)dt = x a)n+1. n+1 R n,a fx) = gx) ga)) fn+1) c) = x a)n+1 n+1) f n+1) c) as required. In Theorem 3.3.8 we now have only one occurrence of the unknown c, along with a larger denominator. If we set h = x a in Taylor s Theorem with Lagrange s error we get fa+h) = fa)+hf a)+ h2 2! f a)+...+ hn fn) a)+ for some 0 < θ < 1. + hn+1 n+1)! fn+1) a+θh) 8

Taylor s Theorem is often used in Maclaurin s Form which simply has a = 0 : f r) 0) fx) = x r + fn+1) c) n+1)! xn+1, for some c between 0 and x. r=0 As a first application of how well T n,a fx) approximates fx), Example 3.3.9 ex sinx ) x+2 x2 2! +2x3 e c 3! 6 x4. for some c between 0 and x. Solution in Tutorial Note that from the workings of Example 3.3.2, Then T 3,0 e x sinx) = 0+x+2 x2 2! +2x3 3!, and f4) x) = 4e x sinx. ex sinx ) x+2 x2 2! +2x3 = 4 ec sinc x 4 e c 3! 4! 6 x4. for some c between 0 and x. You can, in fact, improve this result because f 4) 0) = 0. For then T 3,0 e x sinx) = T 4,0 e x sinx). Thus f 5) c) ex sinx ) x+2 x2 2! +2x3 = 3! 5! x 5. Now note that f 4) x) = 4e x sinx implies f 5) x) = 4e x sinx+e x cosx). So f 5) c) 8e c, and thus ex sinx ) x+2 x2 2! +2x3 e c 3! 15 x 5. Aside, one can do better than sinx+cosx sinx + cosx 2 by noting that sinx + cosx = y + 1 y 2 where y = sinx. Look for turning points at y = ± 4/5) and thus a maximum of 4/5+ 1/5 1.34... 9

Example 3.3.10 Use Lagrange s form for the error to show that cos2 x 1 x 2 + 1 ) 3 x4 2 15 x 5. Hence show that cos 2 x 1+x 2 lim = 1 x 0 x 4 3. Solution From Example 3.3.3 we have T 4,0 cos 2 x ) = 1 x 2 + 1 3 x4 and f 5) x) = 4f 3) x) = 16f 1) x) = 16sin2x. Thus cos2 x 1 x 2 + 1 3 x4 ) = cos 2 x T 4,0 cos 2 x ) = R4,0 cos 2 x ) = f 5) c) x 5, 5! for some c between 0 and x, by Lagrange s error. Then f 5) c) x 5 = 16 5! 5! cos2c x 5 2 15 x 5. This gives the first stated result. For the second, divide through by x 4 to get cos 2 x 1+x 2 1 x 4 3 2 15 x. This can be opened out as 1 3 2 15 x cos2 x 1+x 2 1 x 4 3 + 2 15 x Let x 0 and quote the Sandwich Rule to get result. 10